Centova Technologies Forum

Centova Cast v2 => General discussion => Topic started by: Nazeer on November 20, 2010, 07:57:01 am

Title: Live Stream Archiving
Post by: Nazeer on November 20, 2010, 07:57:01 am
Hi

Does this software support archiving of daily streams?

If not, how can I setup something like this?
Title: Re: Live Stream Archiving
Post by: Centova Technologies on November 26, 2010, 07:31:38 pm
ShoutCast DNAS does have an option to record the stream to a file, but it's too rigid to be useful for most users -- as I understand it, it just starts writing to the file when you start the server, and there is no way to rotate it to multiple files for different days or anything like that.

The easiest and most reliable solution we know of is to use wget from a cron job such as:

Code: [Select]
wget -O /home/foo/archive-`date +%Y-m-d`.mp3 -q http://ipaddress:port

The reason this works is because the ShoutCast protocol is very similar to HTTP, so wget just thinks it's downloading a really big, really long MP3 file.  Just kill the process and restart it each time you want to start a new file (i.e., at midnight or whatever).

Title: Re: Live Stream Archiving
Post by: Nazeer on November 27, 2010, 03:34:20 pm
Hi

Thanks for your reply

I'll attempt to make a script which logs audio from a certain time to another and on certain days only.

It would be great though if this could be set via the web interface as well as have options to set bitrate and maybe even have a client interface to access these logs (im a big dreamer :-) )

Thanks anyway

PS... Streamripper also rips MP3s... which of the two is better to use (streamripper or wget)
Title: Re: Live Stream Archiving
Post by: Centova - Steve B. on December 10, 2010, 07:48:57 pm
I don't know if Streamripper can archive an entire broadcast. I know the default behavior is to try to split it up into multiple tracks every time the metadata changes.... if you can set it to archive to a single file (or if you don't mind having multiple files) then yes, Streamripper is probably a better choice.