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 個回答
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

支援工程師
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南