[MPlayer-users] suggestion: backward step one frame

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Mar 6 02:03:52 CET 2005


Hi,
On Tue, Jan 18, 2005 at 05:41:49PM -0500, Mark Potse wrote:
> I like to be able to step backward one frame in mplayer, just 
> like stepping forward (key '.', command frame_step). I implemented
> it by adding
> 
>     case MP_CMD_BACK_FRAME_STEP : { /* go back one frame (and
>                                        another to compensate for next iter) */
>       if(sh_video) rel_seek_secs -= 2.0/sh_video->fps;
>       else rel_seek_secs -= 0.1;  /* I don't know what to do in this case */
>       osd_function =  OSD_REW;
>       cmd->pausing = 1;
>     } break;

As this works only with very few formats (MJPEG and raw mostly) I
don't think this has a chance of getting into CVS, but
the seek command now supports fractional values, so you should now be able to
get the same result (for e.g. 25 fps video) with:
, seek -0.04
in your input.conf file (you can even add pausing before seek, so you
have frame stepping).
Of course you will have to use different values for different
framerates, so the functionality is not the same, but better than
nothing IMHO.

Greetings,
Reimar Döffinger




More information about the MPlayer-users mailing list