$ mplayer -cache 10 -ao pcm -aofile stream.wav rtsp://XXXX/stream.rm $ lame stream.wav $ mplayer test.rm -ao pcm:file=audiofile.wav -vc dummy -vo null $ lame -h -b 128 audiofile.wav audiofile.mp3 $ rm audiofile.wav