You could redirect with the following as an example to pipe into Lame. This accepts stdin as the input stream. mplayer -really-quiet -vc null -vo null -ao pcm:nowaveheader:file=/dev/fd/4 - 4>&1 1>/dev/null | lame] --silent -r -x -q - -