I'm having the problem with multiple cam. One is a normal webcam and another is endoscope.
Haven't had luck for them to work at the same time. After every boot it seems random which camera works. And if I reboot without making any configuration change, then it might be the another camera that works.
I have the MultiCam plugin added and I can switch between cameras with the buttons (but just that only one works at the time).
What could cause this kind of behaviour and is there something that could be changed in config for both of them to work?
Good day Charlie
I am apealing to you as the "go to guy" for all things webcam related on the Raspberry Pi 4+ / Octopi
After running Octopi for a couple of years using a script provided by Chris Riley who managed to get my Pi cam, Logitech 270 & Logitech C920 running via multi-cam in octoprint. I ran across a problem where after a new SD card was needed i found i could no longer use the same script. Now i have tried following Chris's updated youtube instructions but some of the part he refers to no longer seem to be present in the "Octopi.Txt" file, such as "default camera" and i also see a comment saying RaspiCam is no longer in theOctopi.Txt file but is reffered to in something called the UVC folder!!!!
Being a complete novice to the Octopi language i am at a complete loss.
This is where i come cap in hand to your good self for pointers and directions to get my setup running again! Does the thing about RaspiCam & UVC get dealt with in [latest camera-streamer based webcam stack build (20230328122604) ??? Or am i barking up the wrong tree??
Please, any pointers would be greatly appreciated, and appologies if i have contacted you in the wrong way! Thanks
for some reason i dont seem to have a /var/webcamd.log so cannot look in there, i would realy apreciate some help.
thanks
martin
my webcam2 file
### Configure which camera to use
#
# Available options are:
# - auto: tries first usb webcam, if that's not available tries raspi cam
# - usb: only tries usb webcam
# - raspi: only tries raspi cam
#
# Defaults to auto
#
camera="usb"
### Additional options to supply to MJPG Streamer for the USB camera
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to a resolution of 640x480 px and a framerate of 10 fps
#
camera_usb_options="-r 1080x720 -f 10 -d /dev/v4l/by-id/usb-Huawei_HiCamera_12345678-video-index0"
### additional options to supply to MJPG Streamer for the RasPi Cam
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to 10fps
#
#camera_raspi_options="-fps 10"
### Configuration of camera HTTP output
#
# Usually you should NOT need to change this at all! Only touch if you
# know what you are doing and what the parameters mean.
#
# Below settings are used in the mjpg-streamer call like this:
#
# -o "output_http.so -w $camera_http_webroot $camera_http_options"
#
# Current working directory is the mjpg-streamer base directory.
#
camera_http_webroot="./http://192.168.0.107"
camera_http_options="-n -p 8082"
# Configuration of network monitoring
#
# This enables network monitoring for wifi connections with a simple ping test.
# If connection terminates by variable reasons system tries to restart the wifi connection to reestablish a connection.
# The connection test is done every minute.
# By default it is disabled (0 = off / 1 = on)
# destination_host can be an ip address or a hostname (for hostname ensure dns resosultion is working correctly)
#enable_network_monitor=0
#destination_host=192.168.1.1
### EXPERIMENTAL
# Support for different streamer types.
#
# Available options:
# mjpeg [default] - stable MJPG-streamer
# hls - experimental FFMPEG HLS streamer
#camera_streamer=mjpeg
I see my USB Camera but I cannot use my raspicam anymore when I try to use multiple cameras since the camera="raspi" has been removed and I don't know which device I have to add to the "camera_usb_options=" via parameter "-d" because this is simply not in the not updated yet guide.
I tried to use the -d dev/v4l/by-path/platform-bcm2835-isp-video-index0 but it doesnt work.
So long I have to go with 1 camera but 2 cameras are so convinient and maybe there could also be a UI within OctoPrint for this instead of having to fiddle around with the files (just a wish for the future).
Thank you for all the great work so far. Enriches my 3D printing life so much!
With the advent of the new camera stack for OctoPi it's not top of my priorities to get out my RPi cam & the old stack now to figure out what it should be. If it's simple and takes me 5 mins (or if someone else knows the answer) that would be good. I can't do it at the moment as I don't have the hardware accessible.
I can definitely recommend the new camera stack, which also makes adding new cameras even easier - it's available in the RPi imager as an additional option.
Not that I'm aware of. You have to manually install since it's unlisted. Go to plugin manager > get more and at the bottom in the ...from URL field copy/paste this url and click install.
Thanks for the documentation, unfortunately it doesn't work on the latest nightly octopi image (based on raspian bookworm). I get the error "The webcam server is currently not running".
The reason might be that they changed /boot to /boot/firmware (octopi.txt is also found there). So i tried to place the octopi.conf.d directory also there but it ignores it. Trying to place it in /boot does also not work.
Do you have any hint what should be modified to get it running on bookworm (cam1 is working well here)
I need to use bookworm since it has proper pi5 support and octoprint works there flawlessly.
hello everyone, i try follow all the steps , but both cameras never work same time one work the other one just said server error, when i swap the cameras same thing only front camera or nozzle camera but never together