diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 22:10:52 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 22:10:52 +0200 |
commit | 2c71bfe6363f5fe9186eeca48384052d3c6cd741 (patch) | |
tree | 44c40fbb26b6ba3e1402a45f8efae2f4d0b59e51 /roles/streaming/dolmetsch-raspi/templates/rtp-recv.sh.j2 | |
parent | move dolmetsch-raspi to generic folder (diff) |
cleanup dolmetsch-raspi role
Diffstat (limited to 'roles/streaming/dolmetsch-raspi/templates/rtp-recv.sh.j2')
-rw-r--r-- | roles/streaming/dolmetsch-raspi/templates/rtp-recv.sh.j2 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/streaming/dolmetsch-raspi/templates/rtp-recv.sh.j2 b/roles/streaming/dolmetsch-raspi/templates/rtp-recv.sh.j2 index c9a89f95..1cbd08ea 100644 --- a/roles/streaming/dolmetsch-raspi/templates/rtp-recv.sh.j2 +++ b/roles/streaming/dolmetsch-raspi/templates/rtp-recv.sh.j2 @@ -1,13 +1,14 @@ #!/bin/bash HOST="$1" -if [ -z "$HOST" ]; then - echo "usage: $0 <remote-host>" +LATENCY="$2" +if [ -z "$HOST" ] || [ -z "$LATENCY" ]; then + echo "usage: $0 <remote-host> <latency-ms>" exit 1 fi #export GST_DEBUG=3 -exec gst-launch-1.0 rtpbin name=rtpbin latency=50 \ +exec gst-launch-1.0 rtpbin name=rtpbin "latency=$LATENCY" \ udpsrc port=5000 caps="application/x-rtp,media=(string)audio,encoding-name=(string)OPUS,clock-rate=(int)48000" ! rtpbin.recv_rtp_sink_0 \ rtpbin. ! rtpopusdepay ! opusdec ! alsasink \ udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \ |