[MPlayer-users] suggestion: backward step one frame

Mark Potse mark at potse.nl
Tue Jan 18 23:41:49 CET 2005


hello,

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;

just before

    case MP_CMD_FRAME_STEP :

in mplayer.c (MPlayer-1.0pre6a).

Corresponding changes in input/input.c|h and input.config are 
obvious. I suggest the ',' key because it sits on the left of the '.'
key in the US keyboard layout.

This works well enough for me, but it would of course be nice to have
something like this in the official version. 


best regards,

Mark


-- 
 Mark Potse  < http://www.potse.nl >
 Institute of Biomedical Engineering
 University of Montreal * * * Canada




More information about the MPlayer-users mailing list