Created
February 25, 2011 15:59
-
-
Save robballou/843995 to your computer and use it in GitHub Desktop.
Find the number of channels in an audio file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Usage: | |
# ./channels.sh [filename] | |
# | |
echo "$1: " `ffmpeg -i "$1" 2>&1 | awk '/[[:digit:]] channels?/ {print "Channels:",$7}'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment