summaryrefslogtreecommitdiffstats
path: root/bin/cropmplayer.sh
blob: 458784a9e541614f4a3ba43debc83610da067c69 (plain)
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"