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: Set up foobar with wget (Read 2170 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Set up foobar with wget

Hi,
I would like to configure foobar with wget to record radio streams. That's what the foo_run plugin is for. However, I do not know how to configure it exactly. I create a new profile, choose the path to wget for windows for it and enter the following parameters.
"C:\Program Files (x86)\GnuWin32\bin\wget.exe" wget -O "C:\Users\graco\Documents\stream_recorder" %path%


I'm not sure about this% path%, because I took this command from the StreamRipper recording tutorial.
You have to somehow tell Foobar that it has to record from this particular track, add a variable.
I personally prefer wget, and I know that it can be configured with foobar somehow, because someone here briefly mentioned on the forum how I searched for "wget" in the search engine that it uses wget to record streams.
Thanks in advance for your help.

Re: Set up foobar with wget

Reply #1
It turned out that I used the wrong switch -O forces saving the file under a given name, -P can save the name as it is and you can point to the directory itself, but this does not solve the problem. I tried removing% path% but it didn't do anything.

Re: Set up foobar with wget

Reply #2
I took a look at wget for the first time after reading your posts.  Here's what I have so far in Run Services:

Code: [Select]
"C:\wget\wget.exe" %path% -P "C:\Streams"

What this is doing is recording streams successfully to the C:\Streams folder, including FLAC and Opus--because Streamripper can't handle those I've been looking for something that will.  I do end up with a "variant" of results as far as naming--some end up with the partial name of the stream and correct extension--"frequence3.flac," "live600.opus," etc.--others lose the extension or have a name like "listen."

Do you know if wget can be configured to pull and supply metadata to file names for streams that deliver it?

Re: Set up foobar with wget

Reply #3
Hello!
Thank you for your response!
It turned out that the version of Wget for windows I had was not working properly with the foobar (normally from the console).
I typed exactly as you entered the paths, but for some reason it wouldn't work. I replaced the wget version with the one from this link
https://eternallybored.org/misc/wget/
And it turned out that it works!
As for tagging, unfortunately I don't know.

Re: Set up foobar with wget

Reply #4
What this is doing is recording streams successfully to the C:\Streams folder, including FLAC and Opus--because Streamripper can't handle those I've been looking for something that will.  I do end up with a "variant" of results as far as naming--some end up with the partial name of the stream and correct extension--"frequence3.flac," "live600.opus," etc.--others lose the extension or have a name like "listen."

Do you know if wget can be configured to pull and supply metadata to file names for streams that deliver it?
You can use ffmpeg for this. At least it is possible to set output file(s) name(s) for it, using titleformatting.

Re: Set up foobar with wget

Reply #5
Hello!
Thank you for your response!
It turned out that the version of Wget for windows I had was not working properly with the foobar (normally from the console).
I typed exactly as you entered the paths, but for some reason it wouldn't work. I replaced the wget version with the one from this link
https://eternallybored.org/misc/wget/
And it turned out that it works!
As for tagging, unfortunately I don't know.
I downloaded the 64-bit version from here: https://github.com/webfolderio/wget-windows
From what I've read so far there is no way to make it break the stream by tracks, only record one continuous stream until you exit the command window.

 

Re: Set up foobar with wget

Reply #6
You can use ffmpeg for this. At least it is possible to set output file(s) name(s) for it, using titleformatting.
Thanks Rollin.  I see you can also specify a fixed output file name with wget by using --output-document=FILE where "FILE" is whatever name you specify.  Anyway, no replacement for Streamripper, although nice to have some kind of option (like ffmpeg) for recording a FLAC or Opus stream.