Bug#1108416: zbarcam: Invalid argument in zbar_processor_init()
On Thu, Jul 03, 2025 at 03:18:28PM +0200, Jochen Sprickerhof wrote:
Interesting, can you try with the other camera? Probably
zbarcam /dev/video1
$ for dev in /dev/video*; do echo == $dev ==; zbarcam $dev; done
== /dev/video0 ==
ERROR: zbar processor in zbar_processor_init():
system error: spawning input thread: Invalid argument (22)
== /dev/video1 ==
WARNING: zbar processor in _zbar_v4l2_probe():
unsupported request: v4l2 device does not support usable CAPTURE
== /dev/video2 ==
ERROR: zbar processor in zbar_processor_init():
system error: spawning input thread: Invalid argument (22)
== /dev/video3 ==
WARNING: zbar processor in _zbar_v4l2_probe():
unsupported request: v4l2 device does not support usable CAPTURE
I imagine this could also be something in the kernel rather than in zbar-tools
but I haven't looked into that yet.
you can try:
mpv av://v4l2:/dev/video0
to test.
mpv manages to show video from the even-numbered devices but the fps is *very* low
(quit after a few seconds)
$ mpv av://v4l2:/dev/video0
client removed during hook handling
● Video --vid=1 (rawvideo 1600x1200 5 fps)
[autoconvert] Converting yuyv422 -> yuv422p
VO: [gpu] 1600x1200 yuv422p
[ffmpeg/demuxer] video4linux2,v4l2: Some buffers are still owned by the
caller on close.
V: 00:00:03 / 00:00:04 (85%)
Exiting... (Quit)
ioctl(VIDIOC_QBUF): Bad file descriptor
~$ mpv av://v4l2:/dev/video2
● Video --vid=1 (rawvideo 1280x720 10 fps)
[autoconvert] Converting yuyv422 -> yuv422p
VO: [gpu] 1280x720 yuv422p
[ffmpeg/demuxer] video4linux2,v4l2: Some buffers are still owned by the
caller on close.
V: 00:00:04 / 00:00:04 (84%)
Exiting... (Quit)
ioctl(VIDIOC_QBUF): Bad file descriptor
ioctl(VIDIOC_QBUF): Bad file descriptor
ioctl(VIDIOC_QBUF): Bad file descriptor
ioctl(VIDIOC_QBUF): Bad file descriptor
ioctl(VIDIOC_QBUF): Bad file descriptor
ioctl(VIDIOC_QBUF): Bad file descriptor
ioctl(VIDIOC_QBUF): Bad file descriptor
ioctl(VIDIOC_QBUF): Bad file descriptor
The odd-numbered devices...
$ mpv av://v4l2:/dev/video1
client removed during hook handling
[ffmpeg/demuxer] video4linux2,v4l2: ioctl(VIDIOC_G_INPUT): Inappropriate ioctl for device
[lavf] avformat_open_input() failed
Failed to recognize file format.
Exiting... (Errors when loading file)
~$ mpv av://v4l2:/dev/video3
[ffmpeg/demuxer] video4linux2,v4l2: ioctl(VIDIOC_G_INPUT): Inappropriate ioctl for device
[lavf] avformat_open_input() failed
Failed to recognize file format.
Exiting... (Errors when loading file)
--
Kim "Zash" Alvefur
Reply to: