| View previous topic :: View next topic |
| Author |
Message |
lekim85
Joined: 28 Oct 2009 Posts: 6
|
Posted: Wed Oct 28, 2009 7:02 pm Post subject: Backup file. Is possible? |
|
|
| Hi. I would like to configurate a backup file, that plays when the source fails, like in Shoutcast. Is possible? Thanks. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 28, 2009 8:29 pm Post subject: |
|
|
you mean a fallback mount referring to a file located in webroot?
karl. |
|
| Back to top |
|
 |
lekim85
Joined: 28 Oct 2009 Posts: 6
|
Posted: Thu Oct 29, 2009 5:27 am Post subject: |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 29, 2009 5:48 am Post subject: |
|
|
I suspect you didn't see the error message reported in the error log about that file.
karl. |
|
| Back to top |
|
 |
lekim85
Joined: 28 Oct 2009 Posts: 6
|
Posted: Thu Oct 29, 2009 6:18 am Post subject: |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 29, 2009 12:56 pm Post subject: |
|
|
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 |
|
 |
lekim85
Joined: 28 Oct 2009 Posts: 6
|
Posted: Thu Oct 29, 2009 7:12 pm Post subject: |
|
|
| 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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 29, 2009 7:25 pm Post subject: |
|
|
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 |
|
 |
lekim85
Joined: 28 Oct 2009 Posts: 6
|
Posted: Fri Oct 30, 2009 6:22 am Post subject: |
|
|
| OK, thanks. |
|
| Back to top |
|
 |
stevemj
Joined: 19 Feb 2010 Posts: 9
|
Posted: Wed Mar 31, 2010 12:45 pm Post subject: fallback-mount |
|
|
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 |
|
 |
jcr Modérateur français

Joined: 14 Apr 2006 Posts: 544 Location: France, Auvergne
|
Posted: Wed Mar 31, 2010 11:10 pm Post subject: |
|
|
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 |
|
 |
stevemj
Joined: 19 Feb 2010 Posts: 9
|
Posted: Thu Apr 01, 2010 9:08 am Post subject: |
|
|
| Thanks for the response - sorry for not spotting the deliberate error myself! |
|
| Back to top |
|
 |
stevemj
Joined: 19 Feb 2010 Posts: 9
|
Posted: Thu Apr 01, 2010 9:23 am Post subject: |
|
|
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 |
|
 |
jcr Modérateur français

Joined: 14 Apr 2006 Posts: 544 Location: France, Auvergne
|
Posted: Thu Apr 01, 2010 9:38 am Post subject: |
|
|
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 |
|
 |
stevemj
Joined: 19 Feb 2010 Posts: 9
|
Posted: Thu Apr 01, 2010 10:18 am Post subject: |
|
|
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 |
|
 |
|