Open dlgiant opened 4 years ago
This was not neccesary for me (on Manjaro). These resources have a group owner video
$ ls -la /dev/video*
crw-rw----+ 1 root video 81, 0 26 okt 09:15 /dev/video0
crw-rw----+ 1 root video 81, 1 26 okt 09:15 /dev/video1
crw-rw----+ 1 root video 81, 2 26 okt 09:15 /dev/video2
crw-rw----+ 1 root video 81, 3 26 okt 09:15 /dev/video3
crw-rw----+ 1 root video 81, 4 26 okt 12:12 /dev/video4
Are you in this group?
NEVER NEVER do a chmod 777.
In 99.9999999999% case a security issue.
Same here on debian so on ubuntu
$ ls -la /dev/video*
crw-rw----+ 1 root video 81, 0 26 oct. 19:01 /dev/video0
crw-rw----+ 1 root video 81, 1 26 oct. 19:01 /dev/video1
crw-rw----+ 1 root video 81, 2 27 oct. 18:16 /dev/video2
I was getting the error shown up to the moment I performed the chmod. My suggestion was just for the case another user find themselves getting OSError: [Errno 22] Invalid argument
.
But I agree with @HumanG33k, a chmod 777 is a horrible idea in a production environment, it can leave a lot resources vulnerable.
System: Ubuntu 20.04.1
Command:
python faceit_live.py --system linux --webcam_id 1
Error:
Suggestion:
add line below to the README.md:
chmod 777 /dev/video<x>