Skip to content

Instantly share code, notes, and snippets.

@mongonta0716
Last active July 7, 2020 07:55
Show Gist options
  • Save mongonta0716/5d0e1cbe11972ee88b83a9962b9978ac to your computer and use it in GitHub Desktop.
Save mongonta0716/5d0e1cbe11972ee88b83a9962b9978ac to your computer and use it in GitHub Desktop.
Gstreamer audio via udp sample
#!/bin/bash
# XXX.XXX.XXX.XXX is own IP address
gst-launch-1.0 -v udpsrc uri=udp://XXX.XXX.XXX.XXX:5555 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
#!/bin/bash
# XXX.XXX.XXX.XXX = Reciever's IP address
gst-launch-1.0 -v filesrc location=~/Music/chikichiki.mp3 ! decodebin ! audioconvert ! rtpL24pay ! udpsink host=XXX.XXX.XXX.XXX port=5555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment