Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Audio stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=5)
-   -  

[linux] Capturing/Saving/Downloading/Ripping/Recording MP3 music stream from Last.FM

(http://stream-recorder.com/forum/showthread.php?t=954)

Stream Recorder 03-14-2007 08:42 AM

[linux] Capturing/Saving/Downloading/Ripping/Recording MP3 music stream from Last.FM


 
Free Linux software required for Capturing/Saving/Downloading/Ripping/Recording MP3 music stream from Last.fm for free
  • StreamRipper - ShoutCast/Icecast stream ripping/downloading/recording/capturing software.

Installing free LastFMProxy
  1. Download LastFMProxy
  2. Unpack LastFMProxy: tar -xzf lastfmproxy.tar.gz
  3. Go to LastFMProxy directory:cd lastfmproxy/
  4. Open config file: vi config.py
  5. Change your Last.FM username and password in the config file.
  6. Save the config file and exit the editor

Installing StreamRipper - free ShoutCast/Icecast stream ripping/downloading/recording/capturing software.
  1. Download StreamRipper.
  2. Unpack it: tar -xzvf streamripper.tar.gz
  3. Go to StreamRipper directory: cd streamripper/
  4. ./configure
  5. make
  6. sudo make install


Running LastFMProxy
cd lastfmproxy
./main.py &

Note: if you have just created a username on Last.fm you need to "tell" it what kind of music you like, so after running LastFMProxy point your browser to one of these addresses:
http://localhost:1881/lastfm://globaltags/rock
http://localhost:1881/lastfm://globaltags/dance
http://localhost:1881/lastfm://artis...similarartists
http://localhost:1881/lastfm://artis...similarartists

There is more information about this in the ReadMe.

Running Streamripper and Capturing/Saving/Downloading/Ripping/Recording MP3 music stream from Last.FM
StreamRipper can split, tag and name MP3 files automatically!

streamripper http://localhost:1881/lastfm.mp3
Connecting...
stream: last.fm
server name: last.fm Streaming Server
bitrate: 0
meta interval: 16000

[buffering - | ] - Wait...
[ripping... ] The Rapture - Infatuation [ 4.59M]
[ripping... ] Scissor Sisters - Take Your Mama Out [ 4.15M]

Listening Last.FM while Capturing/Saving/Downloading/Ripping/Recording MP3 music stream with Streamripper
Use Streamripper with -r flag:
Streamripper -r

and connect to localhost:8000 with your player (like xmms).

any ANONYMOUS forum user 03-25-2009 02:31 PM

Re: [linux] Capturing/Saving/Downloading/Ripping/Recording MP3 music stream from Last


 
Another useful ripping technique that can be applied to any stream you would view but cant normally save (easilly)

Code:

mkfifo pipe; mplayer -vo null -ao pcm:file=pipe my_stream_URI; lame -h pipe my_new.mp3; rm pipe;


All times are GMT -6. The time now is 05:54 PM.