[Solved] Error Multicam Logitech + Endoscope

Hi Everyone!

First of all thank you for your help!

I'm trying to configure Octoprint with Multicam (I followed Teaching tech guide: https://www.youtube.com/watch?v=pcFBsciSdEw)

I'm using Octoprint 1.4, OctoPi 0.15 with Logitech Quickcam Vision Pro (on video0) and a generic Endoscope USB (on Video3).

When I conect the Logitech webcam the tail -F /var/log/messages shows this:

May 30 16:54:24 octopi kernel: [ 116.760229] usb 1-1.1.2.4: new high-speed USB device number 7 using dwc_otg
May 30 16:54:25 octopi kernel: [ 117.074101] usb 1-1.1.2.4: New USB device found, idVendor=046d, idProduct=09a6, bcdDevice= 0.09
May 30 16:54:25 octopi kernel: [ 117.074115] usb 1-1.1.2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=2
May 30 16:54:25 octopi kernel: [ 117.074125] usb 1-1.1.2.4: SerialNumber: A43D4910
May 30 16:54:25 octopi mtp-probe: checking bus 1, device 7: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2.4"
May 30 16:54:25 octopi mtp-probe: bus: 1, device: 7 was not an MTP device
May 30 16:54:25 octopi kernel: [ 117.147034] uvcvideo: Found UVC 1.00 device (046d:09a6)
May 30 16:54:25 octopi kernel: [ 117.204596] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 4 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204614] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 10 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204626] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 12 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204638] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 8 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204649] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 11 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204661] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 9 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204673] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Processing 2 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204684] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 13 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204696] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Camera 1 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.204708] uvcvideo 1-1.1.2.4:1.0: Entity type for entity Extension 14 was not initialized!
May 30 16:54:25 octopi kernel: [ 117.205129] input: UVC Camera (046d:09a6) as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2.4/1-1.1.2.4:1.0/input/input0
May 30 16:54:25 octopi kernel: [ 117.205373] usbcore: registered new interface driver uvcvideo
May 30 16:54:25 octopi kernel: [ 117.205380] USB Video Class driver (1.1.1)
May 30 16:54:25 octopi kernel: [ 117.597102] usb 1-1.1.2.4: Warning! Unlikely big volume range (=5120), cval->res is probably wrong.
May 30 16:54:25 octopi kernel: [ 117.597118] usb 1-1.1.2.4: [5] FU [Mic Capture Volume] ch = 1, val = 2816/7936/1
May 30 16:54:25 octopi kernel: [ 117.597944] usbcore: registered new interface driver snd-usb-audio
May 30 16:55:15 octopi MJPG-streamer [980]: Format............: JPEG
May 30 16:55:15 octopi MJPG-streamer [980]: TV-Norm...........: DEFAULT
May 30 16:55:16 octopi kernel: [ 168.100873] usb 1-1.1.2.4: reset high-speed USB device number 7 using dwc_otg
May 30 16:55:16 octopi MJPG-streamer [980]: www-folder-path......: ./www/
May 30 16:55:16 octopi MJPG-streamer [980]: HTTP TCP port........: 8080
May 30 16:55:16 octopi MJPG-streamer [980]: HTTP Listen Address..: (null)
May 30 16:55:16 octopi MJPG-streamer [980]: username:password....: disabled
May 30 16:55:16 octopi MJPG-streamer [980]: commands.............: enabled
May 30 16:55:16 octopi MJPG-streamer [980]: starting input plugin input_uvc.so
May 30 16:55:16 octopi MJPG-streamer [980]: starting output plugin: output_http.so (ID: 00)

And then works perfect (I can see the Logitech stream on 192.168.0.16:8080)

After that, when I plug in the Endoscope webcam the tail -F /var/log/messages shows this:

May 30 16:59:42 octopi kernel: [ 434.194583] usb 1-1.1.2.1: new high-speed USB device number 8 using dwc_otg
May 30 16:59:42 octopi kernel: [ 434.363660] usb 1-1.1.2.1: New USB device found, idVendor=0bda, idProduct=5806, bcdDevice=58.01
May 30 16:59:42 octopi kernel: [ 434.363678] usb 1-1.1.2.1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
May 30 16:59:42 octopi kernel: [ 434.363710] usb 1-1.1.2.1: Product: USB Camera
May 30 16:59:42 octopi kernel: [ 434.363719] usb 1-1.1.2.1: Manufacturer: Generic
May 30 16:59:42 octopi kernel: [ 434.363729] usb 1-1.1.2.1: SerialNumber: 200901010001
May 30 16:59:42 octopi kernel: [ 434.373700] uvcvideo: Found UVC 1.00 device USB Camera (0bda:5806)
May 30 16:59:42 octopi kernel: [ 434.378016] uvcvideo 1-1.1.2.1:1.0: Entity type for entity Extension 4 was not initialized!
May 30 16:59:42 octopi kernel: [ 434.378034] uvcvideo 1-1.1.2.1:1.0: Entity type for entity Processing 2 was not initialized!
May 30 16:59:42 octopi kernel: [ 434.378046] uvcvideo 1-1.1.2.1:1.0: Entity type for entity Camera 1 was not initialized!
May 30 16:59:42 octopi kernel: [ 434.378654] input: USB Camera: USB Camera as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2.1/1-1.1.2.1:1.0/input/input1
May 30 16:59:42 octopi mtp-probe: checking bus 1, device 8: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2.1"
May 30 16:59:42 octopi mtp-probe: bus: 1, device: 8 was not an MTP device
May 30 17:00:15 octopi pi: Starting USB webcam
May 30 17:00:16 octopi MJPG-streamer [1105]: starting application
May 30 17:00:16 octopi MJPG-streamer [1105]: MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
May 30 17:00:16 octopi MJPG-streamer [1105]: Using V4L2 device.: /dev/video3
May 30 17:00:16 octopi MJPG-streamer [1105]: Desired Resolution: 640 x 480
May 30 17:00:16 octopi MJPG-streamer [1105]: Frames Per Second.: 10
May 30 17:00:16 octopi MJPG-streamer [1105]: Format............: JPEG
May 30 17:00:16 octopi MJPG-streamer [1105]: TV-Norm...........: DEFAULT
May 30 17:00:16 octopi MJPG-streamer [1105]: init_VideoIn failed

If I reboot with both webcam pluged, the Logitech doesn't work and the endoscope works on port 8080 (where I configured at port 8080, but they change...)

Also I try, to unplug the Logitech and only attach the endoscope:

May 30 16:48:23 octopi kernel: [17355.363081] usb 1-1.1.2.1: new high-speed USB device number 13 using dwc_otg
May 30 16:48:23 octopi kernel: [17355.532355] usb 1-1.1.2.1: New USB device found, idVendor=0bda, idProduct=5806, bcdDevice=58.01
May 30 16:48:23 octopi kernel: [17355.532372] usb 1-1.1.2.1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
May 30 16:48:23 octopi kernel: [17355.532386] usb 1-1.1.2.1: Product: USB Camera
May 30 16:48:23 octopi kernel: [17355.532396] usb 1-1.1.2.1: Manufacturer: Generic
May 30 16:48:23 octopi kernel: [17355.532405] usb 1-1.1.2.1: SerialNumber: 200901010001
May 30 16:48:23 octopi kernel: [17355.536504] uvcvideo: Found UVC 1.00 device USB Camera (0bda:5806)
May 30 16:48:23 octopi kernel: [17355.540736] uvcvideo 1-1.1.2.1:1.0: Entity type for entity Extension 4 was not initialized!
May 30 16:48:23 octopi kernel: [17355.540753] uvcvideo 1-1.1.2.1:1.0: Entity type for entity Processing 2 was not initialized!
May 30 16:48:23 octopi kernel: [17355.540792] uvcvideo 1-1.1.2.1:1.0: Entity type for entity Camera 1 was not initialized!
May 30 16:48:23 octopi kernel: [17355.541211] input: USB Camera: USB Camera as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2.1/1-1.1.2.1:1.0/input/input3
May 30 16:48:23 octopi mtp-probe: checking bus 1, device 13: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2.1"
May 30 16:48:23 octopi mtp-probe: bus: 1, device: 13 was not an MTP device

And then the usb endoscope work well (but if I attach the Logitech doesn't work):

I also I can provide the file I modified:
Files Multicam.zip (10.9 KB)
On Zip file you can find the files octopi.txt, octopi-cam2.txt webcamd, webcam2d on differents folders:
./etc/default
./etc/init.d
./boot/

More info.

If I run ./webcam2d shows this:

Starting up webcamDaemon...

Configuration: ----------------------------
camera: auto
usb options: -r 640x480 -f 10 -d /dev/video3
raspi options: -fps 10
http options: -w ./www -p 8081

Explicitly set USB device was found in options: /dev/video3
Found video devices:
/dev/video0
/dev/video1
/dev/video10
/dev/video11
/dev/video12
/dev/video2
/dev/video3
USB device was set in options and found in devices, start MJPG-streamer with the configured USB video device: /dev/video3
<13>May 30 19:03:02 pi: Starting USB webcam
Running ./mjpg_streamer -o output_http.so -w ./www -p 8081 -i input_uvc.so -r 640x480 -f 10 -d /dev/video3
MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
i: Using V4L2 device.: /dev/video3
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
Unable to set format: 1196444237 res: 640x480
Init v4L2 failed !! exit fatal
i: init_VideoIn failed

If you need more logs, tell me how to get it (my linux skills are very basic) and I attach.

What I need to change to work properly?

Thank you in advance!!

Regards,

Ignasi

Hello Everyone!

After a lot reading, I try to follow the instruction on this topic and it's works!

Thanks to the users!

1 Like

Great you found the solution. Could you please: PSA: Please mark the solutions to your topics as such