I upgraded my RPI2 to use Raspbian Jessie. (NOOBS 1.9.0) I also installed OpenCV 2.4.9.1 package. (It is the default package from apt-get install)
Now, I have a problem while recording video with OpenCV in my C/C++ program. I'm writing a AVI (DIVX) file with the cvVideoWriter/cvWriteFrame functions.
I received the following error on the console and OpenCV stops writing the video:
[mpeg4 @ 0x21d9580] get_buffer() failed (-12 (nil))
No matters what I do, It always happens after around 30 to 60 minutes of video recording.
What is causing this error ? Is it coming from ffmpeg or gstreamer or something else ?
How could I trap this error and handle it in my C/C++ program ?