4

I have been trying to stream live webcam footage from my PS3 eye toy (connected to RPI through USB).

I downloaded VLC and ran:

 vlc 4l2:///dev/video0

But I keep running into the error

VLC is unable to open the MRL 'v4l2:///dev/video0'

I even tried video1 but still got the same error

Any ideas?

Bex
  • 2,929
  • 3
  • 26
  • 34
Vedant
  • 141
  • 1
  • 1
  • 2

2 Answers2

3

Your user doesn't have permissions to open /dev/video because that dev file is owned by root user and video group. You need to add your user to the video group.

usermod -aG video ${USER}

The a is important as otherwise ${USER} will be removed from all other groups the user is already in (see man usermod). This includes sudo if ${USER} is pi.

Added group memberships aren't effective until the user next logs in.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
nickjb
  • 131
  • 3
1

As per this answer from the archlinux forums, it seems that vlc may require the zvbi package to be able to open v4l2 devices. Indeed, installing it solved the problem for me.

suluke
  • 111
  • 1