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

吴立明 Joy Woo miscab at gmail.com
Tue Nov 13 09:12:44 CET 2012


Thanks first, I'll try.

-----邮件原件-----
发件人: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org] 代表 Roger Pack
发送时间: 2012年11月13日 13:07
收件人: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
主题: Re: [Libav-user] How can we make two NTP-sync computers appears the same while starting playing the same media file at the same time?

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
>
>
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user



More information about the Libav-user mailing list