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.

  • Which Pi do you have? Which OS are you using? Do you want to do this from the GUI or from the command-line? – tlhIngan Dec 23 '16 at 5:15
  • 1
    Possible duplicate of How to stream video from raspberry Pi camera and watch it live – tlhIngan Dec 23 '16 at 5:16
  • I am using raspberry pi 3 and working with Linux. And yes, I wanna do this with command line. – navs Dec 23 '16 at 7:00
  • Well it was the same question but i am using USB camera. I hope all the answer mentioned above there are for pi camera. can i consider the same answers for USB cam too? – navs Dec 23 '16 at 7:07
  • Duplicate of earlier question: USB camera for streaming – Dave Jones Dec 29 '16 at 18:15
0

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
  • 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 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.