[ 
http://dev.sourcefabric.org/browse/LS-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15902#action_15902
 ] 

David Baelde commented on LS-520:
---------------------------------

It'd be nice to play with such things, but I think it'll be rather complicated. 
First, we'll need some tools to analyze the drifting situations: currently the 
only way is to enable the verbose logging of all incoming packets, graph it, 
see if it looks regular, etc. Instead, we could run some analysis directly 
within liquidsoap, detect a linear drift, issue a concise log message.

Then we can think of proposing automatic solutions. The first difficulty is to 
implement the details of your idea: it's a control problem, maybe we should 
open a control theory book, or at least see how/if other software deals with 
that kind of issue? Also, I'm afraid there might be different policies: if 
there is a drift, is it the client's or the clock's fault? It could be that the 
clock is lagging because of a soundcard or a bad connexion with icecast, in 
which case we should not correct the drift at the level of the Generated 
source, but by tweaking the clock rate.

> Deal linearly with drifting
> ---------------------------
>
>                 Key: LS-520
>                 URL: http://dev.sourcefabric.org/browse/LS-520
>             Project: Liquidsoap
>          Issue Type: New Feature
>            Reporter: Samuel Mimram
>            Priority: Major
>
> I think I have a simple idea to deal with drifting: if the client streams 
> data too fast we could drop a sample once in a while, and  if the client is 
> too slow we could duplicate a sample once in a while. If the drift is not too 
> important, it won't be audible. And the implementation is simple: it's just a 
> matter of scaling linearly the buffer.
> It would be very nice if an option could be added to habor to have this kind 
> of behavior. Unfortunately, I don't know the harbor code well-enough to be 
> able to implement this. Maybe Romain ? ;)
> PS: from what I understand, this should be dont by improving Generated 
> sources.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à