Skip to contentSkip to conversation

Bug#929262: libv4l-dev: pac207 cam(s) give frame decode errors

DISCUSSION Gregor Jasny 3 participants 3 messages May 20, 2019 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 155834073601.757.12828508994068038463.reportbug@scrollert

#1 lore raw

Hello,

Quoted 9 lines · On 20.05.19 10:25, [email protected] wrote:

Trying to get a pac207 camera to work with constatus.

2019-05-20 10:22:34.864900  INFO constatus [1-1] source v4l2 thread started
libv4l2: error got 4 consecutive frame decode errors, last error: v4l-convert: error unknown pac207 row header: 0x0000
2019-05-20 10:22:35.597949 ERROR cs:src_v4l2 [1-1] VIDIOC_DQBUF failed: Input/output error

ioctl(VIDIOC_QBUF) failed
errno: 22 (Invalid argument)

To verify that it is not a constatus-problem I also tried a raspberry-pi camera via its video4linux-interface and that works fine.

According to the Linux Kernel Maintainers file the device driver is maintained by Hans, which I CC'ed on this bug report:

GSPCA PAC207 SONIXB SUBDRIVER
M: Hans Verkuil <[email protected]>
L: [email protected]
T: git git://linuxtv.org/media_tree.git
S: Odd Fixes
F: drivers/media/usb/gspca/pac207.c

Did your camera ever work on another Kernel, CPU architecture, or v4l-utils version? Do you have anything suspicious in dmesg output?

Thanks,
Gregor

#2 lore raw
Quoted 23 lines · Gregor Jasny

Hello,

Quoted 9 lines · On 20.05.19 10:25, [email protected] wrote:

Trying to get a pac207 camera to work with constatus.

2019-05-20 10:22:34.864900  INFO constatus [1-1] source v4l2 thread started
libv4l2: error got 4 consecutive frame decode errors, last error: v4l-convert: error unknown pac207 row header: 0x0000
2019-05-20 10:22:35.597949 ERROR cs:src_v4l2 [1-1] VIDIOC_DQBUF failed: Input/output error

ioctl(VIDIOC_QBUF) failed
errno: 22 (Invalid argument)

To verify that it is not a constatus-problem I also tried a raspberry-pi camera via its video4linux-interface and that works fine.

According to the Linux Kernel Maintainers file the device driver is maintained by Hans, which I CC'ed on this bug report:

GSPCA PAC207 SONIXB SUBDRIVER
M: Hans Verkuil <[email protected]>
L: [email protected]
T: git git://linuxtv.org/media_tree.git
S: Odd Fixes
F: drivers/media/usb/gspca/pac207.c

Quoted 2 lines

Did your camera ever work on another Kernel, CPU architecture, or v4l-utils version? Do you have anything suspicious in dmesg output?

I strongly recommend that you buy a new webcam. This is ancient hardware. Even the cheapest UVC webcams you can buy today will have far better quality than a pac207. If you really, really need this to work, then I need the full dmesg output and you also need to check if you can reproduce this issue with the v4l2-ctl command:

v4l2-ctl -d /dev/videoX --stream-mmap

(it keeps capturing frames until you press ctrl-X)

I should have one of these webcams, but won't be able to test until next week.

Regards,

Hans

#3 lore raw

Hi,

Quoted 8 lines

I strongly recommend that you buy a new webcam. This is ancient hardware. Even the cheapest UVC webcams you can buy today will have far better quality than a pac207. If you really, really need this to work, then I need the full dmesg output and you also need to check if you can reproduce this issue with the v4l2-ctl command:

v4l2-ctl -d /dev/videoX --stream-mmap
(it keeps capturing frames until you press ctrl-X)

v4l2-ctl:
- raspberry pi 2 and 3b+: fail
- laptop: ok for at least a few minutes

Quoted 2 lines

I should have one of these webcams, but won't be able to test until next week.

Thanks but it looks to be a raspberry pi problem.