Skip to content

[BUG] Multi cam not working on main image #270

Open
@Rylan-Meilutis

Description

@Rylan-Meilutis

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:

  1. add multiple camera devices to the container and to the CAMER_DEV variable
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions