Installing VLC Player

sudo apt-get install vlc


Streaming The Camera Video Using RTSP

Enter the following command to start the streaming:

raspivid -o - -t 0 -n | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

raspivid is used to capture the video

"-o -" causes the output to be written to stdout

"-t 0" sets the timeout to disabled

"-n" stops the video being previewed (remove if you want to see the video on the HDMI output)

cvlc is the console vlc player

"-vvv" and its argument specifies where to get the stream from

"-sout" and its argument specifies where to output it to 


Specifying the camera resolution

raspivid -o - -t 0 -n -w 600 -h 400 -fps 12 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264


Width available range: 64 to 1920 


Height available range: 64 to 1080 


Frames per second: 2 to 30 (may change in the future)

Viewing The RTSP Stream Over The Network

You need a player which supports RTSP, for instance VLC, Quicktime, etc.  Open a network stream using


where ###.###.###.### is the IP address of the RPi.





We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.