working-udp-audio.sh 493 B

123456789101112
  1. #!/bin/bash
  2. SOURCE="audiotestsrc is-live=true"
  3. SOURCE='udpsrc port=5001 caps="application/x-rtp" ! queue ! rtppcmudepay ! mulawdec'
  4. BANDPASS="audiochebband mode=band-pass lower-frequency=100 upper-frequency=4000 poles=4"
  5. OUTPUT_FORMAT="audio/x-raw,format=S16LE,layout=interleaved, rate=48000, channels=2"
  6. (
  7. echo 'audio feed ctr isaudio 1'
  8. gst-launch-1.0 -q $SOURCE ! audioconvert ! audioresample ! $BANDPASS ! audioconvert ! $OUTPUT_FORMAT ! fdsink fd=1 sync=true
  9. ) | nc 127.0.0.1 9999