Use mplayer.py instead of calling mplayer directly.