diff options
author | Jonas Smedegaard <dr@jones.dk> | 2013-09-12 15:01:32 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-09-12 15:01:32 +0200 |
commit | e1ce2fda71187e8e349ff3f408b41a599e223cd9 (patch) | |
tree | 9bc27a67b0a5b10e7dc0ef40373204321919190d | |
parent | 87630aa7424af20040a1fd8eb2b03eea1cd45d80 (diff) |
Tidy audio device autoresolving.
-rwxr-xr-x | localv4ldump | 5 |
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 |