themicah
01-22-2006, 04:27 PM
I'm a fan of several radio shows that are not currently available as podcasts, but that are broadcast online on a regular schedule as streaming mp3s.
I'd like to set up a scheduled task on my VPS that will "record" the streams so I can download them to an mp3 player and listen to them when I go to the gym. I could pretty easily do this on my home computers, but I use laptops that are usually hibernating, and connected via an interference-prone wireless network, so I'd much rather just have my VPS do it.
My understanding is that I should be able to use cron to schedule the task, and use mplayer (or something similar) to grab the stream and dump it to an mp3 file on my server, which I can then download for listening. And not to worry--this will be strictly for personal use like a VCR or a Tivo (I will not be redistributing the captured audio to the wider internet).
The problem is, I know very little about either cron or mplayer.
I found another forum that suggested the following command would do the trick with mplayer:
mplayer -playlist mplayer -playlist [insert stream URL here] -dumpstream -dumpfile output.mp3
But I need to install mplayer first, and I'm not sure how to go about doing that. I can't find mplayer in the default apt repositories, and the main mplayerhq.hu website is down right now. Anybody know where I can grab rpms that will work? Or should I just try to compile it myself? I have the standard rhel4-based rimuhosting distro, if that matters. And will my entry-level Xen VPS be powerful enough to run mplayer? Or is that pushing it? Right now my server isn't particularly stressed (I don't run any databases or any high-traffic websites off of it).
Finally, any other suggestions for how to accomplish this? Are there other stream recording programs for linux that would be better? Is this simply asking too much of a basic VPS?
Thanks!
I'd like to set up a scheduled task on my VPS that will "record" the streams so I can download them to an mp3 player and listen to them when I go to the gym. I could pretty easily do this on my home computers, but I use laptops that are usually hibernating, and connected via an interference-prone wireless network, so I'd much rather just have my VPS do it.
My understanding is that I should be able to use cron to schedule the task, and use mplayer (or something similar) to grab the stream and dump it to an mp3 file on my server, which I can then download for listening. And not to worry--this will be strictly for personal use like a VCR or a Tivo (I will not be redistributing the captured audio to the wider internet).
The problem is, I know very little about either cron or mplayer.
I found another forum that suggested the following command would do the trick with mplayer:
mplayer -playlist mplayer -playlist [insert stream URL here] -dumpstream -dumpfile output.mp3
But I need to install mplayer first, and I'm not sure how to go about doing that. I can't find mplayer in the default apt repositories, and the main mplayerhq.hu website is down right now. Anybody know where I can grab rpms that will work? Or should I just try to compile it myself? I have the standard rhel4-based rimuhosting distro, if that matters. And will my entry-level Xen VPS be powerful enough to run mplayer? Or is that pushing it? Right now my server isn't particularly stressed (I don't run any databases or any high-traffic websites off of it).
Finally, any other suggestions for how to accomplish this? Are there other stream recording programs for linux that would be better? Is this simply asking too much of a basic VPS?
Thanks!