diff options
Diffstat (limited to 'tools/video_fps')
-rw-r--r-- | tools/video_fps | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/video_fps b/tools/video_fps new file mode 100644 index 0000000..635762e --- /dev/null +++ b/tools/video_fps @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Date: 2009-12-04 +# Author: Ole Kristian Lien +# License: GNU General Public License +# +# Show video frame per second + +if [ -z "$1" ]; then + echo "Usage: $0 <video-file>" + exit 1 +fi + +ffmpeg -i $1 2>&1 | grep Video | cut -d "," -f 6 | cut -d " " -f 2 |