I was looking for a way to reduce the size of videos. In general one can:
Go grayscale <- not currently incorporated
Decrease fps
Decrease resolution
Change codec
Decrease bitrate
I have included externalization of extension and codecs. It's likely that if you don't compile opencv from source you can't record with some encodings (h264). It's also likely that compressing on acquisition is computationally too expensive to handle in realtime (videos drop a bunch of frames).
I have not found a way to change bitrate (a search through opencv itself makes me think it's actually a common issue that people have)
I was looking for a way to reduce the size of videos. In general one can:
I have included externalization of extension and codecs. It's likely that if you don't compile opencv from source you can't record with some encodings (h264). It's also likely that compressing on acquisition is computationally too expensive to handle in realtime (videos drop a bunch of frames).
I have not found a way to change bitrate (a search through opencv itself makes me think it's actually a common issue that people have)