[MPlayer-dev-eng] Millisecond perfect seek.

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Feb 10 16:45:01 CET 2009


On Tue, Feb 10, 2009 at 04:35:47PM +0100, Grigori G wrote:
> Wouldn't it be possible to seek to the keyframe before the wanted frame 
> and then decompress but discard all frames inbetween? This can be quite 
> slow, but it'd work.
> 
> This would also make my mencoder-based transcoding frontend a lot more 
> useful. (It's designed for cutting out snippets from video files or 
> DVDs. So far it's not very useful for files with keyframes only every 10 
> seconds or so)

For mencoder -hr-edl-seek is supposed to do that.
For MPlayer you might be able to write a video filter that discards
frames up to the seek position (or drop them somewhere else, e.g. vf_vo)
as long as you use -correct-pts



More information about the MPlayer-dev-eng mailing list