Skip to content

Instantly share code, notes, and snippets.

@tetkuz
Last active September 23, 2015 17:39
Show Gist options
  • Save tetkuz/8096d71acac8a2457531 to your computer and use it in GitHub Desktop.
Save tetkuz/8096d71acac8a2457531 to your computer and use it in GitHub Desktop.
RTP Stream Pipeline
#!/bin/sh
gst-launch-1.0 -v \
rtpbin name=rtpbin \
udpsrc \
caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264" \
port=5555 \
! rtpbin.recv_rtp_sink_0 \
rtpbin. \
! rtph264depay ! h264parse \
! avdec_h264 ! videoconvert \
! ximagesink
#!/bin/sh
gst-launch-1.0 -v \
filesrc location=softboy.avi ! avidemux \
! avdec_mpeg4 ! videorate ! video/x-raw,framerate=10/1 \
! x264enc ! rtph264pay config-interval=3 \
! udpsink force-ipv4=true port=5555 host=127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment