MV Select Mediatype DirectShow Filter

The MontiVision Select Mediatype Filter is not a video transformation filter like many other filters from the MV Development Kit. Use this filter to set a connection between two filter to a specific mediatype, e.g. RGB 24 or YUV. Lots of  filters supports more than one mediatype on there input and output pins. If two of these filters were connected they use the first mediatype accepted by both filters. Some times this decision dosn't work for the rest of the filter graph. In this case use the MV Select Mediatype Filter to set the connection to the right mediatype.

The MV Select Mediatype Filter is transparent for all stream data and transports the data with a minimun delay. So you can use the filter everywhere in your filter graph configuration without lost of performance.

 

File: SelectMediatype.ax
CLSID: CLSID_MVSelectMediatype

 

Supported Interfaces

IMVSelectMediatype

IMVAbout

IMVFilterData

 

Supported COM Events

The filter supports following events through the IMVFilterEvents interface. Look at the filter events page for more information.

Event

Value

Description
MV_ALGORITHM_START_EVENT

0

A filter starts processing a video frame or sample.
MV_ALGORITHM_END_EVENT

1

A filter finishes processing a video frame or sample.

 

MV Select Mediatype Property Page

It use the IMVSelectMediatype interface to control the filter.

MontiVision Select MediaType DirectShow Filter Property Page

Enable Mediatype Selection Enables the mediatype selection function from the filter.

How to use the MV Select Mediatype Filter

To set a connection between two filters (Filter1 and Filter2) to a specific mediatype insert the MV Select mediatype Filter into the filter graph before you connect the two filters. The first step is to enable the Select Mediatype property from the filter. Open the filter property page and enable the checkbox. Now connect the output pin from Filter1 with the input pin from the MV Select Mediatype Filter. The MV Select Mediatype Filter opens a messagebox like below for every mediatype.

MontiVision MediaType Information Dialog

Select the "Yes" button if the messagebox contains the right mediatype or "No" to get the next possible mediatype. After you have select a mediatype the two pins are connected with this mediatype. Now connect the output pin from the MV Select Mediatype with the input pin from Filter2. in some cases the MV Select Mediatype Filter opens the messageboy with the mediatype information again. Select the "Yes" button to establish the connection. Now Filter1 and Filter2 are connected with the selected mediatype. Save the filter graph configuration into a MVP-file. The connection use always the selected mediatype if you load the filter configuration again. The MV Select Mediatype filter opens the messagboxes with mediatype information if the mediatype selection property is enabled. The filter propertye page disables this property if the propaty page dialog is closed.