Opencv VideoWriter can take a fourcc option which influences how ffmpeg compresses the output stream. Normally this is set to 0 and a gstreamer output is used, or a simple filename. However if using a simple output string, using a fourcc code is the only way to specify a codec.
Opencv VideoWriter can take a fourcc option which influences how ffmpeg compresses the output stream. Normally this is set to 0 and a gstreamer output is used, or a simple filename. However if using a simple output string, using a fourcc code is the only way to specify a codec.