summaryrefslogtreecommitdiffstats
path: root/bin/cropmplayer.sh
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2012-08-11 02:40:34 +0200
committerRasmus Steinke <rasi@xssn.at>2012-08-11 02:40:34 +0200
commitf140a1642ebfde198946ad6760c1003c1cb9a8c3 (patch)
tree7538aa90092f99c661ec3abb4a69944767315dc5 /bin/cropmplayer.sh
parente3fd45703267ce67d8b1e1fb53a4a1b4ccda551e (diff)
downloaddotfiles-f140a1642ebfde198946ad6760c1003c1cb9a8c3.tar.gz
dotfiles-f140a1642ebfde198946ad6760c1003c1cb9a8c3.tar.xz
scripts
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"