VMR Modes of Operation

[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.]

The component architecture of the VMR enables applications to configure it in various ways, depending on how rendering is to be performed. The following table shows the three presentation modes and the two mixing modes, and the components that are present for each configuration.

Mode Single Stream Multiple Streams (Mixing Mode)
Windowed Allocator-presenterCore Synchronization Unit
Window Manager
MixerCompositor*
Allocator-presenter
Core Synchronization Unit
Window Manager
Windowless Allocator-presenterCore Synchronization Unit
MixerCompositor*
Allocator-presenter
Core Synchronization Unit
Renderless Allocator-presenter (provided by application)Core Synchronization Unit
MixerCompositor*
Allocator-presenter (provided by application)
Core Synchronization Unit

 

* Indicates that the application has the option to provide a custom component or use the default component.

In all configurations, the main point to remember when you create filter graphs with the VMR is that you must configure the VMR before you connect it.

For all configurations, pins cannot be dynamically added or removed after the VMR is connected to the upstream filter, but they can be connected and disconnected. If the application is unsure how many pins will be needed, it should configure the VMR for the maximum number that might be needed. The presence of unused input pins on the filter does not degrade rendering performance. Unlike the old Overlay Mixer, the VMR has no output pin because it does not require a separate filter for window management.

The following sections describe how to configure the VMR for a given mode: