Rip Audio from the Web with SoundJuicer

Ever hear a song on myspace but it isn’t yet available for purchase?  Or hell, not even pirated on any Peer2Peer network?  And of course all you want to do is enjoy it on your way to work in your car.  Well now you can.You must have Soundjuicer (in most repositories), mplayer, the lame encoder, and a flash plugin in your browser for this to work.  That being said, this is what you do:

1. Close any IM programs that make random sounds. Basically shutdown anything that may interrupt the audio stream.

2. Go to ‘Applications -> Sound&Video -> Sound Recorder’ (I always figured there’d be a use for this, just never needed it until now!)

3. Set the following: “Record from input: Mix”, “Record as: CD Quality, Lossless (FLAC)”

4. Start recording a new file and start playing the desired audio clip in the browser. (I actually tore apart the page src to isolate the flash file, and loaded that URL directly, but this may not be necessary)

5. When audio is done, stop recording. Save your new file! (we’ll just call it ‘file.flac’ for now)

6. Use mplayer to convert the flac to wav. I found that recording the file as a flac, converting to wav, then encoding that to mp3 resulted in a much better audio quality than just recording straight to wav and encoding from there.

Code:

mplayer -vo null -vc null -af lavcresample=48000,channels=2,format=s16le -ao pcm:file=file.wav file.flac

7. Now convert the resulting wav file to mp3 using lame. I prefer high quality bitrates, but feel free to adjust the bitrate with the “-b” option.

Code:

lame -b 256 -h file.wav file.mp3

8. Rename your new mp3, load it up in player of your choice, and tag as desired.  And voila, all done.

Related Posts

Tags: , ,

Leave a Reply

You must be logged in to post a comment.