You are not logged in.

#1 2018-10-11 16:38:50

momu
Member
Registered: 2017-10-14
Posts: 137

Two cameras but only one of them works

I just realized that I have two cameras.

[nikola@leviathan ~]$ ls /sys/class/video4linux/
video0  video1

They are the same USB device.

[nikola@leviathan ~]$ file /sys/class/video4linux/*
/sys/class/video4linux/video0: symbolic link to ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/video4linux/video0
/sys/class/video4linux/video1: symbolic link to ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/video4linux/video1

The first one works.

[nikola@leviathan ~]$ mpv /dev/video0
Playing: /dev/video0
 (+) Video --vid=1 (rawvideo 640x480 30.000fps)
[autoconvert] Converting yuyv422 -> yuv422p
VO: [gpu] 640x480 yuv422p
V: 00:00:01 / 00:00:01 (76%)
[ffmpeg/demuxer] video4linux2,v4l2: Some buffers are still owned by the caller on close.
[ffmpeg] ioctl(VIDIOC_QBUF): Bad file descriptor
[ffmpeg] ioctl(VIDIOC_QBUF): Bad file descriptor


Exiting... (Quit)

But the second one does not!

[nikola@leviathan ~]$ mpv /dev/video1
Playing: /dev/video1
[ffmpeg/demuxer] video4linux2,v4l2: ioctl(VIDIOC_G_INPUT): Inappropriate ioctl for device
[lavf] avformat_open_input() failed
[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)

Why my second camera isn't working and how can I fix that?

Offline

Board footer

Powered by FluxBB