v4l2: open /dev/video0: Permission denied

If you try to stream using your webcam throught vlc or xawtv

vlc v4l2:///dev/video0
or
xawtv -c /dev/video0

probably you will have this issue.
To solve it, you must add your user to the video group as follows:

sudo adduser username video
sudo usermod -a -G video username

where username is your user (whoami)
Now restart your computer

Enjoy it!

Comments

Popular posts from this blog

How to fix Android when developer options are not available for this user

Exception: Could not find a default OpenFlow controller in Mininet