Skip to content

Instantly share code, notes, and snippets.

@stefano-garzarella
Forked from rroohhh/client.sh
Created July 13, 2018 12:56
Show Gist options
  • Save stefano-garzarella/75a8116182c33f8a0ee8288d5ae79b26 to your computer and use it in GitHub Desktop.
Save stefano-garzarella/75a8116182c33f8a0ee8288d5ae79b26 to your computer and use it in GitHub Desktop.
gstreamer udp audio streaming
#!/bin/bash
gst-launch-1.0 -v udpsrc uri=udp://239.1.1.1: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
#!/bin/bash
gst-launch-1.0 -v autoaudiosrc ! audioconvert ! rtpL24pay ! udpsink host=239.1.1.1 auto-multicast=true port=5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment