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:
parent
0c153147d6
commit
b6cc03ac9b
@ -227,6 +227,10 @@ next/\:previous playtree entry in the parent list
|
|||||||
next/\:previous alternative source (ASX playlist only)
|
next/\:previous alternative source (ASX playlist only)
|
||||||
.IPs "p / SPACE"
|
.IPs "p / SPACE"
|
||||||
Pause movie (any key unpauses).
|
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"
|
.IPs "q / ESC"
|
||||||
Stop playing and quit.
|
Stop playing and quit.
|
||||||
.IPs "+ and -"
|
.IPs "+ and -"
|
||||||
|
@ -28,6 +28,9 @@ quit [<value>]
|
|||||||
pause
|
pause
|
||||||
Pause/unpause the playback.
|
Pause/unpause the playback.
|
||||||
|
|
||||||
|
frame_step
|
||||||
|
Play one frame, then pause again.
|
||||||
|
|
||||||
grab_frames
|
grab_frames
|
||||||
???
|
???
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ q quit
|
|||||||
ESC quit
|
ESC quit
|
||||||
ENTER pt_step 1 1
|
ENTER pt_step 1 1
|
||||||
p pause
|
p pause
|
||||||
|
s frame_step
|
||||||
SPACE pause
|
SPACE pause
|
||||||
HOME pt_up_step 1
|
HOME pt_up_step 1
|
||||||
END pt_up_step -1
|
END pt_up_step -1
|
||||||
|
@ -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_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_QUIT, "quit", 0, { {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
|
||||||
{ MP_CMD_PAUSE, "pause", 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_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_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}} } },
|
{ MP_CMD_PLAY_TREE_UP_STEP, "pt_up_step",1, { { MP_CMD_ARG_INT,{0} }, { MP_CMD_ARG_INT ,{0}}, {-1,{0}} } },
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#define MP_CMD_VO_ROOTWIN 53
|
#define MP_CMD_VO_ROOTWIN 53
|
||||||
#define MP_CMD_SWITCH_VSYNC 54
|
#define MP_CMD_SWITCH_VSYNC 54
|
||||||
#define MP_CMD_SWITCH_RATIO 55
|
#define MP_CMD_SWITCH_RATIO 55
|
||||||
|
#define MP_CMD_FRAME_STEP 56
|
||||||
|
|
||||||
#define MP_CMD_GUI_EVENTS 5000
|
#define MP_CMD_GUI_EVENTS 5000
|
||||||
#define MP_CMD_GUI_LOADFILE 5001
|
#define MP_CMD_GUI_LOADFILE 5001
|
||||||
|
@ -2597,6 +2597,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
|||||||
osd_show_av_delay = 9;
|
osd_show_av_delay = 9;
|
||||||
if(sh_audio) sh_audio->delay+= v;
|
if(sh_audio) sh_audio->delay+= v;
|
||||||
} break;
|
} break;
|
||||||
|
case MP_CMD_FRAME_STEP :
|
||||||
case MP_CMD_PAUSE : {
|
case MP_CMD_PAUSE : {
|
||||||
osd_function=OSD_PAUSE;
|
osd_function=OSD_PAUSE;
|
||||||
brk_cmd = 1;
|
brk_cmd = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user