Skip to content

Instantly share code, notes, and snippets.

@jledet
Last active August 29, 2015 14:06
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 jledet/d6ceebbdbd5ca58977e8 to your computer and use it in GitHub Desktop.
Save jledet/d6ceebbdbd5ca58977e8 to your computer and use it in GitHub Desktop.
GST server/client
Client:
gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96, sprop-parameter-sets=(string)\"Z2QAH6zZQFAFuwEQAAADABAAAAMDCPGDGWA\=\,aOvssiw\=\"" ! rtpjitterbuffer latency=3000 ! rtph264depay ! avdec_h264 ! autovideosink
Server:
gst-launch-1.0 -v filesrc location=/home/jlp/Videos/big_buck_bunny_720p_h264_1mbit.mov ! qtdemux ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=5000
Client with audio:
gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96, sprop-parameter-sets=(string)\"Z2QAH6zZQFAFuwEQAAADABAAAAMDCPGDGWA\=\,aOvssiw\=\"" ! rtpjitterbuffer latency=3000 ! rtph264depay ! avdec_h264 ! autovideosink udpsrc port=5001 caps="application/x-rtp, media=(string)audio, clock-rate=(int)48000, encoding-name=(string)MPEG4-GENERIC, encoding-params=(string)6, streamtype=(string)5, profile-level-id=(string)2, mode=(string)AAC-hbr, config=(string)11b0, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, payload=(int)96" ! rtpjitterbuffer latency=3000 ! rtpmp4gdepay ! faad ! autoaudiosink
Server with audio:
gst-launch-1.0 -v filesrc location=/home/jlp/Videos/big_buck_bunny_720p_h264_1mbit.mov ! qtdemux name=d d. ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=5000 d. ! queue ! rtpmp4gpay ! udpsink host=127.0.0.1 port=5001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment