Replies: 1 comment
-
Hello, you are unable to start the cameras because you are using the server inside Docker, and Docker isolates the software from the underlying hardware, including the cameras. If you want to use a camera from a software inside Docker, you have to expose the camera, i think it can be performed with the services:
mediamtx:
container_name: mediamtx
image: bluenviron/mediamtx:latest-ffmpeg
restart: unless-stopped
network_mode: "host"
volumes:
- $PWD/conf:/conf:ro
command: /conf/mediamtx.yml
devices:
- /dev/video0:/dev/video0 I don't know whether this configuration is enough, anyway there are tons of guides on the internet on how to access /dev/video* devices from inside Docker. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Webcam not starting
Which version are you using?
v1.6.0
Which operating system are you using?
Describe the issue
Webcam not starting
Describe how to replicate the issue
/opt/mediamtx# v4l2-ctl --list-devices
USB PHY 2.0: USB CAMERA (usb-0000:07:1b.0-1):
/dev/video0
/dev/video1
/dev/media0
Did you attach the server logs?
_mediamtx_logs.txt
mediamtx.yml.txt
docker-compose.yaml.txt
yes
Did you attach a network dump?
no
Beta Was this translation helpful? Give feedback.
All reactions