Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'scripting with streamripper?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
scripting with streamripper?
Authored by: joon on Nov 04, '01 01:20:01PM
any chance of you making a script to rip a playing stream with stream ripper? Streamripper uses the terminal and I know the terminal is scriptable. I have some scripting knowledge but I'm a little behind when it comes to scripting in X. It would be great if you could just access the script from the script menu and rip any stream. Who needs Napster? ;) stream ripper at sourceforge thanks! joon

[ Reply to This | # ]
scripting with streamripper?
Authored by: sabi on Nov 04, '01 02:51:45PM
If you don't need/can't use the song-splitting ability of streamripper, you might want to try archiver.pl written by Jamie Zawinski instead - it's what I use most of the time. It just records a stream, no relaying, no cutting into pieces, but it uses zero CPU compared to streamripper (which uses close to 100% CPU on a G4/533 for me).

Your best bet is to find some osax or something that lets you run shell commands from AppleScript. My recording script actually calls one or the other based on whether I request relaying:

     if [[ -z $@ ]] {
       mkdir $rptmp
       $HOME/src/archiver.pl --verbose $rpurl $rptmp $rpsecs || exit
       mv $rptmp/*/*.mp3 $rpd/$fn
       rm $rptmp/*/*.time
       rmdir $rptmp/*
     } else {
       streamripper $rpurl -r -s -d $rpd -l $rpsecs || exit
       mv $rptmp/* $rpd/$fn
     }


[ Reply to This | # ]
scripting with streamripper?
Authored by: joon on Nov 04, '01 11:43:57PM

Close to 100% on a 533 G4? That sounds too high. I get < 40% on a Titanium G4 500. Just today I had streamripper rip and relay while iTunes2 was playing that relay and this was with IE 5 running, Photoshop and Dreamweaver in classic for my web work -and yes, I was working as usual going back and forth, those apps weren't just sitting there. I know I was really pushing it but I had very little problems. Only if that Altivec kicked in more often it would be less of an issue.

Wow! archiver.pl can do that as a perl script? Doesn't it need extra libraries to call on. I have to try it out. Thanks for the link.

And any chance of you commenting on that script? It looks nothing like Applescript. I'm lost.. I have a lot to learn.

thanks alot Sabi!



[ Reply to This | # ]