hi
We have a small query related to MPEG2 TS datarange.
We have declared the datarange for MPEG2TS as:
static KS_DATARANGE StreamFormatMPEG2_Capture =
{
// KSDATARANGE
{
sizeof (KS_DATARANGE ), // FormatSize
0, // Flags
0, // SampleSize
0, // Reserved
STATIC_KSDATAFORMAT_TYPE_STREAM, // aka. MEDIATYPE_Stream
STATIC_KSDATAFORMAT_TYPE_MPEG2_TRANSPORT, //MEDIASUBTYPE MPEG2
TRANSPORT,
STATIC_KSDATAFORMAT_SPECIFIER_NONE // aka. None
};
The issue is… we have to support a range of resolution(176x144, 320x240, 640x480, 720x480, 1280x720 ) for the record pin.
But i don’t find any place to give that option.
Please provide your inputs.
Thanks
xxxxx@lntinfotech.com wrote:
We have a small query related to MPEG2 TS datarange.
We have declared the datarange for MPEG2TS as:
static KS_DATARANGE StreamFormatMPEG2_Capture =
{
// KSDATARANGE
{
sizeof (KS_DATARANGE ), // FormatSize
0, // Flags
0, // SampleSize
0, // Reserved
STATIC_KSDATAFORMAT_TYPE_STREAM, // aka. MEDIATYPE_Stream
STATIC_KSDATAFORMAT_TYPE_MPEG2_TRANSPORT, //MEDIASUBTYPE MPEG2
TRANSPORT,
STATIC_KSDATAFORMAT_SPECIFIER_NONE // aka. None
};
The issue is… we have to support a range of resolution(176x144, 320x240, 640x480, 720x480, 1280x720 ) for the record pin.
But i don’t find any place to give that option.
MEDIATYPE_Stream pins don’t have a resolution. You’re just shipping
packets. The resolution is embedded in the data stream itself. When a
graph is built, the next filter up the line will be an MPEG demux,
followed by an MPEG decoder. It is the MPEG decoder that advertises
MEDIATYPE_Video, and it has the responsibility to advertise the
resolution to the rest of the graph.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.