This component allows to write an avi file to record the image. Beware that the place where this component is used has a big influence on the result, as it use the images that are processed. For example, showing the black and white image after the blob selection will show only the selected blobs. As a rule of thumb, the display will corresponds to what is displayed in the last previous component displaying the wanted image.
The gray, the color or the binary image.
A grayscale or a color image
Path to the video file to write.
Corresponds to the codec used to encode the video file. If set to "Def.", on Windows, it uses CV_FOURCC_PROMPT (open an interface to select the codec, but not working in the current 1.1pre1a version) and on linux, it uses the default coded for the type of file you are saving to (CV_FOURCC_DEFAULT).
You can also use code hidden in the cvcap_ffmpeg.cpp file of the OpenCV, HighGui library, used by the CV_FOURCC function.
Here are some possible codes:
|4 characters code||Corresponding codec|
|MJPG||motion-jpeg codec (does not work well)|
A more extensive list of fourcc codecs can be found on FOURCC.org.
Frame rate of the resulting avi file. It can be different from the input frame rate.
Select the input image to be recorded. You can choose between the gray, the color or the black and white image.
Number of frames kept in the buffer. If 1, no buffering is performed at all.Last modified on 1 May 2009, at 22:09