jonnew / Oat

Real-time position tracker for behavioral research
GNU General Public License v3.0
49 stars 19 forks source link

Video compression option in oat-record #28

Closed jonnew closed 8 years ago

jonnew commented 8 years ago

Brought up by @mmyros in #14.

Hi Jon,

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

int fourcc = 0; // Uncompressed

jonnew commented 8 years ago

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.