Docker - Octoprint - Logitech C270

Webcam not working in octoprint docker container.

System is Rocky Linux 8.6, Logitech C270. Running cheese on the system works, camera image comes right up without any trouble.

version: '2.4'

services:
  octoprint:
    image: octoprint/octoprint
    restart: unless-stopped
    ports:
      - 80:80
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
      - /dev/video0:/dev/video0
    volumes:
      - octoprint:/octoprint
    environment:
      - ENABLE_MJPG_STREAMER=true
      - MJPG_STREAMER_INPUT=-r 1280x960 -f 30 -d /dev/video0
volumes:
  octoprint:

**browser.user_agent** : Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 **connectivity.connection_check** : 1.1.1.1:53 **connectivity.connection_ok** : true **connectivity.enabled** : true **connectivity.online** : true **connectivity.resolution_check** : octoprint.org **connectivity.resolution_ok** : true **env.hardware.cores** : 8 **env.hardware.freq** : 4500 **env.hardware.ram** : 8082358272 **env.os.bits** : 64 **env.os.id** : linux **env.os.platform** : linux **env.python.pip** : 22.0.4 **env.python.version** : 3.8.13 **env.python.virtualenv** : false **octoprint.last_safe_mode.date** : unknown **octoprint.last_safe_mode.reason** : unknown **octoprint.safe_mode** : false **octoprint.version** : 1.8.1 **systeminfo.generated** : 2022-06-29T20:32:16Z **systeminfo.generator** : systemapi

WRITE HERE

Additional information about your setup

Printer: Sovol SV04, connectivity to the printer seems fine so far.

Is there some package the host system needs to get the webcam working under docker/octoprint?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.