Streaming Video from RPi

Below are the commands I have used to stream H264 Video from an Raspberry Pi 2 to Linux/OSX computer​

Install gstreamer 1.0

$ sudo apt-get update
$ sudo apt-get install gstreamer1.0
$ gst-inspect-1.0 | grep h264parse # verify install

​Start Video Stream

Target IP address is the Linux PC 

$ raspivid -n -w 640 -h 480 -b 1000000 -fps 15 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=10.0.1.201 port=9000

Test Video on Target PC

$ gst-launch-1.0 -v udpsrc port=9000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! videoconvert ! ximagesink