# saving track titles of internet radio stream to file

Every modern program for listening to internet radio streams is capable of displaying the title and artist of the track that is being played (assuming that the radio stream is broadcasting the title and artist).

What I am looking for is a program or other method which can write this data to a file in real time.

Linux or Windows is fine. Addons to an existing program are fine. Someone explaining to me how to extract the data from a raw stream would be...at least a start. Anything better than the only two ideas I've had already (both of which are really horrible) would be helpful.

Lousy idea 1) Run your usual music player program and write a script which takes screenshots of the program window and then hack it out from there

Lousy idea 2) For the stream you're interested in, write a script which e.g. uses wget to fetch a web page containing the information from the radio stream's home page and hack it out from there.

I don't think I really need to say much more about how bad these solutions are. Anyone have a better one??

-

### Foobar2000 in combination with streamripper and foo_run can do this

In my test, I listened to an online radio via Foobar and started the streamripper.exe via foo_run plugin.
In the background, it downloads, cuts, renames and tags the files automatically.

Screenshot after some minutes to proof

### Software needed

• Foobar (can be installed in portable mode)
• streamwriter (can also be used without installing, just extract the installer with Universal Extractor)
• foo_run (as a normal foobar component it doesn't need a separate installation)

Follow this guide on hydrogenaudio.org on how to record internet radio streams with Foobar2000

The important part is this foo_run command. You can use relative paths where your foobar folder is the start folder as the screenshot shows

<path\to\streamripper.exe> %path% -r -z -u FreeAmp/2.x -d <your\desired\output\path>


-
This is surely the right answer and I'll accept it when I get access to a Windows machine and a little time to test it (give me 48 hours or so -- apologies). And many thanks! –  Yannick Sep 15 '13 at 22:24
Thanks. I see now my mistake -- I shouldn't have been googling for the answer to my question, I should just have googled for the huge internet community interested in recording streaming audio and gone from there. Thanks. –  Yannick Sep 22 '13 at 16:03