diff options
Diffstat (limited to 'tools/video_bitrate')
-rwxr-xr-x | tools/video_bitrate | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/video_bitrate b/tools/video_bitrate new file mode 100755 index 0000000..9511004 --- /dev/null +++ b/tools/video_bitrate @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Date: 2009-12-14 +# Author: Ole Kristian Lien +# License: GNU General Public License +# +# Grabs video bitrate from video-file + +if [ -z "$1" ]; then + echo "Usage: $0 <video-file>" + exit 1 +fi + +ffmpeg -i $1 2>&1 | grep Duration | awk '{print $6}' |