Might be better to change this too `'/usr/bin/mplayer -slave -quiet -vf screenshot "test/test.mp3"'`, since you're not using any ruby variables in it, so not much reason to use double quotes?