Microsoft DirectX 8.1 (C++)

AVI Mux Filter

The AVI Mux filter accepts multiple input streams and interleaves them into AVI format. The filter uses separate input pins for each input stream, and one output in for the AVI stream.

Video capture or authoring applications can use this filter to save files to disk in AVI format. The filter is typically connected to the File Writer filter, but it can connect to any filter whose input pin supports the IStream and IMemInputPin interfaces.

When the AVI Mux filter is created, it has one input pin. As each input pin is connected, the filter creates a new input pin.

Filter Interfaces IBaseFilter, IConfigAviMux, IConfigInterleaving, IMediaSeeking, IPersistMediaPropertyBag, ISpecifyPropertyPages
Input Pin Media Types Any major type that corresponds to an old-style FOURCC, or MEDIATYPE_AUXLine21Data. (For more information, see FOURCCMap Class.)
  • If the major type is MEDIATYPE_Audio, the format must be FORMAT_WaveFormatEx.
  • If the major type is MEDIATYPE_Video, the format must be FORMAT_VideoInfo or FORMAT_DvInfo.
  • If the major type is MEDIATYPE_Interleaved, the format must be FORMAT_DvInfo.
Input Pin Interfaces IAMStreamControl, IMemInputPin, IPin, IPropertyBag, IQualityControl
Output Pin Media Types MEDIATYPE_Stream, MEDIASUBTYPE_avi
Output Pin Interfaces IPin, IPinFlowControl, IQualityControl
Filter CLSID CLSID_AviDest
Property Page CLSID CLSID_AviMuxProptyPage, CLSID_AviMuxProptyPage1
Executable qcap.dll
Merit MERIT_DO_NOT_USE
Filter Category CLSID_LegacyAmFilterCategory

Remarks

The input pins support the IPropertyBag interface for setting properties on individual streams.

Currently, the following property is defined.

Property Description
name The name of the stream. This property is written as a 'strn' chunk.

If the filter is running or paused, the IPropertyBag::Write method returns VFW_E_WRONG_STATE.

AVI 2.0 File Format Extensions

DirectShow currently supports the following AVI 2.0 file format extensions:

For more information, see version 1.02 of the OpenDML AVI File Format Extensions published by the OpenDML AVI M-JPEG File Format Subcommittee, February 28, 1996.