summaryrefslogtreecommitdiffstats
path: root/tools/video_fps
blob: 635762e7f62ddb2f2d7820f596f1b970ea226aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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