[MPlayer-dev-eng] How to solve the problem of synchronization when seeking?

Richard richardlf at sina.com
Sun May 25 03:35:38 CEST 2003


Hi,everybody!

	There is one problem that puzzled me a long time.I want to add seek function when use http to get source stream,that is STREAMTYPE_STREAM.The first media type I add is real format.I learn the source code of demux_real.c,and know the person who write it just do like this:he seek the position of the first video keyframe  after the frame that is rel_seek_secs away from the current frame(current_vpacket).Then current_vpacket is set to be that first video keyframe's packet number,and return the seek pos.BUT,problem occurs,where is the right audio pos???That will add a long delay(if seek 10 secs,the delay will be 10 secs,that shows video is waiting for the audio) to do with the synchronization problem.That is depression.

    Who knows how to sovle this problem????????????????????

																richardlf at 21cn.com






More information about the MPlayer-dev-eng mailing list