1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

allow to step only one frame forward by pressing s.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13627 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-10-12 22:10:56 +00:00
parent 0c153147d6
commit b6cc03ac9b
6 changed files with 11 additions and 0 deletions

View File

@ -227,6 +227,10 @@ next/\:previous playtree entry in the parent list
next/\:previous alternative source (ASX playlist only)
.IPs "p / SPACE"
Pause movie (any key unpauses).
.IPs "s"
Step forward.
Pressing once will pause movie, every consecutive press will play one frame
and then go into pause mode again (any other key unpauses).
.IPs "q / ESC"
Stop playing and quit.
.IPs "+ and -"

View File

@ -28,6 +28,9 @@ quit [<value>]
pause
Pause/unpause the playback.
frame_step
Play one frame, then pause again.
grab_frames
???

View File

@ -19,6 +19,7 @@ q quit
ESC quit
ENTER pt_step 1 1
p pause
s frame_step
SPACE pause
HOME pt_up_step 1
END pt_up_step -1

View File

@ -57,6 +57,7 @@ static mp_cmd_t mp_cmds[] = {
{ MP_CMD_AUDIO_DELAY, "audio_delay", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } },
{ MP_CMD_QUIT, "quit", 0, { {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
{ MP_CMD_PAUSE, "pause", 0, { {-1,{0}} } },
{ MP_CMD_FRAME_STEP, "frame_step", 0, { {-1,{0}} } },
{ MP_CMD_GRAB_FRAMES, "grab_frames",0, { {-1,{0}} } },
{ MP_CMD_PLAY_TREE_STEP, "pt_step",1, { { MP_CMD_ARG_INT ,{0}}, { MP_CMD_ARG_INT ,{0}}, {-1,{0}} } },
{ MP_CMD_PLAY_TREE_UP_STEP, "pt_up_step",1, { { MP_CMD_ARG_INT,{0} }, { MP_CMD_ARG_INT ,{0}}, {-1,{0}} } },

View File

@ -57,6 +57,7 @@
#define MP_CMD_VO_ROOTWIN 53
#define MP_CMD_SWITCH_VSYNC 54
#define MP_CMD_SWITCH_RATIO 55
#define MP_CMD_FRAME_STEP 56
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001

View File

@ -2597,6 +2597,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
osd_show_av_delay = 9;
if(sh_audio) sh_audio->delay+= v;
} break;
case MP_CMD_FRAME_STEP :
case MP_CMD_PAUSE : {
osd_function=OSD_PAUSE;
brk_cmd = 1;