Open
Description
Describe the bug
Multiple webcams do not work when the CAMERA_DEV variable contains more than 1 entry
Container Details
2024-06-18T08:11:07.371Z
To Reproduce
Steps to reproduce the behavior:
- add multiple camera devices to the container and to the CAMER_DEV variable
- run the image
Expected behavior
multiple camera streams are created
Additional context
docker compose file
octoprint:
image: octoprint/octoprint
restart: always
ports:
- 8080:80
devices:
- /dev/ttyACM0:/dev/ttyACM0
- /dev/video2:/dev/video0
- /dev/video0:/dev/video1
volumes:
- ./octoprint:/octoprint
- /etc/localtime:/etc/localtime:ro
environment:
- ENABLE_MJPG_STREAMER=true
- CAMERA_DEV=/dev/video0, /dev/video1
I see this in the logs
MJPG Streamer Version.: 2.0
[services.d] done.
i: Using V4L2 device.: (null)
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: init_VideoIn failed
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: (null)
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: init_VideoIn failed