Skip to content

Instantly share code, notes, and snippets.

@anselmobattisti
Created August 20, 2019 00:56
Show Gist options
  • Save anselmobattisti/2bce1cdef3f5a1304ffcea4b5d27eeee to your computer and use it in GitHub Desktop.
Save anselmobattisti/2bce1cdef3f5a1304ffcea4b5d27eeee to your computer and use it in GitHub Desktop.
Send oggaudio via udp gstreamer
Server
gst-launch-1.0 -v filesrc location=../../../samples/musica.ogg ! oggdemux ! vorbisdec ! audioconvert ! rtpL24pay ! udpsink host=localhost auto-multicast=true port=5000
Client
gst-launch-1.0 -v udpsrc uri=udp://localhost:5000 caps="application/x-rtp,channels=(int)2,format=(string)S16LE,media=(string)audio,payload=(int)96,clock-rate=(int)44100,encoding-name=(string)L24" ! rtpL24depay ! audioconvert ! autoaudiosink sync=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment