How to set pixel format for VideoWriter? [closed]

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-02 01:15:01.682517

Comments

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