I am generating a video from a set of images using
cv2.VideoWriter(filename,fourcc,fps,size)
I want to use a particular bitrate for my output videos to reduce the file sizes. I am trying to mimic a ffmpeg command which generated videos with smaller sizes. One prominent difference I noticed is the bitrate. Resolution, codec, video length are all similar.
How do I change the bitrate when I generate videos using opencv in python?