Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 17 Jul 2008 00:41:01 -0700,    group: microsoft.public.win32.programmer.directx.video        back       


Supporting both VIDEOINFOHEADER2 and VIDEOINFOHEADER   
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. 

How do I fix this?
date: Thu, 17 Jul 2008 00:41:01 -0700   author:   Bob

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.

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us