[Libav-user] How can we make two NTP-sync computers appears the same while starting playing the same media file at the same time?

Roger Pack rogerdpack2 at gmail.com
Tue Nov 13 06:06:38 CET 2012


mplayer has a udp sync option that may be useful to you.

On 11/10/12, 吴立明 Joy Woo <miscab at gmail.com> wrote:
> Hi folks,
>
>
>
> I got a problem while synchronizing two computers’ playing.
>
>
>
> I have two computers of the same hardware and software, and both of them
> are
> sync with a NTP server in the same LAN. Then I wrote a libav program
> running
> on both of them to play the same media file (for example, test.mov) at the
> same beginning time(for example, 13:10:05). Internally, a timer is set up
> to
> check the timeout with an interval of 1 second.
>
>
>
> But unfortunately I found out that the pictures are the same at the very
> beginning, but gradually, the pictures start to differ greatly as time went
> by.  It’s obviously that one plays fast and the other plays pretty slow.
>
>
>
> So how to make the two computers play media files with better
> synchronization?
>
>
>
> Thanks a million!
>
>
>
> Joy Woo
>
> 11/11/12
>
>


More information about the Libav-user mailing list