summaryrefslogtreecommitdiffstats
path: root/tools/video_resolution
diff options
context:
space:
mode:
Diffstat (limited to 'tools/video_resolution')
-rw-r--r--tools/video_resolution14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/video_resolution b/tools/video_resolution
new file mode 100644
index 0000000..c7a3ff6
--- /dev/null
+++ b/tools/video_resolution
@@ -0,0 +1,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