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:

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:
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 -w ./www -p 8081 -i -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


Also, when i list devices

bcm2835-codec-decode (platform:bcm2835-codec):

UVC Camera (046d:0825) (usb-0000:01:00.0-1.1):

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

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.

1 Like

This might help you :slight_smile:

They are part of the processors video core

1 Like

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