How to run two cameras? Was working before

Camera model
Logitech C270 and WinBook UVC CAM

What is the problem?
Cannot setup a second instance of webcam daemon.

What did you already try to solve it?
I had it working by following this guide: https://www.makersmashup.com/post/outside-the-box-multiple-webcam-setup-with-octoprint

I had to redo everything and it seems now the structure has changed, the guide is no longer valid.

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

Additional information about your setup (OctoPrint version, OctoPi version, ...)

Pi 4, latest octopi .17.0

This is what I get when i start my second instance:


Starting up webcamDaemon...

--- Configuration: ----------------------------
cfg_file:      /boot/octopi-cam2.txt
camera:        auto
usb options:   -r 1280x720 -f 30 -d /dev/video3
raspi options: -fps 10
http options:  -w ./www -p 8081

Explicitly USB device: /dev/video3
-----------------------------------------------

Found video devices:
/dev/video0
/dev/video1
/dev/video10
/dev/video11
/dev/video12
/dev/video2
/dev/video3
config file='/boot/octopi-cam2.txt':USB device was set in options and found in devices, start MJPG-streamer with the configured USB video device: /dev/video3
<13>Dec  5 23:26:05 pi: Starting USB webcam
Running ./mjpg_streamer -o output_http.so -w ./www -p 8081 -i input_uvc.so -r 1280x720 -f 30 -d /dev/video3
MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
 i: Using V4L2 device.: /dev/video3
 i: Desired Resolution: 1280 x 720
 i: Frames Per Second.: 30
 i: Format............: JPEG
 i: TV-Norm...........: DEFAULT
Unable to set format: 1196444237 res: 1280x720
Init v4L2 failed !! exit fatal
 i: init_VideoIn failed
Done bring up all configured video device

Goodbye...



Also, when i list devices

bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12

UVC Camera (046d:0825) (usb-0000:01:00.0-1.1):
/dev/video0
/dev/video1

USB2.0 HD UVC AF Camera: USB2.0 (usb-0000:01:00.0-1.2):
/dev/video2
/dev/video3

I don't understand why each one has two identifiers. It wasn't like this on my previous setup. Also not sure what the top 3 are.

Any help appreciated, thanks.

This might help you :slight_smile:

They are part of the processors video core

This worked for me. That was MUCH easier then how i had done it before. thank you so much, i've been getting frustrated for HOURS.

1 Like