summaryrefslogtreecommitdiff
path: root/localvideodump
diff options
context:
space:
mode:
Diffstat (limited to 'localvideodump')
-rwxr-xr-xlocalvideodump2
1 files changed, 1 insertions, 1 deletions
diff --git a/localvideodump b/localvideodump
index 1edfd9e..2e6875f 100755
--- a/localvideodump
+++ b/localvideodump
@@ -31,7 +31,7 @@ set -e
output="${1:-dump.nut}"
# resolve audio inputs: default PCM of all ALSA cards with input devices
-ainputs="$(arecord -l | perl -anE '/^card/ and say $F[2]')"
+ainputs="$(arecord -l | grep -Po '^card \d+: \K\S+')"
#ainputs="CARD=Generic_1,DEV=0"
# FIXME: detect and avoid more than one device on same USB channel: