Since you are refactoring things, what do you think about adding an option to change the encoding type? I've been recording non-compressed, raw video files. That works quite well and leaves processing power for real-time stuff. I just compress everything at the end of the day using ffmpeg. However, it would be nice to have the option to have some frameserves being compressed on the fly and some raw.
The compression option would just switch from
int fourcc = CV_FOURCC('H', '2', '6', '4');
in Recorder.cpp, line 287 to
I just completed a major refactor of the whole code base. This was focused on program option capabilities but had widespread effects. I added the facility requested here as part of that.
Brought up by @mmyros in #14.