Last Updated: March 31, 2016
·
7.65K
· christurnbull

gstreamer commands for desktop streaming to raspberry pi

FFMPEG H264

send:

ffmpeg -f x11grab -show_region 1 -s 1024x768 -r 25 -i :0.0+10,210 -vcodec libx264 -preset ultrafast -tune zerolatency -f rtp rtp://192.168.0.11:5000

recv:

gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! autovideosink sync=false


VLC MJPG

send:

cvlc screen:// :screen-fps=25 :screen-caching=100 --sout '#transcode{vcodec=MJPG,vb=0,width=1022,height=575,acodec=none}:http{mux=mpjpeg,dst=:8080/}'

recv:

gst-launch-1.0 -v souphttpsrc location=http://192.168.0.7:8080 ! jpegparse ! omxmjpegdec ! autovideosink


VLC MJPEG (OGG for sound muxing)

send:

cvlc screen:// :screen-fps=25 :screen-caching=100 --sout '#transcode{vcodec=MJPG,vb=0,width=1022,height=575,acodec=none}:http{mux=ogg,dst=:8080/}'

recv:

gst-launch-1.0 -v souphttpsrc location=http://192.168.0.7:8080 ! oggdemux ! jpegparse ! omxmjpegdec ! autovideosink


Other

gst-launch-1.0 -v souphttpsrc location=http://192.168.0.7:8080 ! decodebin ! autovideosink

gst-launch-1.0 rtspsrc location=rtsp://192.168.0.7:8554/ ! rtph264depay ! h264parse ! omxh264dec ! autovideosink

gst-launch-1.0 -v souphttpsrc location=http://192.168.0.7:8080 ! jpegparse ! omxmjpegdec ! autovideosink

gst-launch-1.0 -v tcpclientsrc host=192.168.0.7 port=8080 ! jpegparse ! omxmjpegdec ! autovideosink