|
|
|
date: Thu, 17 Jul 2008 00:41:01 -0700,
group: microsoft.public.win32.programmer.directx.video
back
Re: Supporting both VIDEOINFOHEADER2 and VIDEOINFOHEADER
On Thu, 17 Jul 2008 00:41:01 -0700, Bob wrote:
> I have an issue supporting both of these. My filter enumerates 2 media types,
> one with each of the different structures. The VIDEOINFOHEADER2 is first, so
> the downstream filters can make use of pixel aspect ratio and interlacing
> information when possible.
>
> This works when the downstream filter supports VIH2. However, if the
> downstream filter doesn't accept VIH2, RenderStream fails, seemingly without
> ever trying VIH. If I put the VIH media type first, it succeeds. But then if
> my down stream filter supports both VIH and VIH2, it uses VIH instead and
> can't use the pixel aspect/interlacing information.
It seems as though your enumeration on your output pin is not working
correctly. I would add some trace information here so you can see when it
is being called and what the results are. These are only the "preferred
media types" anyway.
How many formats does GraphEdit list on your output pin?
--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
date: Thu, 17 Jul 2008 08:35:22 -0400
author: Chris P.
|
|