I have created a new docker template for Octoprint using the official docker images and supporting webcam streaming.
You need video drivers installed on unRaid for the kernel to see a camera.
(on Version: 6.10.0-rc1) - install DVB Drivers in Community Apps and select LibreELEC
This will need a reboot after installation
plug in your camera, you should see /dev/video0 appear in a terminal session on unRaid
Install OctoPrint-Spants
add the following:
variables:
ENABLE_MJPG_STREAMER true
CAMERA_DEV /dev/video0
MJPG_STREAMER_INPUT -y -n -r 640x480 (can change to suit)
port:
webcam container port 80 host port 5003
snapshot container port 8080 host port 5004
In octoprint's webcam settings
set the stream url to http://IPADDRESS:5003/webcam/?action=stream and test - it should work
set the snapshot url to http://IPADDRESS:5004/?action=snapshot and test
IPADDRESS is your unraid server address if you used bridge networking