Pi camera freezes after around 10000 frames

July 9, 2024, 01:42

lr1729

I have an OV5647 camera module, which I'm streaming the data from. However, the rpicam-vid command always fails after around 10000 frames, and control c does not stop it, only a sigkill. Here is my command that sinks the output to test:
/usr/bin/rpicam-vid --width 2592 --height 1944 --denoise auto -q 95 --framerate 15 -t 0 --codec mjpeg -n --inline -o /dev/null -v 2
And here is when it failed:
Viewfinder frame 11795
FileOutput: output buffer 0x7f88206ee0 size 1286506
Viewfinder frame 11796
FileOutput: output buffer 0x7f84206ee0 size 1286495
FileOutput: output buffer 0x7f88206ee0 size 1285292
Viewfinder frame 11797
Viewfinder frame 11798
FileOutput: output buffer 0x7f88206ee0 size 1286986
FileOutput: output buffer 0x7f94206ee0 size 1287131
^CReceived signal 2
^CReceived signal 2
^CReceived signal 2
Terminated

lr1729

I found it is not necessarily at over 10000, I also encountered it at 6000

eyes1337

Did you fix this and if not maybe add a buffer and memory to it

eyes1337

Just noticed you added a buffer hmm

lr1729

Nope I've been trying to get other software to do this but I haven't found anything yet that supports streaming a max resolution mjpeg stream