User Tools

Site Tools


createvlcstream

Create a VLC-readable stream

If you would like to see a realtime stream from your RaspberryPi Cam, the best solution is to use VLC as a streaming-client.

First you have to install vlc-tools by installing “vlc”:

sudo apt-get update
sudo apt-get install vlc libv4l-0

Then just run the usual raspivid command, pushing all output to stdin and pipe this into cvlc to create the broadcast networkstream:

raspivid -n -o - -t 999999 -w 1024 -h 768 -fps 25 | cvlc stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264

Expecting your raspi has e.g. the IP 192.168.0.204, then you can just open VLC and open a new networkstream by opening:

http://192.168.0.204:8090

Details:
The port you choose (here 8090) is flexible, so you can choose a port on your own. In addition you can also choose the resolution, in this example I chose 1024px * 768px.

Beside a lot of other internet examples you can also use “-t 0” for unlimited streaming, instead of putting in the many nines.

createvlcstream.txt · Last modified: 10.10.2013 20:00 by andreas