Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Create multiple Files while ripping Streams (Read 7437 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Create multiple Files while ripping Streams

Hi there

I recently used the "Convert" feature to rip a shoutcast stream. That worked very well with all codecs (good job there).

At the moment, foobar writes everything into one single file, until you abort the converting-progress. I'm now wondering if there may be a way to make foobar create single files for each song. that would be very useful to manage the ripped songs in the playlist.
Foobar recognizes when a new track starts, so why not write into a new file? (maybe %TITLE% - %ARTIST%.ogg) or is it not that simple? i have no clue..

an other nice feature would be the creation of cuesheets, including all the tracks which were recorded. but that would be more complicated i guess.

Create multiple Files while ripping Streams

Reply #1
-edited-

Create multiple Files while ripping Streams

Reply #2
Instead of converting (transcoding), you could use Streamripper (win32 console) and foo_run.

Pro: you can rip to multiple files
Con: only compatible with mp3, aac, and ogg streams

How to:

Put streamripper.exe, and it's three dlls,  in Windows' \system32\ directory

Install foo_run, and add a run service such as: streamripper %path% -d X:\streamrips\ -r 8008

Then add a stream location: http://localhost:8008/ - if you want to listen to the same stream, but not use double the bandwidth

Streamripper: http://streamripper.sourceforge.net/
foo_run: http://www.hydrogenaudio.org/forums/index....showtopic=45223

Create multiple Files while ripping Streams

Reply #3
Instead of converting (transcoding), you could use Streamripper (win32 console) and foo_run.

Pro: you can rip to multiple files
Con: only compatible with mp3, aac, and ogg streams

How to:

Put streamripper.exe, and it's three dlls,  in Windows' \system32\ directory

Install foo_run, and add a run service such as: streamripper %path% -d X:\streamrips\ -r 8008

Then add a stream location: http://localhost:8008/ - if you want to listen to the same stream, but not use double the bandwidth

Streamripper: http://streamripper.sourceforge.net/
foo_run: http://www.hydrogenaudio.org/forums/index....showtopic=45223

  Hey Cosmo,

thanx to give us this hint, as a newbee to foobar I cannot figure out how to ADD A NEW RUN SERVICE with foo_run...evrything worked fine so far, I got streamripper and foo_run, installed both, found the new option "run" in the context menu, but noe...can't find out how tu add a new service.

If you're still on some times, please help.
Thanx

Create multiple Files while ripping Streams

Reply #4
you can add the new run service in preferences menu of foobar:
main menu:file -> preferences -> tools -> run services
when finished you have to press the modify-button to save changes

Create multiple Files while ripping Streams

Reply #5
Hi,

I had the same problem like earthworm.
So I download Streamripper (win32 console) and foo_run. I put the streamripper.exe and the three dll-files in the Folder: C:\WINDOWS\system32 and the foo_run.dll in the components-folder of foobar.
Then I create a new "run services" like you said:

Label: Streamripper
Path: streamripper %path% -d X:\streamrips\ -r 8008

Is that correct?


Then I think I had to change "streamripper %path% -d X:\streamrips\ -r 8008" in
"streamripper %C:\WINDOWS\system32% -d X:\streamrips\ -r 8008"


But what is to do with "-d X:\streamrips\ -r 8008". Is that the location the songs will be saved?


My favorite location for web-radio is "http://85.214.45.114:8000"
When I start this location foobar shows me the song and interpret. Now I click right - run - Streamripper
Then a black Dos-Window opens very short and nothing happend...

...what do I wrong?


Thank you!
Benjamin

Create multiple Files while ripping Streams

Reply #6
%path% - Don't change this part. It is where the http address of your radio stream will be inserted by foobar.

X:\streamrips\ - you should change this to whatever destination directory you want

-r 8008 - specifies a local relay port. If you want to listen while you are ripping, do so via the relay port instead of directly from the stream address. Because when streamripper is started, it functions independantly from foobar (it doesn't capture foobar's output). So if you are listening with foobar and then begin ripping with streamripper, you are downloading it twice (256 kbps if the stream is 128 kbps). Once streamripper is ripping the stream, then listen via the streamripper relay port "http://localhost:8008/" so you are only downloading 1x the bandwidth instead of 2x. (stopping the stream in foobar will not stop streamripper from ripping...)

To end stream ripping, press Ctrl+C in the DOS window. (the stream will continue playing on the relay port for a short while, until the buffer runs out)

Streamripper's command line variables are all explained here - http://streamripper.sourceforge.net/tutorialconsole.php

Create multiple Files while ripping Streams

Reply #7
Thank you!


It works fine!


But I have one more question because I don't understand the thing with the relay port.
Is this port always the same (8008) or changes it from location to location?
For example my favorite location "http://85.214.45.114:8000"...is the relay port there 8000?


Thank you for the fast and really good help!
Benjamin

Create multiple Files while ripping Streams

Reply #8
But I have one more question because I don't understand the thing with the relay port.
Is this port always the same (8008) or changes it from location to location?
For example my favorite location "http://85.214.45.114:8000"...is the relay port there 8000?


The relay port is on your own computer... It's always the same: If you use "-r 8008" then you will always listen on "http://localhost:8008/", no matter what stream you are ripping. (or by default (if you omit "-r XXXX"), it is 8000 (http://localhost:8000/))

If you rip multiple streams at once, then you can specify different relay ports (you would need to add multiple "run services") and listen / monitor them each via their individual local port.

Create multiple Files while ripping Streams

Reply #9
COSMO -
thanx a lot for your helpy explanations on the streamripper-thread!
This did it for me - great!

Don't you have any hints on how to catch trhe audio-signal directly at the soundcard with foo, too? I want to rip music coming in by real audio, for example, or rip the songs coming through the great Pandora project (www.pandora.com), where you can create your own radio station. But all those are no "normal" streams, one will have to rip the signal passing through the soundcard. This was possible with foo's former versions - can't this be done?

Thanx for any hints!

Heissa

Create multiple Files while ripping Streams

Reply #10
Instead of converting (transcoding), you could use Streamripper (win32 console) and foo_run.

Pro: you can rip to multiple files
Con: only compatible with mp3, aac, and ogg streams

How to:

Put streamripper.exe, and it's three dlls,  in Windows' \system32\ directory

Install foo_run, and add a run service such as: streamripper %path% -d X:\streamrips\ -r 8008

Then add a stream location: http://localhost:8008/ - if you want to listen to the same stream, but not use double the bandwidth

Streamripper: http://streamripper.sourceforge.net/
foo_run: http://www.hydrogenaudio.org/forums/index....showtopic=45223


hi there
thanks very much, that works great. i have one more question. is there any way to use a destination folder which contains spaces?
example: 'C:\My Music\' will save to 'C:\My\...'
any ideas?

thanks for your help!

Create multiple Files while ripping Streams

Reply #11
put string into "-signs like this:

streamripper %path% -d "X:\My Music\" -r 8008