Stream the #RaspberryPi camera module to VLC media player

Leo White, on the Foundation forum, has provided the answer to a question I asked about streaming from the Pi camera to VLC.

There are two alternatives. One is over http, the other uses the rstp protocol.

Here’s the HTTP version:

raspivid -o - -t 9999999 -w 800 -h 600 --hflip | cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8080}' :demux=h264

And here’s the RTSP version:

raspivid -o - -t 9999999 -w 800 -h 600 --hflip | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8080/}' :demux=h264

Now, the RTSP stream is better quality but the HTTP stream lets you do things like allowing remote clients to connect to it through your router.

To open up the streams, use:

http://<pi ip address>:8080

or

rtsp://<pi ip address>:8080

7 comments for “Stream the #RaspberryPi camera module to VLC media player

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.