Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Backup file. Is possible?

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
lekim85



Joined: 28 Oct 2009
Posts: 6

PostPosted: Wed Oct 28, 2009 7:02 pm    Post subject: Backup file. Is possible? Reply with quote

Hi. I would like to configurate a backup file, that plays when the source fails, like in Shoutcast. Is possible? Thanks.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Oct 28, 2009 8:29 pm    Post subject: Reply with quote

you mean a fallback mount referring to a file located in webroot?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lekim85



Joined: 28 Oct 2009
Posts: 6

PostPosted: Thu Oct 29, 2009 5:27 am    Post subject: Reply with quote

Yes, I tried it that with this:

<fallback-mount>home/www/content/user_1/music/back128.mp3</fallback-mount>
<fallback-override>1</fallback-override>


But don't works. The streaming is also at 128kbps. Why?


Last edited by lekim85 on Thu Oct 29, 2009 6:16 am; edited 1 time in total
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Oct 29, 2009 5:48 am    Post subject: Reply with quote

I suspect you didn't see the error message reported in the error log about that file.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lekim85



Joined: 28 Oct 2009
Posts: 6

PostPosted: Thu Oct 29, 2009 6:18 am    Post subject: Reply with quote

I don't see any error:

[2009-10-29 07:14:26] DBUG format-mp3/format_mp3_apply_settings mp3 interval -1
[2009-10-29 07:14:26] DBUG source/source_update_settings fallback home/www/content/user_1/music/back128.mp3
[2009-10-29 07:14:26] DBUG source/source_update_settings Dumping stream to /tmp/dump-example1.ogg
[2009-10-29 07:14:26] DBUG source/source_update_settings connect script "/home/icecast/bin/stream-start"
[2009-10-29 07:14:26] DBUG source/source_update_settings disconnect script "/home/icecast/bin/stream-stop"


But don't works. What can I do, please?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Oct 29, 2009 12:56 pm    Post subject: Reply with quote

It will be in there, you just have to look at bit more. The key thing that is obviously wrong is that the fallback mount does not start with a / and secondly it starts with home/... which tends to indicate that you think it is meant to be an absolute path instead of one within webroot as I originally indicated.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lekim85



Joined: 28 Oct 2009
Posts: 6

PostPosted: Thu Oct 29, 2009 7:12 pm    Post subject: Reply with quote

Sorry, but I don't understand you very well (my english is quite bad). I've used this route: home/www/content/user_1/music/back128.mp3, because the file is in this folder. Is wrong? Thanks.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Oct 29, 2009 7:25 pm    Post subject: Reply with quote

ask yourself, what is <webroot> set to, then append the path you have specified for the fallback to the webroot setting and that will be the actual path to the file. As you can see it is not complicated.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lekim85



Joined: 28 Oct 2009
Posts: 6

PostPosted: Fri Oct 30, 2009 6:22 am    Post subject: Reply with quote

OK, thanks.
Back to top
View user's profile Send private message
stevemj



Joined: 19 Feb 2010
Posts: 9

PostPosted: Wed Mar 31, 2010 12:45 pm    Post subject: fallback-mount Reply with quote

Sorry, am confused about the fallback-mount.

Scenario is as follows:
Icecast 2.3.2 running in master mode and with additional slave set in "on-demand" mode.

Mountpoint defined as below on master.

<mount>
<mount-name>stevetest4.mp3</mount-name>
<fallback-mount>backup/silence.mp3</fallback-mount>
<fallback-override>1</fallback-override>
</mount>

File silence,mp3 is in the location backup.silence.mp3, where backup is a fiolder within the web root.

On the slave, I have also added backup/silence.mp3 to the web root

When connecting to the mount point, the file does not play. What am I doing wrong? Here are error log entries from the master when I tried to play direct from the master:

[2010-03-31 13:31:59] INFO fserve/fserve.c checking for file /stevetest4.mp3 (./web/stevetest4.mp3)
[2010-03-31 13:31:59] WARN fserve/fserve.c req for file "./web/stevetest4.mp3" No such file or directory

Thanks
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Mar 31, 2010 11:10 pm    Post subject: Reply with quote

Your mount should be:
Code:

<mount>
  <mount-name>/stevetest4.mp3</mount-name>
  <fallback-mount>backup/silence.mp3</fallback-mount>
  <fallback-override>1</fallback-override>
</mount>

with fallback file in a directory under your WEBROOT, ie if your server is Linux with a very classic webroot in /usr/share/icecast/web,
you have to create a directory backup there an put your silence.mp3 file in it.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
stevemj



Joined: 19 Feb 2010
Posts: 9

PostPosted: Thu Apr 01, 2010 9:08 am    Post subject: Reply with quote

Thanks for the response - sorry for not spotting the deliberate error myself!
Back to top
View user's profile Send private message
stevemj



Joined: 19 Feb 2010
Posts: 9

PostPosted: Thu Apr 01, 2010 9:23 am    Post subject: Reply with quote

Ok - so my mount point now reads:
<mount>
<mount-name>/stevetest5.mp3</mount-name>
<fallback-mount>backup/silence.mp3</fallback-mount>
<fallback-override>1</fallback-override>
</mount>

I cannot connect to it - following shows in the error logs:
[2010-04-01 10:13:15] INFO fserve/fserve.c checking for file /stevetest5.mp3 (./web/stevetest5.mp3)

[2010-04-01 10:13:15] WARN fserve/fserve.c req for file "./web/stevetest5.mp3" No such file or directory

Here is the access log:
n.n.n.n - - [01/Apr/2010:10:13:15 +0100] "GET /stevetest5.mp3 HTTP/1.1" 404 106 "-" "NSPlayer/11.0.6001.7006 WMFSDK/11.0" 0

I dont get an entry looking for backup/silence.mp3 - and this file DOES exist in a folder called backup, which is located in the webroot.

Any clues?
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Thu Apr 01, 2010 9:38 am    Post subject: Reply with quote

Why do yo increment the stevetest mount point ?
This mouunt is for your streaming client, such as SAM4, Traktor, IDJC or any other icecast capable client.

For your static mp3 fallback, is your backup directory and silence.mp3 file readable by icecast.

Latest, without having a clue about your operating system, we cannot say under which user and rights yoyur icecast runs, so telling you who is the owner of those file sis impossible.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
stevemj



Joined: 19 Feb 2010
Posts: 9

PostPosted: Thu Apr 01, 2010 10:18 am    Post subject: Reply with quote

I am incrementing it so that I do not have to reload the XML if I make a change and kill off all my connections... its a live box with about 100 services on it.

Yes the file backup/silence.mp3 is accessible by the icecast service.

I will check the ownership of the files. Its a WIN32 system
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber