SwisTrack/Components/OutputFileAVI
Description
[edit | edit source]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.
Input
[edit | edit source]The gray, the color or the binary image.
Output
[edit | edit source]A grayscale or a color image
Parameters
[edit | edit source]File
[edit | edit source]Path to the video file to write.
Codec code
[edit | edit source]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 |
---|---|
PIM1 | MPEG-1 codec |
MJPG | motion-jpeg codec (does not work well) |
MP42 | MPEG-4.2 codec |
DIV3 | MPEG-4.3 codec |
DIVX | MPEG-4 codec |
U263 | H263 codec |
I263 | H263I codec |
FLV1 | FLV1 codec |
A more extensive list of fourcc codecs can be found on FOURCC.org.
Frame Rate
[edit | edit source]Frame rate of the resulting avi file. It can be different from the input frame rate.
Input Image
[edit | edit source]Select the input image to be recorded. You can choose between the gray, the color or the black and white image.
Buffer Frames
[edit | edit source]Number of frames kept in the buffer. If 1, no buffering is performed at all.