summaryrefslogtreecommitdiff
path: root/bin/send-gst-rtp-v-a
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-11 11:45:15 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-11 11:55:47 +0200
commit61ba220b60087b62410b6709005f8ddfbdd711d6 (patch)
treea79e80b4aaa4351cb8888bca401efe2e02604b61 /bin/send-gst-rtp-v-a
parente15ed7596332db8d84422342d318d26d0f6e7dda (diff)
Normalize device loop.
Diffstat (limited to 'bin/send-gst-rtp-v-a')
-rwxr-xr-xbin/send-gst-rtp-v-a7
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