0

I have connected the monitor to the pi via HDMI. I would like to figure out a way to get a live video playing on the monitor. ( not over a network) I know there is a answer for this question here.

https://raspberrypi.stackexchange.com/questions/57841/watch-live-video-through-hdmi-on-rpi?noredirect=1&lq=1

But in my case i am using USB camera module,not the pi camera. kindly suggest.

navs
  • 57
  • 1
  • 3
  • 8

1 Answers1

2

If you have VLC installed (if you don't, it can be installed with sudo apt-get install vlc) and an X server running, you can run

vlc v4l2:// :v4l2-dev=/dev/video0

to see live video from the camera.

You can also use parameters from here to change video settings like this:

vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480
Evan Chen
  • 146
  • 2
  • Hi, I have tried it, v4l2 demux error: dequeue error:no such device this is the error I am getting. In the pi's desktop environment I installed VLC and tried to play the video with the command you mentioned above. media player was opened with the blank black screen. – navs Dec 29 '16 at 07:16