Sobre Produtos Suporte

How to add pictures to video

This article is intended for developers or experienced users and explains how to add pictures in BMP format to video file (e.g AVI) via DirectShow using GraphEdit Utility and SolveigMM BMP Push Source DirectShow filter to be shipped with SolveigMM Video Editing SDK v 2.0

Here are some advices on how to use the filter in Microsoft Graph Editor to get an AVI file which is the one of the most wide spread video container. 

Requirements: The filter does not support resizing so all pictures must have equal widths and heights respectively, also pictures must be 24bit BMP. You can use the 32bit BMPs however, but the opacity bit would be discarded in this case.

1. Open Graph Editor and insert the SolveigMM BMP Push Source Filter ( it is stored under the "DirectShow Filters" category ):

2. Open the filter's Property page:

3. Use "Add Files" button or drag-n-drop to add BMP files into the list:

4. Set the desired frame rate by specifying the "Frame length" value (e.g. the default value 400000 means 400000 Reference time units, it is equal to 400000·(100·1E-9) = 0.04sec which corresponds to 25Hz or frames per second ).
You can also check the "Loop list" property. In this case the list will be repeated until you stop the graph.

5. After you've finished with the property page you must apply changes or else they will be lost:

6. Now, when there are files in the list, you can connect the filter to the downstream.
You can use File Writer filter to write the output file to the hard drive or Video Renderer to watch it.
It's also possible that you'd like to encode the stream rather then leave it uncompressed because of the output file's size, so you should use the desired encoder.

The graph to view the stream.

The graph to save uncompressed video.

The graph to encode video.

7. Run the graph. It would be stopped automatically when the files from the list would be delivered downstream, however if  "Loop List" is specified you should stop the graph manually.