[MPlayer-dev-eng] [PATCH] improve seeking in realmedia files

陆然 hephooey at gmail.com
Sun Jan 28 06:28:01 CET 2007


Hi,

On Saturday 27 January 2007, Roberto Togni wrote:
> Can you provide some samples where this make a difference? i found only
> one sample (samples/real/VC-RV40/Sample.rmvb) where seeking is totally
> broken without the patch, but it works with it. But in all my tests a/v
> sync was still wrong after seeking, and in both cases it fixes itself
> (you can make it better with -mc 10).

I've spend some time on the a-v sync problem. The reason for the asynchronism 
is pretty simple: When mplayer seek to a video keyframe, usually the next 
audio subpacket is behind of several video packet and it usually in the 
middle of a big packet thus make it useless, so the audio buffer get proper 
data after a lot video data are processed. In the worst case it create a 
asynchronism of several seconds. 

I've tested a few files and there seems always a subpacket before the video 
keyframe with a timestamp pretty close to the video. But unless there is a way 
to use a incomplete packet, I think the current situation is the best we can 
do.

-- 
Best Regards,
LR



More information about the MPlayer-dev-eng mailing list