TheSpaghettiDetective / moonraker-obico

GNU Affero General Public License v3.0
147 stars 40 forks source link

How can I use or switch between multiple cameras in Obico? #77

Closed cray12399 closed 1 year ago

cray12399 commented 1 year ago

I am running the latest versions of Klipper, Moonraker, Fluidd, and Crowsnest. I recently enrolled in the Celestrius project and installed a 720p endoscope onto my printer. With this endoscope added, I now have 2 cameras, my usb arducam nightvision camera (Main Camera) and the endoscope (Nozzle Camera). Both show up and stream perfectly on my Fluidd page. However, when I go to Obico, I only see the Main Camera and not the Nozzle Camera. Both cameras are running the WebRTC Stream protocol.

Here are my settings for both cameras:

[crowsnest]
log_path: ~/printer_data/logs/crowsnest.log
log_level: verbose                      # Valid Options are quiet/verbose/debug
delete_log: true                       # Deletes log on every restart, if set to true

[cam 1]
mode: camera-streamer                         # ustreamer - Provides mjpg and snapshots. (All devices)
                                        # camera-streamer - Provides webrtc, mjpg and snapshots. (rpi + Raspi OS based only)
enable_rtsp: false                      # If camera-streamer is used, this enables also usage of an rtsp server
rtsp_port: 8554                         # Set different ports for each device!
port: 8080                              # HTTP/MJPG Stream/Snapshot Port
device: /dev/video0                     # See Log for available ...
resolution: 1280x720                     # widthxheight format
max_fps: 15                             # If Hardware Supports this it will be forced, otherwise ignored/coerced.
#custom_flags:                          # You can run the Stream Services with custom flags.
#v4l2ctl:                               # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of.

[cam 2]
mode: camera-streamer                         # ustreamer - Provides mjpg and snapshots. (All devices)
                                        # camera-streamer - Provides webrtc, mjpg and snapshots. (rpi + Raspi OS based only)
enable_rtsp: false                      # If camera-streamer is used, this enables also usage of an rtsp server
rtsp_port: 8555                         # Set different ports for each device!
port: 8081                              # HTTP/MJPG Stream/Snapshot Port
device: /dev/video2                     # See Log for available ...
resolution: 1280x720                     # widthxheight format
max_fps: 15                             # If Hardware Supports this it will be forced, otherwise ignored/coerced.
#custom_flags:                          # You can run the Stream Services with custom flags.
#v4l2ctl:                               # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of.

Is there some way to show get Obico to recognize and display both cameras? Or allow me to switch between them? I want to partake in Celestrius, but I dont want to disable my main camera.

kennethjiang commented 1 year ago

Our github issues are reserved for bug reports and feature requests. Please come to Celestrius discord server to ask questions: https://discord.gg/UZmkUctt