mplayer script improved