From 61ba220b60087b62410b6709005f8ddfbdd711d6 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 11 May 2017 11:45:15 +0200 Subject: Normalize device loop. --- bin/send-gst-rtp-v-a | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/send-gst-rtp-v-a') diff --git a/bin/send-gst-rtp-v-a b/bin/send-gst-rtp-v-a index f79da8b..f8b548b 100755 --- a/bin/send-gst-rtp-v-a +++ b/bin/send-gst-rtp-v-a @@ -79,10 +79,11 @@ stream() { ! rtpbin."recv_rtcp_sink_$ID" } -n=0 gst-launch-1.0 -v \ rtpbin name=rtpbin \ - $(for dev in $VDEVICES; do n=$((n+1)); stream "$n" "v4l2src device=$dev ! $QUEUE ! videoconvert ! $VCAPS ! $QUEUE ! $VENC ! $QUEUE"; done; \ - for dev in $ADEVICES; do n=$((n+1)); stream "$n" "alsasrc device=$dev buffer-time=$ABUFFERS ! $QUEUE ! audioconvert ! $QUEUE ! $AENC ! $QUEUE"; done) + $(n=0;\ + for dev in $VDEVICES; do n=$((n+1)); stream "$n" "v4l2src device=$dev ! $QUEUE ! videoconvert ! $VCAPS ! $QUEUE ! $VENC ! $QUEUE"; done;\ + for dev in $ADEVICES; do n=$((n+1)); stream "$n" "alsasrc device=$dev buffer-time=$ABUFFERS ! $QUEUE ! audioconvert ! $QUEUE ! $AENC ! $QUEUE"; done;\ + ) set -e -- cgit v1.2.3