How to set pixel format for VideoWriter?

asked 2017-05-11 10:24:49 -0500

FFMpeg allows to specify the pixel format for encoder with the -pix_fmt command line option. Is it possible to do similar for VideoWriter (assuming an ffmpeg backend)?

edit retag flag offensive close merge delete


unlikely. out of the box, it supports bgr (will be written as rgb) or grayscale.

if you need something else, use ffmpeg, then.

berak gravatar imageberak ( 2017-05-11 11:18:58 -0500 )edit