====== Raspivid - streaming ====== * Netcat (nc) seems to be the one with the smallest delay. * In my experience, VLC has the biggest delay. On the other hand, there is a VLC client for Android, which is convenient. * is the IP of the computer that should receive the video stream. * is the IP of the Raspberry Pi. ===== Using Netcat: ===== ==== On the client ==== (Run the command on the client first, and then on the server (RPi)). Linux nc -l 2222 | mplayer -fps 200 -demuxer h264es - OS X nc -l 2222 | mplayer -fps 200 -demuxer h264es - ==== On the RPi ==== /opt/vc/bin/raspivid -t 0 -w 300 -h 300 -hf -fps 20 -o - | nc 2222 ===== Using GStreamer: ===== ==== On the client ==== Linux gst-launch-1.0 -v tcpclientsrc host= port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false OS X gst-launch-1.0 -v tcpclientsrc host= port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! osxvideosink sync=false ==== On the RPi ==== /opt/vc/bin/raspivid -t 0 -hf -fps 20 -w 300 -h 300 -o - | gst-launch-1.0 fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host= port=5000 ===== Using VLC ===== ==== On the client ==== The client might even be on a mobile phone (I tried on Android). Simply open from the network in the VLC client: http://:8090 ==== On the RPi ==== /opt/vc/bin/raspivid -o - -t 0 -hf -w 640 -h 360 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264