blob: f69ee2fe458f1413d298c7c097dc5b525cb5b61e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
HOST="$1"
if [ -z "$HOST" ]; then
echo "usage: $0 <remote-host>"
exit 1
fi
#export GST_DEBUG=3
exec gst-launch-1.0 rtpbin name=rtpbin \
alsasrc device='{{ dolmetsch_raspi_send_alsa_device }}' ! audioconvert ! 'audio/x-raw,rate=48000,channels=1' ! opusenc ! rtpopuspay ! rtpbin.send_rtp_sink_0 \
rtpbin.send_rtp_src_0 ! udpsink "host=$HOST" port=5000 \
rtpbin.send_rtcp_src_0 ! udpsink "host=$HOST" port=5001 sync=false async=false \
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0
|