Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3831

Troubleshooting • Re: Raspberry Pi 5 and USB Camera

$
0
0
That was a great idea! When I executed the command, I got this result:

Code:

raspy5@raspberrypi:~ $ v4l2-ctl --list-formats-extioctl: VIDIOC_ENUM_FMT        Type: Video Capture        [0]: 'MJPG' (Motion-JPEG, compressed)                Size: Discrete 1920x1080                        Interval: Discrete 0.033s (30.000 fps)                Size: Discrete 640x480                        Interval: Discrete 0.033s (30.000 fps)                Size: Discrete 1024x768                        Interval: Discrete 0.033s (30.000 fps)                Size: Discrete 1280x720                        Interval: Discrete 0.033s (30.000 fps)                Size: Discrete 1280x1024                        Interval: Discrete 0.033s (30.000 fps)                Size: Discrete 2048x1536                        Interval: Discrete 0.033s (30.000 fps)                Size: Discrete 320x240                        Interval: Discrete 0.033s (30.000 fps)        [1]: 'YUYV' (YUYV 4:2:2)                Size: Discrete 640x480                        Interval: Discrete 0.040s (25.000 fps)                Size: Discrete 1024x768                        Interval: Discrete 0.100s (10.000 fps)                Size: Discrete 1280x720                        Interval: Discrete 0.100s (10.000 fps)                Size: Discrete 1280x1024                        Interval: Discrete 0.200s (5.000 fps)                Size: Discrete 1920x1080                        Interval: Discrete 0.200s (5.000 fps)                Size: Discrete 320x240                        Interval: Discrete 0.033s (30.000 fps)                Size: Discrete 2048x1536                        Interval: Discrete 0.200s (5.000 fps)
After that, I switched to 640x480 and got around 14fps. Not perfect and not what it says on the list, but I’m not sure why. Also, the resolutions like 1920x1080 or 2048x1536 are not delivering 30fps as stated on the list but around 2fps. The Raspberry Pi is probably too slow for such video streams. Btw I set it and controled it with thoes codes:

Code:

v4l2-ctl -d /dev/video0 --set-fmt-video=width=2048,height=1536,pixelformat=MJPG --set-parm=30ffmpeg -f v4l2 -framerate 30 -video_size 2048x1536 -i /dev/video0 output.mkv

Statistics: Posted by UIO8747 — Sat Aug 10, 2024 4:04 pm



Viewing all articles
Browse latest Browse all 3831

Trending Articles