Skip to content

Instantly share code, notes, and snippets.

@chebykin
Created March 12, 2017 13:46
Show Gist options
  • Save chebykin/93c571f3225892954250a3d2704b2ee1 to your computer and use it in GitHub Desktop.
Save chebykin/93c571f3225892954250a3d2704b2ee1 to your computer and use it in GitHub Desktop.
Gstreamer stream h264 to UDP port
# sudo apt-get install openh264-gst-plugins-bad-1.5
gst-launch-1.0 videotestsrc ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=9754
sdp <<< EOF
v=0
m=video 5000 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 H264/90000
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment