[MPlayer-dev-eng] [PATCH] Network synchronized playback using UDP
Artur Zaprzała
zapartur at gmail.com
Tue Mar 24 15:00:12 CET 2009
Jason Holt wrote:
>> I just prefer synchronization as NTP can achieve, down to a few ms, rather
>> than
>> master-slave synchronization as in this patch that is subject to
>> network latencies.
>>
> An NTP-based solution could be pretty neat, and could avoid network latency
> problems as you suggest. The master would essentially declare what should
> happen when, with plenty of advance warning, and the slaves would do their
> duty on time.
>
> My solution's advantage is that it's much simpler, and gets seek, pause and
> speed adjustments basically for free, whereas I would expect an NTP-based
> solution would have to handle each of those behaviors specifically.
>
With NTP solution master should send to slaves a message like: play
frame f at time t with framerate r. Using that info and a local clock
each slave can calculate exactly which frame it should play now.
More information about the MPlayer-dev-eng
mailing list