form http://www.raspberrypi.org/forums/viewtopic.php?t=49278&p=388881
My solution to stream camera vid on RTSP:
Install GStreamer:
sudo apt-get install gstreamer-tools gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
//在此处 还要获取下 base的新版本,rtsp server 是基于0.10.28以上版本
sudo apt-get install libgstreamer-plugins-base0.10-dev
Make gst-rtsp:
wget http://gstreamer.freedesktop.org/src/gst-rtsp/gst-rtsp-0.10.8.tar.bz2
bzip2 -d gst-rtsp-0.10.8.tar.bz2
tar xvf gst-rtsp-0.10.8.tar
cd gst-rtsp-0.10.8/
./configure
make
Run gst-launch with raspivid input:
raspivid -t 0 -w 800 -h 600 -fps 25 -g 5 -b 4000000 -vf -n -o - | gst-launch -v fdsrc ! h264parse ! gdppay ! tcpserversink host=127.0.0.1 port=5000
In gst-rtsp-0.10.8/exemples run the RTSP server:
./test-launch "( tcpclientsrc host=127.0.0.1 port=5000 ! gdpdepay ! rtph264pay name=pay0 pt=96 )"
On RTSP player or on Android with RTSP Player:
rtsp://192.168.0.10:8554/test
Improvment for fixed latency and permit to lose frame on bad connection are wellcome.