Hello!
I’m trying to record a 5-second video with the exploreHD 3.0 camera using the following ffmpeg command:
ffmpeg -f v4l2 -i /dev/video2 -t 5 "$FULL_PATH"
Executing this code, I can record a video at 30 fps and 1080p.
However, there are some problems with the video:
- There is significant latency from when the command is executed in the terminal to when the camera actually starts recording
- There seems to be plenty of ‘segmentation’ in the recorded video, i.e. the video is not a continuous 5-second video but segments of shorter videos
- The videos are always less than 5 seconds long despite being specified in the command above.
For context, I am interfacing the camera with a Raspberry Pi 3B+. I had earlier experimented with a webcam using the same command and it seemed to work without any segmentation.
What could be some sources of error here?
Any help would be appreciated, thanks!