View previous topic :: View next topic |
Author |
Message |
newtech83
Joined: 11 Dec 2009 Posts: 29 Location: Cote d'ivoire
|
Posted: Sat Feb 09, 2013 5:37 pm Post subject: Replay for 24h |
|
|
Hello
how with icecast it's possible to make replay of my radio streaming ?
Thank to help |
|
Back to top |
|
|
Nonapeptide
Joined: 08 Sep 2012 Posts: 40 Location: Scottsdale, Arizona
|
Posted: Wed Feb 20, 2013 12:20 am Post subject: Re: Replay for 24h |
|
|
newtech83 wrote: |
Hello
how with icecast it's possible to make replay of my radio streaming ?
Thank to help |
Do you mean how to archive audio that comes in from source clients? You can use the <dump-file> tag to save a file of the incoming audio. I do this for clients that want to have live broadcasts saved for posterity. The file is in whatever format the source audio is; in my case MP3. Works like a charm. |
|
Back to top |
|
|
newtech83
Joined: 11 Dec 2009 Posts: 29 Location: Cote d'ivoire
|
Posted: Tue Jun 11, 2013 7:38 am Post subject: |
|
|
Yes thank.
But it 's possible to have many dump files with date each hour for example ?
Because when i use dump it' s make one big file of 1 year. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jun 11, 2013 11:30 am Post subject: |
|
|
for something like an hour slots, I would use a separate curl command started off from cron. The only way currently within icecast is to trigger a reload event.
karl. |
|
Back to top |
|
|
Nonapeptide
Joined: 08 Sep 2012 Posts: 40 Location: Scottsdale, Arizona
|
Posted: Fri Jul 26, 2013 12:55 am Post subject: |
|
|
newtech83 wrote: |
Yes thank.
But it 's possible to have many dump files with date each hour for example ?
Because when i use dump it' s make one big file of 1 year. |
Wow, sorry for the late reply. If you want to make an archive of each hour, you'll need to interrupt the stream just long enough to rename the stream, plus you'll need your source clients set to auto-connect after being interrupted.
For example, you could issue a admin/killsource.xsl?mount=/mountpoint command (for example, using cURL: curl --user admin:password http://yourserver.com/admin/killsource.xsl?mount=/mount ) and then immediately issue a command to rename the dump file based on whatever your criterion are (in this case based on the time). Then the source client will automatically reconnect within a few seconds (I use Edcast Standalone which reconnects in 10 seconds) and your stream will then restart using whatever the file name that is specified in the <dump-file> tags.
That does, however, mean that you will have to accept a few seconds worth of a dropout in your stream files. I do not know of a means of avoiding that in your scenario.
EDIT: I'm an idiot. I see what Karl was saying - and to expand on it, if for no other reason than to make it clearer to myself - you could issue a cURL command from any server (including the IceCast server itself) to retrieve the stream's URL and save it as a file. Issue it every hour and you should have a continuous stream with virtually no interruptions between hour-long files. Sorry Karl. |
|
Back to top |
|
|
|