Kernel 4.19.0.9-amd64
The webcam is detected, driver is loaded but it cannot be accessed for recording video. Device is recognized, node is created correctly, permissions are right. v4l sees the camera. Only getting a picture from the camera fails.
I get the strong suspicion that this is a kernel/driver issue. I have found not bug reports (yet?). Webcam used to work on Stretch. Still works on Jessie.
For what it matters, during debugging I have applied ugo+rwx permissions to both /dev/bus/usb/002/006 and /dev/video. No difference.
Code: Select all
lsusb:
Bus 002 Device 006: ID 046d:081b Logitech, Inc. Webcam C310
Code: Select all
ll /dev/bus/usb/002/006
crw-rw-r-- 1 root root 189, 133 Jun 5 01:04 /dev/bus/usb/002/006
Code: Select all
jlinkels@donald-pc:~$ ll /dev/video*
crw-rw----+ 1 root video 81, 0 Jun 5 01:04 /dev/video0
crw-rw----+ 1 root video 81, 1 Jun 5 01:04 /dev/video1
jlinkels@donald-pc:~$ getfacl /dev/video*
getfacl: Removing leading '/' from absolute path names
# file: dev/video0
# owner: root
# group: video
user::rw-
user:jlinkels:rw-
group::rw-
group:video:rw-
mask::rw-
other::---
# file: dev/video1
# owner: root
# group: video
user::rw-
user:jlinkels:rw-
group::rw-
group:video:rw-
mask::rw-
other::---
Code: Select all
[ 12.419494] uvcvideo: Found UVC 1.00 device <unnamed> (046d:081b)
[ 12.447588] usbcore: registered new interface driver snd-usb-audio
[ 12.457165] uvcvideo 2-1.3.1:1.0: Entity type for entity Extension 4 was not initialized!
[ 12.457169] uvcvideo 2-1.3.1:1.0: Entity type for entity Extension 6 was not initialized!
[ 12.457172] uvcvideo 2-1.3.1:1.0: Entity type for entity Extension 7 was not initialized!
[ 12.457174] uvcvideo 2-1.3.1:1.0: Entity type for entity Processing 2 was not initialized!
[ 12.457176] uvcvideo 2-1.3.1:1.0: Entity type for entity Extension 3 was not initialized!
[ 12.457179] uvcvideo 2-1.3.1:1.0: Entity type for entity Camera 1 was not initialized!
[ 12.457321] input: UVC Camera (046d:081b) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3.1/2-1.3.1:1.0/input/input19
[ 12.457447] usbcore: registered new interface driver uvcvideo
[ 12.457449] USB Video Class driver (1.1.1)
Code: Select all
Entity type for entity Camera 1 was not initialized!
Code: Select all
jlinkels@donald-pc:/usr/lib/udev/rules.d$ lsmod | grep uvc
uvcvideo 118784 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_v4l2 28672 1 uvcvideo
videobuf2_common 53248 2 videobuf2_v4l2,uvcvideo
videodev 212992 3 videobuf2_v4l2,uvcvideo,videobuf2_common
media 45056 2 videodev,uvcvideo
usbcore 294912 8 ehci_pci,snd_usb_audio,usbhid,snd_usbmidi_lib,usb_storage,uvcvideo,ehci_hcd,uas
Code: Select all
jlinkels@donald-pc:/usr/lib/udev/rules.d$ v4l2-ctl --list-devices
UVC Camera (046d:081b) (usb-0000:00:1d.0-1.3.1):
/dev/video0
/dev/video1
This is what I see when I play the camera in mplayer:
Code: Select all
mplayer tv://
Code: Select all
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: UVC Camera (046d:081b)
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.35.100 (external)
Mismatching header version 58.18.100
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
v4l2: ioctl streamon failed: No space left on device
Audio: no sound
Starting playback...
MPlayer interrupted by signal 2 in module: video_read_frame
[mjpeg @ 0x7fe34752e820]No JPEG data found in image
Error while decoding frame!
Code: Select all
(cheese:3834): cheese-WARNING **: 01:34:24.143: Failed to allocate required memory.: gstv4l2src.c(658): gst_v4l2src_decide_allocation (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin28/GstV4l2Src:v4l2src1:
Buffer pool activation failed