summaryrefslogtreecommitdiffstats
path: root/roles/mpv/files/input.conf
blob: 1f20ef56e338325869f66244ffa061719dc39323 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# Ref: /usr/share/doc/mpv/input.conf
# If this is enabled, treat all the following bindings as default.
default-bindings start

# Mouse button configurations
MBTN_LEFT      ignore
MBTN_LEFT_DBL  cycle fullscreen    # toggle fullscreen
MBTN_RIGHT     cycle pause         # toggle pause/playback mode
MBTN_BACK      ignore
MBTN_FORWARD   ignore
Ctrl+MBTN_LEFT ignore

# Mouse wheels, touchpad configurations
WHEEL_UP      add volume 2
WHEEL_DOWN    add volume -2
WHEEL_LEFT    ignore
WHEEL_RIGHT   ignore

# Arrow configurations
RIGHT seek  5   # seek 5 seconds forward
LEFT  seek -5   # seek 5 seconds backward
UP    seek  60  # seek 1 minute forward
DOWN  seek -60  # seek 1 minute backward

# Other configurations
q quit              # exit
ctrl+w quit         # exit
Q quit-watch-later  # exit and remember the playback position

ESC     set fullscreen no   # leave fullscreen
SPACE   cycle pause         # toggle pause/playback mode
o       show-progress       # show playback progress
A       cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "no" # cycle the video aspect ratio
E       cycle edition       # switch edition
ctrl+h  cycle-values hwdec "no" "auto"  # toggle hardware decoding

POWER quit
PLAY cycle pause                       # toggle pause/playback mode
PAUSE cycle pause                      # toggle pause/playback mode
PLAYPAUSE cycle pause                  # toggle pause/playback mode
PLAYONLY set pause no                  # unpause
PAUSEONLY set pause yes                # pause
STOP quit
FORWARD seek 60                        # seek 1 minute forward
REWIND seek -60                        # seek 1 minute backward
NEXT playlist-next                     # skip to the next file
PREV playlist-prev                     # skip to the previous file
VOLUME_UP add volume 2
VOLUME_DOWN add volume -2
MUTE cycle mute                        # toggle mute

# Subtitle control
Shift+RIGHT add sub-delay -0.1    # shift subtitles 100 ms earlier
Shift+LEFT  add sub-delay +0.1    # delay subtitles by 100 ms
Shift+UP   add sub-scale +0.1     # increase the subtitle font size
Shift+DOWN add sub-scale -0.1     # decrease the subtitle font size
v cycle sub-visibility            # hide or show the subtitles
k add sub-pos -1                       # move subtitles up
j add sub-pos +1                       # move subtitles down
r ignore
R ignore
t ignore
z ignore
x ignore
Z ignore

# Audio control
Ctrl+RIGHT add audio-delay  0.100      # change audio/video sync by delaying the audio
Ctrl+LEFT  add audio-delay -0.100      # change audio/video sync by shifting the audio earlier
Ctrl+UP    add volume 2                # change audio/video sync by delaying the audio
Ctrl+DOWN  add volume -2               # change audio/video sync by shifting the audio earlier
m cycle mute                           # toggle mute

ctrl++           ignore
ctrl+-           ignore
ctrl+KP_ADD      ignore
ctrl+KP_SUBTRACT ignore

# Screenshot control
s screenshot                           # take a screenshot of the video in its original resolution with subtitles
S screenshot video                     # take a screenshot of the video in its original resolution without subtitles
Ctrl+s screenshot window               # take a screenshot of the window with OSD and subtitles
Alt+s screenshot each-frame            # automatically screenshot every frame; issue this command again to stop taking screenshots

# Disabled configurations
Ctrl+Shift+LEFT ignore
Ctrl+Shift+RIGHT ignore
Alt+left  ignore
Alt+right ignore
Alt+up    ignore
Alt+down  ignore
Alt++     ignore
ZOOMIN    ignore
Alt+-     ignore
ZOOMOUT   ignore
Alt+KP_ADD      ignore
Alt+KP_SUBTRACT ignore
Ctrl+WHEEL_UP   ignore
Ctrl+WHEEL_DOWN ignore
Alt+BS ignore
HOME ignore
PGUP ignore
PGDWN ignore
Shift+PGUP ignore
Shift+PGDWN ignore
[ ignore
] ignore
{ ignore
} ignore
BS ignore
Shift+BS ignore
Shift+Ctrl+BS ignore
p ignore
. ignore
, ignore
> ignore
< ignore
ENTER ignore
Shift+HOME ignore
Shift+END  ignore
O ignore
P ignore
i ignore
I ignore
? ignore
` ignore
9 ignore
/ ignore
KP_DIVIDE ignore
0 ignore
* ignore
KP_MULTIPLY ignore
1 ignore
2 ignore
3 ignore
4 ignore
5 ignore
6 ignore
7 ignore
8 ignore
Alt+0 ignore
Alt+1 ignore
Alt+2 ignore
b ignore
d ignore
Alt+v ignore
V ignore
u ignore
#j remapped
J ignore
SHARP ignore
_ ignore
T ignore
f ignore
w ignore
W ignore
e ignore
l ignore
L ignore
ctrl+c ignore
Ctrl+v ignore
DEL ignore
F8 ignore
F9 ignore
g ignore
g-p ignore
g-s ignore
g-S ignore
g-a ignore
g-v ignore
g-t ignore
g-c ignore
g-e ignore
g-l ignore
g-d ignore
g-h ignore
g-w ignore
g-b ignore
g-r ignore
g-m ignore
MENU ignore
ctrl+p ignore

Alt+KP1 ignore
Alt+KP5 ignore
Alt+KP3 ignore

KP1 ignore
KP2 ignore
KP4 ignore
KP5 ignore
KP6 ignore
KP8 ignore
KP9 ignore

Ctrl+KP1 ignore
Ctrl+KP2 ignore
Ctrl+KP3 ignore
Ctrl+KP4 ignore
Ctrl+KP5 ignore
Ctrl+KP6 ignore
Ctrl+KP7 ignore
Ctrl+KP8 ignore
Ctrl+KP9 ignore

Ctrl+KP_END   ignore
Ctrl+KP_DOWN  ignore
Ctrl+KP_PGDWN ignore
Ctrl+KP_LEFT  ignore
Ctrl+KP_BEGIN ignore
Ctrl+KP_RIGHT ignore
Ctrl+KP_HOME  ignore
Ctrl+KP_UP    ignore
Ctrl+KP_PGUP  ignore

#
# Legacy bindings (may or may not be removed in the future)
#
! ignore
@ ignore

#
# Not assigned by default
# (not an exhaustive list of unbound commands)
#

# ? cycle sub-forced-events-only        # display only DVD/PGS forced subtitle events
# ? stop                                # stop playback (quit or enter idle mode)