On Fri, 13 Dec 2024 23:54:31 +0100,
Stefan Hagen <sh+openbsd-misc@codevoid.de> wrote:
>
> Webcam:
>
> In theory the webcam is supported and responsive:
>
> $ ffplay -f v4l2 -list_formats all -i /dev/video0
> [video4linux2,v4l2 @ 0x854a377c400] Compressed: mjpeg : MJPEG : 1280x720 640x360 640x480 848x480 960x540 1920x1080 2560x1440 2592x1944
> [video4linux2,v4l2 @ 0x854a377c400] Raw : yuyv422 : YUYV : 640x480 640x360
>
> In practice neither mpv, not ffmpeg/ffplay can play the mjpeg or yuyv422 stream:
>
> $ ffplay -f v4l2 -i /dev/video0
> [ webcam turns on, it takes a few seconds ]
> [video4linux2,v4l2 @ 0xfc8c9cab400] ioctl(VIDIOC_DQBUF): Invalid argument
> Input #0, video4linux2,v4l2, from '/dev/video0':
> Duration: N/A, bitrate: 147456 kb/s
> Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn
> [video4linux2,v4l2 @ 0xfc8c9cab400] ioctl(VIDIOC_DQBUF): Invalid argument
> [video4linux2,v4l2 @ 0xfc8c9cab400] ioctl(VIDIOC_DQBUF): Invalid argument
> [video4linux2,v4l2 @ 0xfc8c9cab400] ioctl(VIDIOC_DQBUF): Invalid argument
> ...
>
> I assume the webcam is not sending a standard format / or our video4linux2 is too old.
>
I had commited to uvideo.c some fixes which allows me to fix 2 of webcam
which I had access, and which had similar errors.
May I ask you which version of uvideo.c you have in your kernel? Is it v1.227?
--
wbr, Kirill
No comments:
Post a Comment