What is the problem?
Hello everyone,
Here is my problem:
I followed your tutorial for the installation of two cameras, a C170 and a "nor tech" full HD (from action - 9$).
After a few manipulations everything worked perfectly.
Given the quality of the nor tec camera, I decided to get a second one and replace the ageing logitech.
The problem is that the two cameras are strictly identical and have the same id:
usb-Jieli_Technology_USB_PHY_2.0-video-index0
ls /dev/v4l/by-id
usb-Jieli_Technology_USB_PHY_2.0-video-index0
usb-Jieli_Technology_USB_PHY_2.0-video-index1
If I unplug one of the two cameras, it works correctly and is displayed in octoprint.
What did you already try to solve it?
I tried a workaround with :
ls /dev/v4l/by-path
platform-bcm2835-codec-video-index0
platform-bcm2835-isp-video-index0
platform-bcm2835-isp-video-index1
platform-bcm2835-isp-video-index2
platform-bcm2835-isp-video-index3
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index0
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index1
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index1
I can see my two cameras (usb-0:1.2:1.0-video-index0 / usb-0:1.3:1.0-video-index0)
I configured my conf files like this:
octopi.txt
camera="usb
camera_usb_options="-r 1920x1080 -f 10 /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index0"
#camera_http_webroot="./www-octopi"
#camera_http_options="-n"
webcam2.txt
camera="usb
camera_usb_options="-r 1920x1080 -f 10 /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0"
#camera_http_webroot="./www-octopi"
camera_http_options="-n -p 8081"
I've also tried changing the usb port, but that didn't fix the problem
Have you tried running in safe mode?
no
Did running in safe mode solve the problem?
/
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
deleted
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
OCTOPRINT Version 1.9.1
lsusb result :
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1224:2a25
Bus 001 Device 003: ID 1224:2a25
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
webcamd.log
Starting up webcamDaemon...
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: usb
usb options: -r 1920x1080 -f 10 /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0$
raspi options: -fps 10
http options: -w ./www-octopi -n --listen 127.0.0.1
Explicitly USB device:
-----------------------------------------------
cfg_file: /boot/octopi.conf.d/webcam2.txt
camera: usb
usb options: -r 1920x1080 -f 10 /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0$
raspi options: -fps 10
http options: -w ./www-octopi -n -p 8081
Explicitly USB device:
-----------------------------------------------
Found video devices:
/dev/video0
/dev/video1
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video18
/dev/video2
/dev/video3
config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first fou$
<13>Jul 7 22:40:49 root: Starting USB webcam
Checking for VL805 (Raspberry Pi 4)...
- It seems that you don't have VL805 (Raspberry Pi 4).
There should be no problems with USB (a.k.a. select() timeout)
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n --listen 127.0.0.1 -i input_uvc.so -r 1920x$
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 1920 x 1080
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: FPS coerced ......: from 10 to 25
UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
o: www-folder-path......: ./www-octopi/
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: 127.0.0.1
o: username:password....: disabled
o: commands.............: disabled
config file='/boot/octopi.conf.d/webcam2.txt':USB device was not set in options, start MJPG-streamer wit$
<13>Jul 7 22:40:50 root: Starting USB webcam
Checking for VL805 (Raspberry Pi 4)...
- It seems that you don't have VL805 (Raspberry Pi 4).
There should be no problems with USB (a.k.a. select() timeout)
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -p 8081 -i input_uvc.so -r 1920x1080 -f 10 $
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
i: Using V4L2 device.: /dev/video1
i: Desired Resolution: 1920 x 1080
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
Unable to set format: 1196444237 res: 1920x1080
Thanks for any help you can give me