summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalv4ldump5
1 files changed, 3 insertions, 2 deletions
diff --git a/localv4ldump b/localv4ldump
index a47f32c..2400382 100755
--- a/localv4ldump
+++ b/localv4ldump
@@ -32,8 +32,9 @@ set -e
output="${1:-dump.mkv}"
-ainputs="$(arecord -L | perl -nE '/^default:.*\b(CARD=\w+)/ and say $1')"
-#ainputs="hw:CARD=Generic_1,DEV=0"
+# resolve audio inputs: default PCM of all ALSA cards with input devices
+ainputs="$(arecord -l | perl -anE '/^card/ and say $F[2]')"
+#ainputs="CARD=Generic_1,DEV=0"
# FIXME: detect and avoid more than one device on same USB channel:
# [video4linux2 @ 0xed7e00] ioctl(VIDIOC_STREAMON): No space left on device