mic-to-udp.sh 536 B

1234567891011121314151617
  1. #!/bin/bash
  2. HOST="224.1.1.1"
  3. HOST="192.168.2.255"
  4. enc="vorbisenc"
  5. enc="volume volume=0.8 ! mulawenc ! rtppcmupay"
  6. enc="opusenc ! rtpopuspay"
  7. #
  8. SRC="audiotestsrc wave=sine freq=400 "
  9. SRC="alsasrc slave-method=resample do-timestamp=true"
  10. HOST="192.168.1.7:5001"
  11. HOST="192.168.2.120:5001"
  12. #HOST="192.168.2.120:5001,192.168.2.155:5001" #,192.168.2.68:5001"
  13. echo gst-launch-1.0 $SRC ! audioconvert ! audioresample ! $enc ! multiudpsink clients=$HOST
  14. gst-launch-1.0 $SRC ! audioconvert ! audioresample ! $enc ! multiudpsink clients=$HOST