<div>Hi all,</div>
<div>My AVI player application plays Xvid video and MP3 audio. My pipeline is as follows</div>
<div>filesrc -> avidemux->video decoder->xvimagesink</div>
<div> |->audio decoder -> audiosink</div>
<div> </div>
<div>video decoder, audio decoder and audiosink are custom elements which use hardware DSPs. To achieve AV sync I followed the following approach - </div>
<div>1. Calculate no. of samples played by audio sink</div>
<div>2. Calculated stream time as GstSystemClock time (current) - GstSystemClockTime (base)</div>
<div>3. Found the diff between the two times and updated video TIMESTAMPs.</div>
<div> </div>
<div>I was able to sync Audio and Video - there was trouble wen I added the pause play function.(Note : I made allowance for time paused etc.!)</div>
<div>I wanna knw -</div>
<div>1. Is my approach for AV sync sustainable</div>
<div>2. After subclassing GstSystemClock and setting the get internal time function in my plugin wat else do I have to do to implement my own Gst Clock?</div>
<div> </div>
<div>Thanks </div>
<div>Regards</div>
<div>Gaurav</div>
<div> </div>