Kinesis video stream Webcam access to Docker

0

During kinesis video steam using Docker setup when I try to run the Docker (below command) and I am getting the expectation. I want to stream video from PC webcam. How to give Docker access to PC webcam? sudo docker run -it --network="host" --device=/dev/video0 546150905175.dkr.ecr.us-west-2.amazonaws.com/kinesis-video-producer-sdk-cpp-amazon-linux /bin/bash Error:- docker: Error response from daemon: error gathering device information while adding custom device "/dev/video0": no such file or directory. ERRO0000 error waiting for container: context canceled

1 réponse
0

Hello there,

The error that's being returned by docker indicates that it is unable to find a video device mapped to /dev/video0. This could be due to the video device being under a different location in the /dev directory. If you are using Docker on Linux, you can use ls /dev/ to examine the contents of the directory and replace /dev/video0 with the proper file name if the device is mapped to another location. If there is no device listed, then this may indicate an issue with the connection between the webcam device and the computer.

If you are using a different OS (such as macOS or Windows), please ensure you're using the correct Docker image and running the command that corresponds to your OS from here: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/examples-gstreamer-plugin.html#examples-gstreamer-plugin-docker

INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions