Skip to content

Instantly share code, notes, and snippets.

@kashimAstro
Created June 2, 2016 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kashimAstro/42a62708707eb4bcdc0bd22f698a2717 to your computer and use it in GitHub Desktop.
Save kashimAstro/42a62708707eb4bcdc0bd22f698a2717 to your computer and use it in GitHub Desktop.
Raspberry server and client RTP with gstreamer
#server
raspivid -t 999999 -w 800 -h 600 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.0.100 port=5000
#client
gst-launch-1.0 -v tcpclientsrc host=192.168.0.100 port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment