Setting codec parameters with FFMPEG backend

asked 2019-11-29 06:53:18 -0500

I am using OpenCV's VideoWriter to record videos with FFMPEG. I am using the lossless FFV1 codec. As far as I can tell if the FourCC code 'F', 'F', 'V', '1' is specified, the codec defaults to FFV1 version 3, however, I would like to record using FFV1 version 1 for interoperability reasons down the line. In FFMPEG the switch can be easily acheived by passing the -level 1 flag to the encoder.

Is there a way in OpenCV to pass such parameters to the encoder through the VideoWriter object or through any other means?

edit retag flag offensive close merge delete