[MPlayer-dev-eng] [PATCH] Frame stepping (i.e. seeking while paused)

Jason Tackaberry tack at sault.org
Wed Jul 7 05:05:00 CEST 2004


On Wed, 2004-07-07 at 03:48 +0300, Shachar Raindel wrote:
> Here is an improved version of this hack, even uglier one, but this
> one handles seeking in MPEG 1/2 streams (the original patch has
> serious problems with these streams), and allows stepping forward the

It's not actually my patch that has problems seeking in MPEG streams but
mplayer's demuxer in general.  It seems to calculate the byte position
in the file to seek to based on the bitrate of the video, so if you're
viewing a variable bitrate mpeg (most mpegs, probably) seeking will not
be accurate.

> stream in 3 frames each time (and keeps A/V sync when the pause is
> released). I think it should be canidated for the ugliest patch of the
> month competition, but it is really really cool....

I haven't had any A/V sync problems with that patch.  I tested on an
mpeg2 stream (from my PVR350), a divx, and a DVD.  Where did you run
into problems?

> BTW, my havely modified tree contains, at time being, a nice looking
> patch for realtime priority under linux, and a really really ugly
> patch for variable playback speed, with minimal distortion to the
> sound. I will send my tree if anybody has the time to cleen these

I'm keen to see the stuff on variable playback speed if possible.

Cheers,
Jason.




More information about the MPlayer-dev-eng mailing list