summaryrefslogtreecommitdiffstats
path: root/tools/video_resolution
blob: c7a3ff6ccc48efca11551a9b4cdd4de4b2232f46 (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 resolution (x:y)

if [ -z "$1" ]; then
	echo "Usage: $0 <video-file>"
	exit 1
fi

ffmpeg -i $1 2>&1 | grep Video | cut -d "," -f 3 | cut -d " " -f 2