The Pi cameras are not simple V4L2 devices, which is why libcamera exists.I have a similar issue to you.
I'm running a raspberry Pi 5 bookworm 12 with the RPi HQ camera.
If I use the commandthen I get the following:Code:
ffmpeg -f v4l2 -i /dev/video0
Code:
[video4linux2,v4l2 @ 0x5556020b1a20] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device[video4linux2,v4l2 @ 0x5556020b1a20] Time per frame unknown[video4linux2,v4l2 @ 0x5556020b1a20] ioctl(VIDIOC_STREAMON): Invalid argument/dev/video0: Invalid argument
You can try "libcamerify ffmpeg -f v4l2 -i /dev/video0" to use the libcamera V4L2 compatibility layer, look at piping the output from one of the rpicam apps into ffmpeg, or the rpicam apps also have integration with libav (the backend to ffmpeg) anyway. It all depends on what you're trying to do with the images.
Statistics: Posted by 6by9 — Wed Mar 20, 2024 8:22 am