diff options
Diffstat (limited to 'tools/audio_format')
-rw-r--r-- | tools/audio_format | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/audio_format b/tools/audio_format new file mode 100644 index 0000000..a96348c --- /dev/null +++ b/tools/audio_format @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Date: 2009-11-30 +# Author: Ole Kristian Lien +# License: GNU General Public License +# +# Grabs audio format from audio/video-file + +if [ -z "$1" ]; then + echo "Usage: $0 <audio/video-file>" + exit 1 +fi + +ffmpeg -i $1 2>&1 | grep Audio | cut -d " " -f 8 | sed 's/,//g' |