updated rtp-receiver.sh script
This commit is contained in:
1 parent
abf91b151c
commit
ebfd768a82
1 file changed
+15
-6
+15
-6
@@ -1,7 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
gst-launch-1.0 udpsrc port=46000 buffer-size=65536 ! \
|
action=$1
|
||||||
application/x-rtp,media=audio,payload=127,clock-rate=48000,encoding-name=L16,channels=2 ! \
|
|
||||||
rtpjitterbuffer latency=200 ! \
|
case $action in
|
||||||
rtpL16depay ! \
|
load)
|
||||||
audioconvert ! \
|
pactl load-module module-rtp-recv \
|
||||||
autoaudiosink
|
codec=audio/L16 \
|
||||||
|
channels=2 \
|
||||||
|
rate=48000 \
|
||||||
|
format=s16be \
|
||||||
|
sap=0
|
||||||
|
;;
|
||||||
|
unload)
|
||||||
|
pactl unload-module module-rtp-recv
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in new issue
Block a user