MV Multi File Writer DirectShow Filter

The MontiVision Multi File Writer filter splits a video/audio stream seamless into avi files. The uses two hidden filter graphs to saves the stream into AVI files. It switch between this graphs on every new output file. So there are two independent filter graphs all filter like encoder and decoder from should run in the same configuration. So all settings should make to both filter graphs (Filter Configuration buttons within the property page).

This MontiVision DirectShow Filter is used in combination with the MontiVision Smart Control in the 24Videorecorder Sample Application.

 

File: multifilewriter.ax
CLSID: CLSID_MVMultiFileWriter

 

Supported Interfaces

IMVMultiFileWriter

IMVMultiFileWriter2

IMVEnumVideoEncoder

IMVEnumAudioEncoder

IMVTrigger

IMVFilterInfo

IMVFilterData

IMVAbout

 

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

The filter started to receive a new sample.
MV_ALGORITHM_END_EVENT

1

The filter finished to receive a new sample.
MV_FILEWRITER_NEXT_FILE_EVENT

23

The filter started to write to a new file.
MV_FILEWRITER_INVALID_OUTPUT_PATH_EVENT

24

The output path is invalid.
MV_FILEWRITER_INVALID_VIDEO_ENCODER_EVENT

25

The vidio encoder filter is not valid for this task.
MV_FILEWRITER_INVALID_AUDIO_ENCODER_EVENT

26

The audio encoder filter is not valid for this task.
MV_FILEWRITER_LOW_DISKSPACE_EVENT

27

Disc space is low, the controlling application should interfere.

Use the filter events to update your application and for error handling.

 

Supported I/O Pins

I/O Pin Corresponding method Discription
Next File
[Boolean]
IMVMultiFileWriter::NextOutputFile Switches to the next output file on a trigger event.
Example:
If the trigger mode is MV_TRIGGER_RISING_EDGE, a new file is created after the the I/O pin changes its state from FALSE to TRUE.
Record File
[Boolean]

IMVMultiFileWriter::StartRecording
IMVMultiFileWriter::StopRecording

Starts (TRUE) and stops (FALSE) video recording.

Attention:
I/O Pins are dominant, meaning they have a higher priority than the corresponding method of the filter's interface!

 

MV Multi File Writer Property Page

Uses the IMVMultiFileWriter, IMVEnumVideoEncoder and IMVEnumAudioEncoder interface to setup the filter.

MontiVision Multi File Writer DirectShow Renderer Filter Property Page

Output Folder The output folder for the movie files.
Create Creates the internal output capture graphs. Press this button after selecting an output folder.
Output File Name Select the output filename template.
Create Next Output Select the options when the filter should create a new output file.
Encoder Filter Select the encoder filter for video and audion encoding. The Encoder buttons open the property dialog from the encoder filter if available. The AVI Mux buttons open the property dialog from the AVI Multiplexer filter.
Filter Configuration Open the filter property pages from the encoder filter and the AVI multiplexer filter. Use the same setup for both configuration to get consistently output files.
Output Filter Status The current output file path, his size and recording time.
Start Start recording into avi files.
Stop Stop recording.

How to use the MV Multi File Writer filter.

Example Filter Graph:

MontiVision Multi File Writer DirectShow Filter Graph