Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use the docker image to display my webcam's input #2

Open
gino0717 opened this issue Dec 3, 2021 · 1 comment
Open

How do I use the docker image to display my webcam's input #2

gino0717 opened this issue Dec 3, 2021 · 1 comment

Comments

@gino0717
Copy link

gino0717 commented Dec 3, 2021

hi, I'm using the ubuntu and I would try to use this example to display the video from my webcam

I follow the Readme to build the docker
I follow the command and It doesn't work because of wrong image name

docker run -p 8000:8000 -t example-yuv-websocket-stream-exe

so I use

docker run -p 8000:8000 -t example-yuv-websocket-stream

I open the webpage in browser in http://127.0.0.1:8000/v0/cam/stream, the terminal display error message:

E |2021-12-03 08:00:40 1638518440168926| V4L-Grabber:Cannot identify '/dev/video0': No such file or directory (2)
E |2021-12-03 08:00:40 1638518440168955| V4L-Grabber:Cannot identify '/dev/video1': No such file or directory (2)
E |2021-12-03 08:00:40 1638518440168965| V4L-Grabber:Cannot identify '/dev/video2': No such file or directory (2)
E |2021-12-03 08:00:40 1638518440168973| Cam:Non of the tested /dev/video devices could be opened
W |2021-12-03 08:00:40 1638518440169004| [oatpp::web::server::HttpProcessor::processNextRequest()]:Warning. ConnectionUpgradeHandler not set!

it seems that the program cannot find the /dev/video
so I give it the path by using volume

docker run -p 8000:8000 -v='/dev/:/dev/' -t example-yuv-websocket-stream

then it shows

E |2021-12-03 08:13:05 1638519185420066| V4L-Grabber:Cannot identify '': No such file or directory (2)
E |2021-12-03 08:13:09 1638519189091845| V4L-Grabber:Cannot identify '': No such file or directory (2)

what should I do to run the webcam?

@gino0717 gino0717 changed the title how do I use the docker image to display my webcam's input How do I use the docker image to display my webcam's input Dec 3, 2021
@lganzzzo
Copy link
Member

lganzzzo commented Dec 4, 2021

@bamkrs , we need your assistance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants