Skip to content

Instantly share code, notes, and snippets.

@chebykin
Created March 9, 2017 11:14
Show Gist options
  • Save chebykin/d577bdd455390868f0208456f582ecd5 to your computer and use it in GitHub Desktop.
Save chebykin/d577bdd455390868f0208456f582ecd5 to your computer and use it in GitHub Desktop.
AUDIO_CAPS="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)X-GST-OPUS-DRAFT-SPITTKA-00"
# listen
gst-launch-1.0 udpsrc caps=$AUDIO_CAPS port=33258 ! \
rtpopusdepay ! opusdec plc=true ! autoaudiosink
# stream
gst-launch-1.0 -vvvvv audiotestsrc ! audioconvert ! opusenc ! rtpopuspay ! udpsink port=33258 host=<your IP>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment