Just a quick note – to play videos on a Raspberry Pi – use omxplayer instead of mplayer for maximum performance.