Create a wav file from an exotic audio format
Saturday, July 5th, 2008When you need to retrieve a sound from a ugly format (like realaudio, windows media audio, and other proprietary things), mplayer is your best friend :
mplayer -ao pcm:file=output.wav your_file_or_url
It works fine with rtsp: and other bad protocols.
Playlist : Take care with .ram files and other playlist formats. In this case, the url content is only a text with the stream url. mplayer provides again a solution :
mplayer -ao pcm:file=output.wav -playlist file_or_url_playlist
Video : Add the option -vo null if the initial document contains video, the video part will be ignored.
Compress resulted file : The created wav file must be compressed cautiously. Most of the time, you’ve retrieved a sound already very compressed. If you create a ogg file with a low quality, you may experience problems. Use a lossless compression when possible, like flac.
Tryphon