Refactor mplayer stuff to mpv