DirectShow Sample Application: Image Sequence to Video Sample

The ImageStream sample demontrates how to use the MontiVision Development Kit for conversion between image sequences and video files. It uses the MontiVision Smart Control to display and control the entire filter graph configuration.

This and other sample applications can be found in the MV Development Kit installation directory.

The sample supports two functions. The first is to create an AVI file from an image sequence. The second function is to save the image sequence of an AVI file to an output folder.

 

Filter Graph Summary

Below is a screenshot of the filter graph used for the "Image Sequence To AVI File Conversion" functionality. The  MV Batch Image File Source filter plays an image sequence at a given frame rate into the filter configuration. The MV MJPEG Compressor converts the images to Motion JPEG format and the AVI Multiplexer (in combination with the File writer) creates the final AVI file.

The second function (Stream To Images) uses the filter graph shown below. The Source filter sends the stream into the filter graph and the  MV Image File Renderer  saves the image file sequence in the chosen output folder. Depending on the AVI file, the MV Smart Control inserts decompressor filter(s) to decompress the images of the video stream in case this is necessary.

The Application

This sample application is an MFC Control Application with one MV Smart Control .

Choose the working mode of the application using the radio buttons. Select a folder, an AVI file and if desired modify the Frame Rate. Press Start to start the conversion process.