summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-03-10 15:06:29 +0100
committerJonas Smedegaard <dr@jones.dk>2017-03-10 15:06:29 +0100
commitef7da444d567d8dd7e562d0959f07b357ed23bf5 (patch)
treea01a79ca2ae008ce3bb4ce45f7bfc766c89a26cb
parent9c843caf241752d9e389b08b2d447ba6df81b438 (diff)
Fix argument numbering.
-rwxr-xr-xbin/send-gst-rtp-v-a12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/send-gst-rtp-v-a b/bin/send-gst-rtp-v-a
index cc30c0e..d068068 100755
--- a/bin/send-gst-rtp-v-a
+++ b/bin/send-gst-rtp-v-a
@@ -4,12 +4,12 @@
set -e
RECIP=${RECIP:-$1} # destination host - default: use multicast group
-VDEVICES=${1:-$(find /dev -maxdepth 1 -type c -name 'video*' | sort)}
-#ADEVICES=${2:-$(arecord -L | grep -Po '^hw:\S+')}
-#ADEVICES=${2:-$(arecord -L | grep -Pom1 '^hw:\S+')}
-ADEVICES=${2:-} # FIXME: Detect/blacklist and skip faulty devices
-VFORMAT=${VFORMAT:-$3} # H264 VP8 RAW - default: RAW
-AFORMAT=${AFORMAT:-$4} # AMR OPUS RAW - default: RAW
+VDEVICES=${2:-$(find /dev -maxdepth 1 -type c -name 'video*' | sort)}
+#ADEVICES=${3:-$(arecord -L | grep -Po '^hw:\S+')}
+#ADEVICES=${3:-$(arecord -L | grep -Pom1 '^hw:\S+')}
+ADEVICES=${3:-} # FIXME: Detect/blacklist and skip faulty devices
+VFORMAT=${VFORMAT:-$4} # H264 VP8 RAW - default: RAW
+AFORMAT=${AFORMAT:-$5} # AMR OPUS RAW - default: RAW
set -u
# set multicast groups (also for recorder host) if camera host is wildcard