For some reason, there seems to be a lot of frames lost as I try to record longer videos:
120 fps, 640x480, sensor mode 7, shutter speed 1000 microsec
for a 20 sec video: no frames lost
30 sec video: 7% frames lost (210)
40 sec video: 38% frames lost (1180)
50 sec video: 38% frmaes lost (1580)
I have tried changing the dirty ratios according to the last post here: https://www.raspberrypi.org/forums/view ... 36#p720536
but I still get lost frames
same parameters as above:
20 second video: no frames lost
30 second video: 31% (681)
40 second video: camera preview freezes...
I have a vague understanding of the camera to GPU pipeline but not sure what else I can try to find the root cause of the issue. Does anyone have any idea what might be causing all these frames to be lost? Is there a way i can output what's being held in some of the buffers? Here's an example of a command I'm using
More frames seem to be lost later in the video vs. earlier and it gets worse with higher fps as well. Ideally I would like to use 200 fps but could use the 120 fps if the higher fps causes some instability issues. Any help appreciated. Thanks.
Code: Select all
raspivid -md 7 -w 640 -h 480 -fps 120 -t 40000 --verbose -pts time.1000ss_120fps_40s.pts -ss 1000 --output 640x480-120fps-1000ss_40s.h264 -a 512