Page 1 of 1

How does VLC synchronize between two ES stream?

Posted: 17 Jul 2007 03:10
by xzou999
Recently,I'm studing something about synchronize between video and audio stream in VLC. Through reading the source code, I found that every time when demux was finished, a function call "es_out_Control(p_demux,ES_OUT_SET_PCR,...)" will be invoked. Having read inner contents of es_out_Control, I feel its work is set the PCR which could mean "Program Clock Reference " (don't know whether it's right). Then,it might be a system wide refence clock, didn't it?

:( Here comes the problem: In the next step ,that is decoder module, I haven't found anything about this "pcr",why? how did synchronize work in this part? :?:

Re: How does VLC synchronize between two ES stream?

Posted: 17 Jul 2007 17:02
by dionoea
You should post your question on the vlc-devel@videolan.org mailing list if you want an answer from knowlegable people. You can subscribe to the mailing list on http://mailman.videolan.org/ .