added rtp-sender.sh script
This commit is contained in:
1 parent
2da8c63b36
commit
abf91b151c
1 file changed
+22
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
action=$1
|
||||||
|
ip=${2:-192.168.3.46}
|
||||||
|
|
||||||
|
case $action in
|
||||||
|
load)
|
||||||
|
pactl load-module module-null-sink sink_name=rtp_sink
|
||||||
|
pactl load-module module-rtp-send \
|
||||||
|
source=rtp_sink.monitor \
|
||||||
|
destination_ip=$2 \
|
||||||
|
port=46000 \
|
||||||
|
codec=audio/L16 \
|
||||||
|
channels=2 \
|
||||||
|
rate=48000 \
|
||||||
|
format=s16be \
|
||||||
|
sap=0
|
||||||
|
;;
|
||||||
|
unload)
|
||||||
|
pactl unload-module module-rtp-send
|
||||||
|
pactl unload-module module-null-sink
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in new issue
Block a user