summaryrefslogtreecommitdiffstats
path: root/video-crop-detect
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-16 19:30:37 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-16 19:30:37 +0200
commit463068b43f573364bf8893da3fdd640414a88523 (patch)
tree7d5d2d49b7708ee46893bc16651af8b0f55e85e1 /video-crop-detect
parent6694e0c631cde4e64a506301e9aaf41b214fb59d (diff)
downloadbin-463068b43f573364bf8893da3fdd640414a88523.tar.gz
bin-463068b43f573364bf8893da3fdd640414a88523.tar.xz
misc updates
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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"