Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to control VideoWriter encoding bitrate?

Is there a way to control the video codec encoding bitrate in OpenCV?

With ffmpeg you can do -qscale n. That will (indirectly) influence the bitrate. Is there an equivalent via the OpenCV Python bindings?

The bitrate I get now seems to be around 8 to 10 Mbps, which is really high (quality is excellent of course, but I'm trying to save on bandwidth...)