How to set pixel format for VideoWriter? [closed]
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)?
unlikely. out of the box, it supports bgr (will be written as rgb) or grayscale.
if you need something else, use ffmpeg, then.