[Icecast] Pathing syntax for icecast.xml in Windows

Marvin Scholz epirat07 at gmail.com
Mon Jun 1 07:45:07 PDT 2015


On 1 Jun 2015, at 16:31, Jack Elliott 541 848 7021 wrote:

> Hi Marvin, thank you.
>
> Okay, then to be clear, "webroot" for the purposes of running Icecast
> under Windows would be the same folder where icecast.xml is normally
> found, i.e., C:\Program Files\icecast

The webroot is where the web files are, so it should be `web` on Windows 
and
contain files like `status.xsl`.

> And, if I read you correctly, suppose my normal mount coming from my
> source client is called /example  (it is an mp3 stream so I don't
> specify the extension). If I place a file called "example.mp3" in the
> webroot, and rename my live mount "example.mp3" then will Icecast
> automatically fall back to the static file in the event that the 
> source
> client goes off-air?

No, I re-checked to be clear and the correct statement is:
Icecast will treat static files like mounts if they are in webroot. This 
means that if you
have a mount defined in your config with the name foo.mp3 and you have a 
foo.mp3 in your webroot,
Icecast will apply the mount settings (like auth for example) to this 
static file.
Best is to never have a static file with the same name as a mountpoint 
you want to stream to.

But that handling makes it possible that you can use a static file as 
fallback mount, because Icecast will
play the file, if there is one with the same name as the mountpoint.
Just make sure to place the file in the webroot and name it to something 
that won't conflict with any other
stream. Then enter that name for the fallback mount as explained in my 
last mail.

>
> -- 
> that Jack Elliott
> 541 848 7021
> Producer Wednesday Point, Host, The Sunday Classics
> KPOV 88.9, High Desert Radio
> Audio geek
>
> On 06/01/2015 07:21 AM, Marvin Scholz wrote:
>> On 1 Jun 2015, at 16:04, Jack Elliott 541 848 7021 wrote:
>>
>>> Hi Philipp,
>>>
>>> Thank you.
>>>
>>> I find in the Icecast docs the following:
>>>
>>> "_A fallback mount can also state a file that is located in 
>>> webroot._
>> This is true, and itIt
>> expects to be a mount name, as mounts will fallback to files in 
>> webroot
>> with the same name, if they exists, you can use a file as well.
>> exactly states what's wrong with your syntax. It
>> expects to be a mount name, as mounts will fallback to files in 
>> webroot
>> with the same name, if they exists, you can use a file as well.
>> Therefore you can't just put the full path there, like you did. (And 
>> you
>> path does not seem to point to webroot) If you want to have a 
>> fallback
>> file, put it in webroot and just put the filename in the 
>> fallback-mount,
>> as you would usually do with a mountpoint:
>>
>>     <fallback-mount>/fallback.mp3</fallback-mount>
>>
>>> This is useful for playing a pre-recorded file in the case of a 
>>> stream
>>> going down. It will repeat until either the listener disconnects or 
>>> a
>>> stream comes back available and takes the listeners back. As per
>>> usual, the file format should match the stream format, failing to do
>>> so may cause problems with playback."
>>>
>>> This is at http://icecast.org/docs/icecast-2.4.1/config-file.htm
>>> <http://icecast.org/docs/icecast-2.4.1/config-file.html>
>>>
>>> So it appears that one can specify a static file as the fallback. My
>>> question has to do with whether Icecast will be happy with the 
>>> syntax
>>> I have proposed as the path to the file.
>>>
>>> -- 
>>> that Jack Elliott
>>> 541 848 7021
>>> Producer Wednesday Point, Host, The Sunday Classics
>>> KPOV 88.9, High Desert Radio
>>> Audio geek
>>>
>>> On 05/31/2015 05:12 AM, Philipp Schafft wrote:
>>>> reflum,
>>>>
>>>> On Sat, 2015-05-30 at 09:30 -0700, that Jack Elliott wrote:
>>>>> Hi,
>>>>>
>>>>> Icecast.xml sh"A fallback mount can also state a file that is
>>>>> located in webroot. This
>>>>> is useful for playing a pre-recorded file in the case of a stream
>>>>> going
>>>>> down. It will repeat until either the listener disconnects or a
>>>>> stream
>>>>> comes back available and takes the listeners back. As per usual, 
>>>>> the
>>>>> file format should match the stream format, failing to do so may
>>>>> cause
>>>>> problems with playback."ows a sample path to a mountpoint fallback
>>>>> file as
>>>>>
>>>>> <fallback-mount>/example2.ogg</fallback-mount>
>>>>>
>>>>> Under Windows, will this next work?
>>>>>
>>>>> <fallback-mount>"C:\Users\username\Desktop\foldername\subfoldername
>>>>> \fallback.mp3"</fallback-mount>
>>>>> [...]
>>>> No.
>>>>
>>>> I think you misunderstanding fallbacks a bit: Those are not files 
>>>> but
>>>> actual mounts (which may be files within the webroot).
>>>>
>>>> I would suggest to read docs for more info:
>>>> http://icecast.org/docs/icecast-2.4.1/config-file.html#mountsettings
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Icecast mailing list
>>>> Icecast at xiph.org
>>>> http://lists.xiph.org/mailman/listinfo/icecast
>>> _______________________________________________
>>> Icecast mailing list
>>> Icecast at xiph.org
>>> http://lists.xiph.org/mailman/listinfo/icecast
>> _______________________________________________
>> Icecast mailing list
>> Icecast at xiph.org
>> http://lists.xiph.org/mailman/listinfo/icecast
>
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast


More information about the Icecast mailing list