[MPlayer-dev-eng] [PATCH] seek_frame

Oded Shimon ods15 at ods15.dyndns.org
Mon Nov 1 20:29:21 CET 2004


This is a patch that adds the input command 'seek_frame' to MPlayer.
With this command, you can seek to an exact frame in an AVI even if its not a 
keyframe. I throughly tested it with many different scenarios and it passed 
almost all tests. Although it supports working with audio, it works best 
without.

It has 3 problems:
 * Only AVI is supported, to add more support only the related demux_*.c has 
to be modified (and an additional 'if' in mplayer.c...).
* On some vo's, it plays the frame right before the frame you want, and then 
the next frame. This is pretty much unavoidable, as any solution around it 
causes it to not show the correct frame at all. The only vo I know about that 
does this is fbdev. I have tested xv, x11 and gl2 and they all worked perfect 
with it. This command is mostly useful for X frontends anyway.
* When played with audio, and the 'pause after seek' is checked, sometimes the 
frame is not shown until it is unpaused, because MPlayer refuses to display 
the frame until the audio desync has been fixed. I did my best to make this 
happen as seldom as possible, and I think I have even solved it, I have yet 
to see it happen since my last fix to it.

- ods15
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seek_frame.patch
Type: text/x-diff
Size: 9789 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041101/3a4314aa/attachment.patch>


More information about the MPlayer-dev-eng mailing list