OpenWrt Forum Archive

Topic: Could I get an Streamripper Package?

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there,
just would like to ask,
if someone could do me the favor of an streamripper ipkg ^^
(( http://streamripper.sourceforge.net/ ))
Thanks!

ps: yeah the ripped mp3s go to an usb hdd, I'm using an wgt634u XD
what you thought? ^^

DeusExMachina

hi there,

i'd like to streamrip using openwrt myself, so using the openwrt sdk i managed to build a streamripper binary (no ipkg, still need to figure out why that didn't work) - unfortunately it doesn't work for more than a few seconds. it will rip and relay, but after a few seconds of input it will lock up (at max cpu load) for some time. eventually, it will start ripping again - but never for more than a few seconds.

i've put up my binary, maybe somebody else will be more successfull using it... don't say i didn't warn you.

http://www.djmacgyver.net/tmp/streamripper

unfortunately, i'm not very good at c coding, and after a quick look at the streamripper sources it might take me ages to understand what it actually does, let alone me fixing this... i guess it was worth a try, but that's it for me. sorry...

edit: i'm just trying it on a different stream and it actually seems to work... so it seems as if what causes those "hickups" is somewhat stream-related. i guess it's the meta-info sent along with it, because the stream i tested before keeps changing its meta-info in rather short intervals, and the one i'm testing right now hasn't changed yet...

so i guess this is a typical case of ymmv. maybe i'll take another look into it (maybe i can't fix the meta-extraction, but disabling could be an option too).

(Last edited by dj_macgyver on 23 Feb 2007, 20:46)

update: disabling the meta-information parsing seems to be possible by simply passing a -E commandline switch to the program. i tried "-E /bin/true" and am now successfully ripping the problematic stream mentioned above despite any metadata updates. when using the -E switch one might consider passing "-A -a filename.mp3" too since the resulting file would be named " - .mp3" otherwise.

yeah dj good work!
could you tell me how to get that program now running?
which syntax to use / how to rip / where to lay that program down?

greetings
deusex

i just copied it to /usr/bin (via samba... but putting it on a usb key or similiar should also work). you'll have to make it executable with the command:

chmod u+x /usr/bin/streamripper

then you'll be able to call it from any directory. typing "streamripper -h" should give you the command line options available...

if i remember correct (i'm at work right now and can't check) the command line i used was:

streamripper <URL> -E /bin/true -r -R 0 -A -a

replace <URL> with the http:// url of the stream you would like to rip.

this should create a directory named after the stream you requested, and the program should store some weird-named mp3 files inside (the weird names are because the "-E" disables automatic file naming, because it's not working). stop the program by using strg-c.

you could also specify a fixed name with the -a parameter, but please be warned that the program will overwrite the file once it has to reconnect - i wouldn't recommend that.

also, this will enable the built-in stream relay for an unlimited count of connections. that means that you could point your desktop streaming client(s) (e.g. winamp / xmms / mplayer) to the url http://<ip-of-openwrt-box>:8000 instead of wasting the bandwidth for 2 streaming connections.

i'll check the command line again once i'm home.

(Last edited by dj_macgyver on 28 Feb 2007, 14:04)

ok the syntax i posted above is correct. here's an example of what i'm using:

streamripper http://gbs01.de:8012 -r -R 0 -E /bin/true -a -A

(that's for a german radio station called GlobalBeats FM)

one thing i forgot: using my examples, all directories containing ripped streams will go into the current working directory. so either cd to your usb hard drive before running above command, or use the -d switch to pass a different output directory instead.

hope this helps smile

(Last edited by dj_macgyver on 28 Feb 2007, 17:34)

thank you very much ^_^
I'm going to try that out!!! ^.^

The discussion might have continued from here.