#577815
vid_length() { mencoder -nosound -oac copy -ovc copy -o /dev/null "$1" | awk 'END{print $(NF-1) }' }