v4lsrc device="/dev/video13" always streams at 19.4 frames per second
I followed the instructions in:
https://forums.luckfox.com/viewtopic.php?p=7829
to add hardware video encoding/decoding to the standard Debian Trixie image.
The test code pipeline:
Code: Select all
gst-launch-1.0 videotestsrc num-buffers=600 ! video/x-raw,format=NV12,width=640,height=320,framerate=60/1 ! mpph264enc ! h264parse ! qtmux ! filesink location=h264.mp4works!
However, when I alter it to encode from the camera:
Code: Select all
v4l2src device="/dev/video13" ! video/x-raw,width=640,height=320,format=NV12,framerate=10/1 ! mpph264enc ! h264parse ! qtmux ! filesink sync=true location=/mnt/cam-h264.mp4the framerate of the stream is 19.4fps.
I've tried using v4l2-ctl to change the framerate on the camera, but:
Code: Select all
v4l2-ctl -d /dev/video13 --set-output-parm 10responds with:
Code: Select all
VIDIOC_S_PARM: failed: Inappropriate ioctl for deviceThe camera seems stuck at 19.4 frames per second.
Can anyone provide an example gstreamer pipeline to stream video at 10 frames per second?