diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/recv-gst-rtp-v-a | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/recv-gst-rtp-v-a b/bin/recv-gst-rtp-v-a index 2060a33..92e1ae8 100755 --- a/bin/recv-gst-rtp-v-a +++ b/bin/recv-gst-rtp-v-a @@ -44,14 +44,15 @@ stream() { PLAYBIN=$3 echo \ udpsrc port=$((5000+ID-1)) $RECHOST caps=\""$CAPS"\" \ - ! rtpbin.recv_rtp_sink_$ID rtpbin. \ + ! "rtpbin.recv_rtp_sink_$ID" rtpbin. \ ! $PLAYBIN \ - udpsrc port=$((5010+ID-1)) $RECHOST ! rtpbin.recv_rtcp_sink_$ID \ - rtpbin.send_rtcp_src_$ID \ - ! udpsink port=$((5020+ID-1)) $CAMHOST sync=false async=false + udpsrc port=$((5010+ID-1)) "$RECHOST" \ + ! "rtpbin.recv_rtcp_sink_$ID" \ + "rtpbin.send_rtcp_src_$ID" \ + ! udpsink port=$((5020+ID-1)) "$CAMHOST" sync=false async=false } gst-launch-1.0 -v \ rtpbin name=rtpbin \ - $(for i in $(seq ${VCOUNT:-1}); do stream "$i" "$VCAPS" "$VDEC ! autovideosink"; done) \ - $(for j in $(seq ${ACOUNT:-0}); do stream $((VCOUNT+$j)) "$ACAPS" "$ADEC ! autoaudiosink"; done) + $(for i in $(seq "${VCOUNT:-1}"); do stream "$i" "$VCAPS" "$VDEC ! autovideosink"; done) \ + $(for j in $(seq "${ACOUNT:-0}"); do stream $((VCOUNT+j)) "$ACAPS" "$ADEC ! autoaudiosink"; done) |