diff options
author | Ole Kristian Lien <ole.k.lien@gmail.com> | 2010-01-14 08:19:30 +0000 |
---|---|---|
committer | Ole Kristian Lien <ole.k.lien@gmail.com> | 2010-01-14 08:19:30 +0000 |
commit | 8f002067fcf300234be68bd2b01b178c931bb2fe (patch) | |
tree | 416fc47b19dfeed5b66ddc8fa175d28f09b5e3a2 /tools/audio_check_volume | |
parent | 9b6e7c30bc1687c10c49413871588d17baf1b94f (diff) |
div. fix
Diffstat (limited to 'tools/audio_check_volume')
-rw-r--r-- | tools/audio_check_volume | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/audio_check_volume b/tools/audio_check_volume index f914834..37a7239 100644 --- a/tools/audio_check_volume +++ b/tools/audio_check_volume @@ -3,7 +3,11 @@ EXT=`echo "$1"|awk -F . '{print $NF}'` NAME=`basename $1 .$EXT` -if [ -z "$2" ]; then - echo "Usage: $0 <video-file> <csv-file>" +if [ -z "$1" ]; then + echo "Usage: $0 <wav-file>" exit 1 fi + +echo -n " * Checking volume levels..." +sox $1 -n stat -v 2> $1.vol +echo -e "OK!" |