Recording from MJPEG camera is playing way to fast!
mdps last edited by mdps
I have a MJPEG camera (based on RPI + CSI CAMERA and MotionEyeOS) that streams video at 15fps, I have it configured in Shinobi as follow:
Input fps 15
HW Acceleration MJPEG_CUVID
Input feed MJPEG
No timestamps or watermarks
JPEG API Enable (looks like with MJPEG_CUVID it works!)
Record type MP4
Video record rate 15fps
segment 2 minutes
No record timestamps or watermarks
The monitor works, and the recordings are being done on the event of movement (with external trigger) but, the recorded videos (usually lasting 16sec instead of 2min) plays very fast and it is difficult to isolate the events as they occur ultrafast or even some times are droped (the event is there, but nothing happens in the video)
I am able to watch the videos with VLC and the codec info looks corect (resolution, fps...)
I did a little research on internet and found that the
-reflag could work, but it is already on Shinobi FFMPEG output for my monitor, so it is not going to be the silver bullet.
In the other had, i found that some times the framerate is not constant enought and the video timing could suffer that, so ffmpeg includes the parameter
-use_wallclock_as_timestamps 1this makes ffmpeg to use the system time instead of the frames received to calculate the video duration.
But i did not have look... the recordings are still playing too fast...
Tahnks for your help!