Randomly not streaming cam

Camera model
C920
added new generic usb cam

What is the problem?
after adding a cam
randomly camera are working or not
4 cases:
c920 working, generic not
c920 not working, generic work
they both work
non of them work

What did you already try to solve it?
run cat /var/log/messages
according to this i think when cameras are at video0/video2 they work
on video1/video2 they don't
i mean i already set 99-usb.rules for the camera and it's working
but on log it's looking like it assigning video0-3
(can i assign the video0-3 myself?)

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

from a case when c920(video0) worked and generic(video3) not:
May 20 18:27:42 octopi MJPG-streamer [467]: Using V4L2 device.: /dev/video0
May 20 18:27:42 octopi MJPG-streamer [467]: Desired Resolution: 1920 x 1080
May 20 18:27:42 octopi MJPG-streamer [467]: Frames Per Second.: 10
May 20 18:27:42 octopi MJPG-streamer [467]: Format............: JPEG
May 20 18:27:42 octopi MJPG-streamer [467]: TV-Norm...........: DEFAULT
May 20 18:27:42 octopi MJPG-streamer [469]: Using V4L2 device.: /dev/video3
May 20 18:27:42 octopi MJPG-streamer [469]: Desired Resolution: 640 x 480
May 20 18:27:42 octopi MJPG-streamer [469]: Frames Per Second.: 10
May 20 18:27:42 octopi MJPG-streamer [469]: Format............: JPEG
May 20 18:27:42 octopi MJPG-streamer [469]: TV-Norm...........: DEFAULT
May 20 18:27:42 octopi MJPG-streamer [469]: init_VideoIn failed
May 20 18:27:43 octopi kernel: [ 8.436809] usb 1-1.3.1: reset high-speed USB device number 6 using dwc_otg
May 20 18:27:43 octopi kernel: [ 8.480347] IPv6: ADDRCONF(NETDEV_UP): eth0: l ink is not ready
May 20 18:27:43 octopi kernel: [ 8.480366] 8021q: adding VLAN 0 to HW filter on device eth0
May 20 18:27:43 octopi kernel: [ 8.495928] IPv6: ADDRCONF(NETDEV_CHANGE): eth 0: link becomes ready
May 20 18:27:43 octopi MJPG-streamer [467]: www-folder-path......: ./www-octopi/
May 20 18:27:43 octopi MJPG-streamer [467]: HTTP TCP port........: 8080
May 20 18:27:43 octopi MJPG-streamer [467]: HTTP Listen Address..: (null)
May 20 18:27:43 octopi MJPG-streamer [467]: username:password....: disabled
May 20 18:27:43 octopi MJPG-streamer [467]: commands.............: enabled
May 20 18:27:43 octopi MJPG-streamer [467]: starting input plugin input_uvc.so
May 20 18:27:43 octopi MJPG-streamer [467]: starting output plugin: output_http. so (ID: 00)
May 20 18:27:44 octopi root: Starting USB webcam
May 20 18:27:44 octopi MJPG-streamer [522]: starting application
May 20 18:27:44 octopi MJPG-streamer [522]: MJPG Streamer Version: git rev: 501f 6362c5afddcfb41055f97ae484252c85c912
May 20 18:27:44 octopi MJPG-streamer [522]: Using V4L2 device.: /dev/video3
May 20 18:27:44 octopi MJPG-streamer [522]: Desired Resolution: 640 x 480
May 20 18:27:44 octopi MJPG-streamer [522]: Frames Per Second.: 10
May 20 18:27:44 octopi MJPG-streamer [522]: Format............: JPEG
May 20 18:27:44 octopi MJPG-streamer [522]: TV-Norm...........: DEFAULT
May 20 18:27:44 octopi MJPG-streamer [522]: init_VideoIn failed
May 20 18:27:45 octopi kernel: [ 10.328244] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neig h.eth0.retrans_time_ms instead
May 20 18:27:45 octopi root: Starting USB webcam
May 20 18:27:45 octopi MJPG-streamer [600]: starting application
May 20 18:27:45 octopi MJPG-streamer [600]: MJPG Streamer Version: git rev: 501f 6362c5afddcfb41055f97ae484252c85c912
May 20 18:27:45 octopi MJPG-streamer [600]: Using V4L2 device.: /dev/video3
May 20 18:27:45 octopi MJPG-streamer [600]: Desired Resolution: 640 x 480
May 20 18:27:45 octopi MJPG-streamer [600]: Frames Per Second.: 10
May 20 18:27:45 octopi MJPG-streamer [600]: Format............: JPEG
May 20 18:27:45 octopi MJPG-streamer [600]: TV-Norm...........: DEFAULT
May 20 18:27:45 octopi MJPG-streamer [600]: init_VideoIn failed
May 20 18:27:47 octopi root: Starting USB webcam
May 20 18:27:47 octopi MJPG-streamer [629]: starting application
May 20 18:27:47 octopi MJPG-streamer [629]: MJPG Streamer Version: git rev: 501f 6362c5afddcfb41055f97ae484252c85c912
May 20 18:27:47 octopi MJPG-streamer [629]: Using V4L2 device.: /dev/video3
May 20 18:27:47 octopi MJPG-streamer [629]: Desired Resolution: 640 x 480
May 20 18:27:47 octopi MJPG-streamer [629]: Frames Per Second.: 10
May 20 18:27:47 octopi MJPG-streamer [629]: Format............: JPEG
May 20 18:27:47 octopi MJPG-streamer [629]: TV-Norm...........: DEFAULT
May 20 18:27:47 octopi MJPG-streamer [629]: init_VideoIn failed
May 20 18:27:48 octopi root: Starting USB webcam
May 20 18:27:48 octopi MJPG-streamer [723]: starting application
May 20 18:27:48 octopi MJPG-streamer [723]: MJPG Streamer Version: git rev: 501f 6362c5afddcfb41055f97ae484252c85c912
May 20 18:27:48 octopi MJPG-streamer [723]: Using V4L2 device.: /dev/video3
May 20 18:27:48 octopi MJPG-streamer [723]: Desired Resolution: 640 x 480
May 20 18:27:48 octopi MJPG-streamer [723]: Frames Per Second.: 10
May 20 18:27:48 octopi MJPG-streamer [723]: Format............: JPEG
May 20 18:27:48 octopi MJPG-streamer [723]: TV-Norm...........: DEFAULT
May 20 18:27:48 octopi MJPG-streamer [723]: init_VideoIn failed
May 20 18:27:48 octopi root: joe-camset script starting
May 20 18:27:49 octopi kernel: [ 14.385292] Bluetooth: Core ver 2.22
May 20 18:27:49 octopi kernel: [ 14.385388] NET: Registered protocol family 31

Additional information about your setup (OctoPrint version, OctoPi version, ...)
octopi 0.17.0
octoprint 1.4.0
Pi3 B+
original Pi PSU,
cameras are connected through a powered hub

ok,
i added to the rules
KERNEL=="video0",
in the start of the row (same for video2)
seems to work fine now after every restart
don't know why it's happen maybe the powered hub

1 Like