Skip to content

Instantly share code, notes, and snippets.

@maruware
Created March 23, 2020 09:36
Show Gist options
  • Save maruware/b958a719235963df06bd563f60ce6b89 to your computer and use it in GitHub Desktop.
Save maruware/b958a719235963df06bd563f60ce6b89 to your computer and use it in GitHub Desktop.
gstreamer RTP

H264

Receiver

gst-launch-1.0 videotestsrc is-live=true ! video/x-raw,framerate=25/1 ! videoconvert ! x264enc ! h264parse ! rtph264pay pt=96 ! udpsink host=127.0.0.1 port=5000

Sender

gst-launch-1.0 -v udpsrc port=5000 ! application/x-rtp,clock-rate=90000,payload=96 ! rtph264depay ! h264parse ! decodebin ! videoconvert ! autovideosink sync=false

VP8

Receiver

gst-launch-1.0 videotestsrc is-live=true ! video/x-raw,framerate=25/1 ! videoconvert ! vp8enc ! rtpvp8pay pt=96 ! udpsink host=127.0.0.1 port=5000

Sender

gst-launch-1.0 -v udpsrc port=5000 ! application/x-rtp,media=(string)video,clock-rate=(int)90000,payload=(int)96,encoding-name=(string)VP8 ! rtpvp8depay ! vp8dec ! videoconvert ! autovideosink sync=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment