Camera model: Logitech c920
What is the problem?: I'm running OctoPrint in docker (works great) on my Raspberry Pi (that is running Raspbian and serves DHCP through pinhole, also works great).
I've plugged my Logitech c920 into the Pi, and the system recognizes it. I can even preview a snapshot in OctoPrint. However, I cannot get the stream to work.
What did you already try to solve it? Read every forum post and solution this side of the internet to see if I could figure out what's wrong. Tried changing ports and address listed in the stream settings in OctoPrint to the IP my Pi is sitting on (local_ip:5000), and a bunch of other little things like that, but have reverted back to the stock settings.
This the docker-compose.yml file I'm using; I believe I've enabled all the suggested settings for the webcam to work:
version: '2.4'
services:
octoprint:
image: octoprint/octoprint
restart: unless-stopped
ports:
- 5000:5000
devices:
# use `python -m serial.tools.miniterm` to see what the name is of the printer
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/video0:/dev/video0
volumes:
- octoprint:/octoprint
# uncomment the lines below to ensure camera streaming is enabled when
# you add a video device
environment:
- ENABLE_MJPG_STREAMER=true
####
# uncomment if you wish to edit the configuration files of octoprint
# refer to docs on configuration editing for more information
####
#config-editor:
# image: linuxserver/code-server
# ports:
# - 8443:8443
# depends_on:
# - octoprint
# restart: unless-stopped
# environment:
# - PUID=0
# - GUID=0
# - TZ=America/Chicago
# volumes:
# - octoprint:/octoprint
volumes:
octoprint:
Logs (/var/log/webcamd.log
, syslog, dmesg, ... no logs, no support): Tried to find webcamd.log, but I don't see it where it's supposed to be.
Tried to use SCP to save syslog to my local machine (accessing everything on the Pi headless using ssh/zsh on my Mac), but the file came over blank. Couldn't select-all and copy from Terminal, so not sure how to get that to everyone.
Additional information about your setup (OctoPrint version, OctoPi version, ...): OctoPrint v. 1.73 running in Docker; everything on the system is updated as of this morning.