LinuxQuestions.org Member Success StoriesJust spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Basically, once you have downloaded a file containing the stream address you find the url of the stream with the command
$ more file.[asx/m3u/pls]
which will be mms://something
You can then use a single command (assuming you put the script in /usr/bin) to download the stream and covert the audio to an MP3 or Ogg file by typing:
$streamsaver [mms url] [desired file name]
I've never got round to doing much more with it, but if its possible having it extract the mms url from the file itself would eliminate the first step. Beyond that the only other thing I've tried to do is have it start recording from a stream and stop at a particular time- a friend had a show on a campus radio station that didn't have a podcast or stream shows individually- that was my first experience with cron and got very messy :-/ So if anyone wants to add and share those functions feel free :-)