dev
Thu Jun 12 22:12:05 PDT 2008
On Jun 13, 12:39 am, "Damon Barry [MSFT]"
<dam...@online.microsoft.com> wrote:
> "dev" <krt....@gmail.com> wrote in message
>
> news:8dca83df-7af6-4625-9273-f4e031fd2734@w8g2000prd.googlegroups.com...
>
> > Does mpeg2demux in any way parse and give media type?
> > What I see in my mpeg2 decoder is,the same garbage values that I have
> > filled during creation of video pin.
> > Do I have to parse this information myselves or I can get it from
> > demux ?
>
> Check out the following page on MSDN:
http://msdn.microsoft.com/en-us/library/ms787857(VS.85).aspx. It says:
>
> "When the demux filter's output pin connects to the decoder, it offers the
> media type that was specified when the pin was created. Because the demux
> does not examine the ES byte stream, it does not validate the media type. In
> theory, an MPEG-2 decoder should be able to connect with just the major type
> and subtype filled in, to indicate the type of data. The decoder should then
> examine the sequence headers that arrive in the media samples. However, in
> practice, many decoders will not connect unless the media type includes a
> complete format block."
>
> So ideally you just set the major and sub types, the filters connect, and
> the decoder grabs whatever info it needs directly from the stream. The
> media type is there to supply information to the decoder, but if you know
> that your decoder is going to ignore the media type, then you don't need to
> bother filling it. Is this the case for your decoder?
>
> No, I don't think the demux will parse out this information for you.
>
> --
> Damon Barry
> Windows Embedded CE Multimedia
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Damon,
Thanks a lot for the reply.
I need info of media type, specifically height and width info before
the transform method is hit.
I typically use info from my input pins media type, but in this case
as I have filled some garbage value I get the same values back.
Is there any place before transform is being called I can parse and
get the properties of stream ?
Regards,
Dev