Saturday, October 19, 2013

Raspberry Pi - Gstreamer streaming H.264 with OpenMax

On Rasbian:
* add the following line to /etc/apt/sources.list
deb http://vontaene.de/raspbian-updates/ . main
* install:
apt-get update
apt-get install libgstreamer1.0-0-dbg gstreamer1.0-tools libgstreamer-plugins-base1.0-0 \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad-dbg gstreamer1.0-omx gstreamer1.0-alsa



Raspberry pi's pipeline:
gst-launch-1.0 -v videotestsrc ! 'video/x-raw, width=640, height=480, framerate=15/1' ! queue ! videoconvert ! omxh264enc ! rtph264pay pt=96 ! udpsink host=REMOTE_IP port=500




Linux's pipeline:
sudo gst-launch-0.10 udpsrc port=500 ! 'application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" ! gstrtpjitterbuffer mode=slave latency=200 drop-on-latency=true ! rtph264depay ! video/x-h264,width=640,height=480, framerate=30/1 ! ffdec_h264 ! ffmpegcolorspace ! xvimagesink