VideoInfo2 Format Type

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

A preview pin's preferred media type might be a type with a VIDEOINFOHEADER2 format. This format structure supports special features such as interlaced video and picture aspect ratios.

The VMR-7 and the VMR-9 both support VIDEOINFOHEADER2 directly. When you connect the VMR to the decoder, they will negotiate the best format. The older Video Renderer filter, however, does not support VIDEOINFOHEADER2. To use VIDEOINFOHEADER2 format types with the Video Renderer filter, you must insert the Overlay Mixer filter into the graph.

  1. Enumerate the preferred media types on the decoder filter's output pin, using the IPin::EnumMediaTypes method.
  2. Check the first media type in the enumeration sequence.
  3. If the format type is FORMAT_VideoInfo2, connect the output pin to the Overlay Mixer. Then connect the Overlay Mixer to the video renderer. (See Video Port Pins.)

If you do not care about these features, you do not have to use the Overlay Mixer. Connect the decoder directly to the Video Renderer, and it will connect with a VIDEOINFOHEADER format instead.

Advanced Capture Topics

Using the Overlay Mixer in Video Capture