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