diff options
Diffstat (limited to 'bin/send-gst-rtp-v-a')
-rwxr-xr-x | bin/send-gst-rtp-v-a | 7 |
1 files changed, 4 insertions, 3 deletions
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 |