Hi Tom,

2013/6/18  <[email protected]>:
> Hi all
> ----- Original Message -----
> From: "Romain Beauxis" <[email protected]>
> To: <[email protected]>
> Sent: Tuesday, June 11, 2013 4:28 PM
> Subject: Re: [Savonet-users] Changing File il LS
>
>
> 2013/6/11 Thomas Bühlmann <[email protected]>:
>> Am 09.06.2013 18:12, schrieb Romain Beauxis:
>>> 2013/5/31 Thomas Bühlmann <[email protected]>:
>>>> Hello List!
>>> hi!
>> Hi Romain!
>>>> I'm fighting with a problem:
>>>> I have a fixed name dfile. It's regulary replaced by an external script.
>>>> What is the recommendet way to implement this?
>>>> Can i use single() or is playlist() better?
>>>>
>>>> I think of the following:
>>>>
>>>> clock=single(....)
>>>> radio=playlist(..)
>>>> ....
>>>> radio =
>>>> smooth_add(delay=0.5,p=0.3,normal=radio,special=switch([({30m00s},clock)]))
>>>>
>>>> Strangely this works for the first time. After this i simply get a short
>>>> duck of the normal source, but no playout of clock.
>>>> This makes me think that single() may not be appropriate for this use.
>>>> Am i right? What is the recommended way?
>>> One thing that might fail here is that, upon starting up, if
>>> liquidsoap sees a single() source, it will try to find out if its file
>>> is a local file. If that is the case, it will make the assumption that
>>> it is a static file, open it and never re-open it (I think).  So, if
>>> you change the file later, it will fail.
>>>
>>> What you can do to remedy this is to trick liquidsoap into resolving
>>> the file each time it plays it, through a dummy annotate protocol like
>>> this:
>>>
>>>   s = single("annotate:foo=\"bla\":/path/to/file/mp3")
>>>
>>> Hope this helps,
>>> Romain
>> You're great..! :)
>> I've tested for about 12 hours now, and it seems to work.
>> I've searched for weeks for a solution.
>>
>> Thanks very much!
>
> Excellent, glad to read this!
>
> Romain
>
> I'm afraid i was too optimistic.. :(
> After about a week the problem started again:
>
> 2013/06/12 03:30:00 [clock:3] Prepared "/music/news/test/news.mp3" (RID 4).
> 2013/06/12 03:30:00 [fallback_4974:3] Switch to switch_4973 with transition.
> 2013/06/12 03:30:01 [clock.wallclock_main:2] We must catchup 1.21 seconds!
> 2013/06/12 03:30:01 [fallback_4974:3] Switch to fallback_4971 with
> transition.
> 2013/06/12 03:32:04 [decoder:3] Method "MAD" accepted
> "/music/night/jean-michel_......
>
> I see theese "We must catchup.." occasionally, they dissapear if i renice
> the LS process.
> (This is obvoiusely a little load problem on the machine while some backups
> run.)
> But the problem remains also with the reniced process.
> Something seems to accumulate over time in the static() queue and i can't
> get to it.
> Any tips how i can debug this deeper?
> Perhaps also important: The files to be played are rather short (about 5-6
> secs). I'm not sure if this matters.
>
> For the moment i' ve changed to  a request-based solution:
> announcement=request.equeue(id="anno"))
> ......
> radio = smooth_add(delay=0.5,p=0.3,normal=radio,special=switch([({(5h or 6h
> or 7h or 17h or 18h) and 15m0s},announcement)]))
>
> (And a cron script witch sends the file one minute ahead of the announcement
> into the queue.)
> This may not be as elegant as it can be, but this works for the moment. So
> more time to debug :)
>
> And: I must say it for once: Thanks to all for always beeing here to help!

Thanks!

A little catchup from time to time, particularly when a file is being
prepared shouldn't be too much of a deal tho. Do you have gaps in the
resulting stream?

Romain

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to