Methods from mplayer: