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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠