summaryrefslogtreecommitdiffstats
path: root/video-crop-detect
diff options
context:
space:
mode:
Diffstat (limited to 'video-crop-detect')
-rwxr-xr-xvideo-crop-detect3
1 files changed, 3 insertions, 0 deletions
diff --git a/video-crop-detect b/video-crop-detect
new file mode 100755
index 0000000..df250f0
--- /dev/null
+++ b/video-crop-detect
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -x
+mplayer `mplayer -ao null -ss 60 -frames 100 -vf cropdetect -vo null "$1" | awk -F '[()]' '{print $2}' | uniq | grep -Ev 'End of file' | tail -2` "$1"