G
G
Glory2021-12-23 03:31:30
ubuntu
Glory, 2021-12-23 03:31:30

How to make webcam work right after booting Ubuntu?

After starting the system, you always have to run

mplayer tv:// -tv driver= v4l2:width=640:height=480:device=/dev/video0 -fps 30

only after that the webcam starts working correctly.

If you do not start the player, from skype or zoom, this camera is detected, but it shows only gray color, a faintly visible silhouette is also gray. As a result, every time I boot up the computer, I first have to execute
mplayer tv:// -tv driver= v4l2:width=640:height=480:device=/dev/video0 -fps 30
and then turn off the player and only then can I use the camera in applications.

Ubuntu 20.04

Camera Creative Live! Cam Sync HD

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2021-12-23
@Drno

put in bash script
add user to crontab
after startup pause for 5 seconds and killall mplayer
I would do
mplayer script like this tv:// -tv driver= v4l2:width=640:height=480:device=/dev/video0 -fps 30
sleep 5
killall mplayer

P
pfg21, 2021-12-23
@pfg21

write a systemd script to start the service.
https://habr.com/ru/company/southbridge/blog/255845/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question