[vlc-devel] How does VLC acheive synchromize between voice and video?

Rémi Denis-Courmont remi at remlab.net
Sun Feb 10 16:48:04 CET 2013


Le dimanche 10 février 2013 17:37:19, yujian a écrit :
> I debug the code that found vlc uses the qt to show main frame and create a
> playlist class.  But I did not know where does the VLC achieve the
> synchromize between autdio and video,  for exmaple,  at the same time
> output the current time's video and autdio?

VLC does not synchronize video and audio directly. It synchronizes input 
timestamps with the system clock, and then it separately adjusts both audio 
and video playback to not drift from the intended clock time.

Thus there is not one centralized place in the source code with the 
synchroniaztion code.

Rémi Denis-Courmont

More information about the vlc-devel mailing list