Debian Codegraph @

resources/scripts/mpv/input.conf

raw
1 # Mouse
2 MOUSE_BTN0 ignore
3 MOUSE_BTN0_DBL cycle fullscreen
4 MOUSE_BTN2 cycle pause
5 #MOUSE_BTN3 ignore
6 #MOUSE_BTN4 ignore
7 #MOUSE_BTN5 ignore
8 #MOUSE_BTN6 ignore
9
10 # Trackpad
11 AXIS_UP ignore
12 AXIS_DOWN ignore
13 AXIS_LEFT ignore
14 AXIS_RIGHT ignore
15
16 # Arrow/navigation keys
17 RIGHT osd-msg-bar seek +5 relative+keyframes
18 LEFT osd-msg-bar seek -5 relative+keyframes
19 SHIFT+RIGHT osd-msg-bar seek +1 relative+exact
20 SHIFT+LEFT osd-msg-bar seek -1 relative+exact
21 CTRL+RIGHT frame-step ; show-text "Frame: ${estimated-frame-number} / ${estimated-frame-count}"
22 CTRL+LEFT frame-back-step ; show-text "Frame: ${estimated-frame-number} / ${estimated-frame-count}"
23
24 UP osd-msg-bar seek +30 relative+keyframes
25 DOWN osd-msg-bar seek -30 relative+keyframes
26 SHIFT+UP osd-msg-bar seek +120 relative+keyframes
27 SHIFT+DOWN osd-msg-bar seek -120 relative+keyframes
28
29 PGUP osd-msg-bar seek +600 relative+keyframes
30 PGDWN osd-msg-bar seek -600 relative+keyframes
31
32 SHIFT+PGUP osd-msg-bar seek +1200 relative+keyframes
33 SHIFT+PGDWN osd-msg-bar seek +1200 relative+keyframes
34
35 ALT+RIGHT sub-seek +1 ; show-text "Sub Seek +1"
36 ALT+LEFT sub-seek -1 ; show-text "Sub Seek -1"
37
38 #ALT+RIGHT add video-pan-x -0.01
39 #ALT+LEFT add video-pan-x +0.01
40 #ALT+UP add video-pan-y +0.01
41 #ALT+DOWN add video-pan-y -0.01
42
43 #META+RIGHT add video-zoom +0.05
44 #META+LEFT add video-zoom -0.05
45 #META+UP add video-zoom +0.05
46 #META+DOWN add video-zoom -0.05
47
48 # ` [1] [2] [3] [4] [5] [6] [7] [8] [9] [0] - =
49 # ~ [!] @ # $ % ^ & * ( ) _ +
50
51 1 add contrast -1 ; show-text "ContrastT: ${contrast}"
52 2 add contrast +1 ; show-text "ContrastT: ${contrast}"
53 3 add brightness -1 ; show-text "Brightness: ${brightness}"
54 4 add brightness +1 ; show-text "Brightness: ${brightness}"
55 5 add gamma -1 ; show-text "Gamma: ${gamma}"
56 6 add gamma +1 ; show-text "Gamma: ${gamma}"
57 7 add saturation -1 ; show-text "Saturation: ${saturation}"
58 8 add saturation +1 ; show-text "Saturation: ${saturation}"
59
60 9 add volume -2 ; show-text "Volume: ${volume}"
61 0 add volume +2 ; show-text "Volume: ${volume}"
62
63 ! cycle ontop
64
65 ` ignore
66 ~ ignore
67 # ignore
68 $ ignore
69 % ignore
70 ^ ignore
71 & ignore
72 * ignore
73 § ignore
74 ± ignore
75
76 # [q] [w] [e] [r] [t] [y] [u] [i] [o] [p] [ ]
77 # [Q] [W] E R [T] [Y] [U] [I] O [P] { }
78
79 Q quit
80 # q script-binding auto_save_state/quit-watch-later-conditional
81
82 w script-message osc-playlist
83 W playlist-shuffle
84 e playlist-prev ; show-text "${playlist-pos-1}/${playlist-count}"
85 E ignore
86
87 r playlist-next ; show-text "${playlist-pos-1}/${playlist-count}"
88 R ignore
89
90 t cycle-values sub-use-margins "yes" "no"
91 T cycle-values ass-force-margins "yes" "no" # does not work with :blend-subtitles
92 CTRL+t cycle-values blend-subtitles "yes" "video" "no"
93
94 y cycle-values stretch-image-subs-to-screen "yes" "no"
95 Y cycle-values stretch-dvd-subs "yes" "no"
96
97 u cycle-values hwdec "auto" "no"
98 U cycle-values vf "format=colorlevels=full" "format=colorlevels=auto" "format=colorlevels=limited"
99
100 i script-binding stats/display-stats
101 I script-binding stats/display-stats-toggle
102 o cycle-values osd-level 3 1
103 O ignore
104 p cycle-values video-rotate 90 180 270 0
105 P cycle-values video-aspect "16:9" "4:3" "2.35:1" "16:10"
106
107 [ ignore
108 ] ignore
109 { ignore
110 } ignore
111
112 # [a] [s] [d] [f] [g] [h] [j] [k] [l]
113 # [A] [S] [D] [F] [G] [H] [J] [K] [L]
114
115 a cycle audio # switch audio streams
116 A cycle-values af "lavfi=[dynaudnorm=f=200:g=5:r=0.1]" "" # dynamic range compression
117 CTRL+a script-binding auto_audio_device/toggle-switching # toggle automatic audio device switching
118
119 s cycle sub # cycle through subtitles
120 S cycle sub-visibility
121 CTRL+s cycle secondary-sid
122
123 d cycle-values window-scale "1.5" "2.0" "3.0" "0.5" "1.0" ; show-text "Scale: ${window-scale}"
124 D cycle edition
125 CTRL+d cycle video
126
127 f cycle fullscreen ; show-text "Scale: ${window-scale}"
128 F vf clr "" ; show-text "Filters cleared"
129
130 g cycle-values video-sync display-resample audio ; cycle-values interpolation yes no ; show-text "Interpolation: ${interpolation} (${tscale})"
131 G cycle-values tscale "linear" "catmull_rom" "mitchell" "bicubic" "oversample" ; show-text "Interpolation: ${interpolation} (${tscale})"
132 CTRL+g cycle-values interpolation no yes ; show-text "Interpolation: ${interpolation} (${tscale})"
133
134 h cycle deinterlace
135 H script-binding autodeint
136
137 j cycle deband
138 J vf toggle "lavfi=[hqdn3d=2.0]"
139
140 K ignore
141
142 l cycle-values loop-file yes no ; show-text "${?=loop-file==inf:Looping enabled (file)}${?=loop-file==no:Looping disabled (file)}"
143 L cycle-values loop-playlist yes no ; show-text "${?=loop-playlist==inf:Looping enabled}${?=loop-playlist==no:Looping disabled}"
144 CTRL+l ab-loop
145
146 # [z] [x] [c] [v] [b] [n] [m] [,] [.]
147 # [Z] X C V [B] [N] [M] [<] [>]
148
149 x script-message osc-chapterlist
150 X ignore
151 c script-message osc-playlist
152 C ignore
153 v script-message osc-tracklist
154 V ignore
155
156 b add speed +0.05
157 B add speed -0.05
158 CTRL+b set speed 1.0
159
160 n add audio-delay +0.10
161 N add audio-delay -0.10
162 CTRL+n set audio-delay 0
163
164 m add sub-delay +0.10
165 M add sub-delay -0.10
166 CTRL+m set sub-delay 0
167
168 , add sub-scale -0.05 # decrease subtitle font size
169 < add sub-scale +0.05 # increase subtitle font size
170 . add sub-pos -1 # move subtitles up
171 > add sub-pos +1 # move subtitles down
172
173 # Adjust timing so that next/prev subtitle is displayed now
174 / sub-step +1 ; show-text "Sub Step +1 (timing adjustment)"
175 ? sub-step -1 ; show-text "Sub Step -1 (timing adjustment)"
176
177 # [esc] [space] [backspace]
178 # [tab] [enter]
179
180 ESC cycle fullscreen
181 SPACE cycle pause
182 IDEOGRAPHIC_SPACE cycle pause
183 TAB cycle mute
184 ENTER show-progress
185
186 BS revert-seek
187 SHIFT+BS set speed 1.0 ; set gamma 0 ; set brightness 0 ; set contrast 0 ; set saturation 0 ; set hue 0 ; show-text "Speed/Gamma/Brightness/Contrast/Saturation/Hue resetted"
188 ALT+BS set video-pan-x 0 ; set video-pan-y 0 ; show-text "Pan resetted"
189 META+BS set video-zoom 0 ; show-text "Zoom resetted"
190
191 # [F1] F2 F3 F4 F5 F6 F7 [F8] [F9] [F10] [F11] [F12]
192
193 F1 script-binding console/enable
194 F8 vf toggle "interpolation=yes,tscale=oversample" ; show-text "Toggled Realtime Motion Interpolation (native) [interpolation=yes,tscale=oversample]" # Soap-opera effect for frame smoothing
195 F9 apply-profile "upscale-lowres-using-GPU-shaders" ; show-text "Applied GPU upscaler shaders"
196 F10 cycle-values speed 0.8 0.6 0.4 0.2 1 # Slow speed
197 F11 cycle-values speed 1.2 1.4 1.6 1.8 2 1 # Faster speed
198 F12 af toggle "lavfi=[loudnorm=I=-22:TP=-1.5:LRA=2]" # Useful audio normalization for low-audio or whispering scenes (can cause annoying background noise amplification)
199
200 # Numpad
201
202 KP0 ignore
203 KP1 ignore
204 KP2 ignore
205 KP3 ignore
206 KP4 ignore
207 KP5 ignore
208 KP6 ignore
209 KP7 ignore
210 KP8 ignore
211 KP9 ignore
212 KP_DEC ignore
213 KP_ENTER ignore
214
215 # Testing at 2023-11-21 09:19:09PM
216
217 # Show Loaded Shaders (for dev testing)
218 ` script-binding sview/shader-view
219
220 # Show progress bar on MOUSE BUTTON 2 double-click
221 # MOUSE_BTN2_DBL show-progress
222
223 # Seek using mouse wheel
224 # Quieter alternative for video playback seeking
225 # (Mechanical keyboard are common these days so this can mindful of other people
226 # living in the same house)
227 SHIFT+WHEEL_UP osd-msg-bar seek +120 relative+keyframes
228 SHIFT+WHEEL_DOWN osd-msg-bar seek -120 relative+keyframes
229 ALT+WHEEL_UP osd-msg-bar seek +30 relative+keyframes
230 ALT+WHEEL_DOWN osd-msg-bar seek -30 relative+keyframes
231 WHEEL_UP osd-msg-bar seek +1 relative+keyframes
232 WHEEL_DOWN osd-msg-bar seek -1 relative+keyframes
233 CTRL+WHEEL_UP frame-step
234 CTRL+WHEEL_DOWN frame-back-step
235
236 # Seek using numbers
237 CTRL+1 osd-msg-bar seek -1 relative+exact
238 ALT+1 osd-msg-bar seek +1 relative+exact
239 CTRL+2 osd-msg-bar seek -2 relative+keyframes
240 ALT+2 osd-msg-bar seek +2 relative+keyframes
241 CTRL+3 osd-msg-bar seek -3 relative+keyframes
242 ALT+3 osd-msg-bar seek +3 relative+keyframes
243 CTRL+4 osd-msg-bar seek -4 relative+keyframes
244 ALT+4 osd-msg-bar seek +4 relative+keyframes
245 CTRL+5 osd-msg-bar seek -5 relative+keyframes
246 ALT+5 osd-msg-bar seek +5 relative+keyframes
247 CTRL+6 osd-msg-bar seek -6 relative+keyframes
248 ALT+6 osd-msg-bar seek +6 relative+keyframes
249
250
251 # mpv keybindings
252 #
253 # Location of user-defined bindings: ~/.config/mpv/input.conf
254 #
255 # Lines starting with # are comments. Use SHARP to assign the # key.
256 # Copy this file and uncomment and edit the bindings you want to change.
257 #
258 # List of commands and further details: DOCS/man/input.rst
259 # List of special keys: --input-keylist
260 # Keybindings testing mode: mpv --input-test --force-window --idle
261 #
262 # Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore').
263 #
264 # Strings need to be quoted and escaped:
265 # KEY show-text "This is a single backslash: \\ and a quote: \" !"
266 #
267 # You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
268 # the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal).
269 #
270 # The default keybindings are hardcoded into the mpv binary.
271 # You can disable them completely with: --no-input-default-bindings
272
273 # Developer note:
274 # On compilation, this file is baked into the mpv binary, and all lines are
275 # uncommented (unless '#' is followed by a space) - thus this file defines the
276 # default key bindings.
277
278 # If this is enabled, treat all the following bindings as default.
279 #default-bindings start
280
281 #MBTN_LEFT ignore # don't do anything
282 #MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen
283 #MBTN_RIGHT cycle pause # toggle pause/playback mode
284 #MBTN_BACK playlist-prev # skip to the previous file
285 #MBTN_FORWARD playlist-next # skip to the next file
286
287 # Mouse wheels, touchpad or other input devices that have axes
288 # if the input devices supports precise scrolling it will also scale the
289 # numeric value accordingly
290 #WHEEL_UP add volume 2
291 #WHEEL_DOWN add volume -2
292 #WHEEL_LEFT seek -10 # seek 10 seconds backward
293 #WHEEL_RIGHT seek 10 # seek 10 seconds forward
294
295 ## Seek units are in seconds, but note that these are limited by keyframes
296 #RIGHT seek 5 # seek 5 seconds forward
297 #LEFT seek -5 # seek 5 seconds backward
298 #UP seek 60 # seek 1 minute forward
299 #DOWN seek -60 # seek 1 minute backward
300 # Do smaller, always exact (non-keyframe-limited), seeks with shift.
301 # Don't show them on the OSD (no-osd).
302 #Shift+RIGHT no-osd seek 1 exact # seek exactly 1 second forward
303 #Shift+LEFT no-osd seek -1 exact # seek exactly 1 second backward
304 #Shift+UP no-osd seek 5 exact # seek exactly 5 seconds forward
305 #Shift+DOWN no-osd seek -5 exact # seek exactly 5 seconds backward
306 #Ctrl+LEFT no-osd sub-seek -1 # seek to the previous subtitle
307 #Ctrl+RIGHT no-osd sub-seek 1 # seek to the next subtitle
308 #Ctrl+Shift+LEFT sub-step -1 # change subtitle timing such that the previous subtitle is displayed
309 #Ctrl+Shift+RIGHT sub-step 1 # change subtitle timing such that the next subtitle is displayed
310 #Alt+left add video-pan-x 0.1 # move the video right
311 #Alt+right add video-pan-x -0.1 # move the video left
312 #Alt+up add video-pan-y 0.1 # move the video down
313 #Alt+down add video-pan-y -0.1 # move the video up
314 #Alt++ add video-zoom 0.1 # zoom in
315 #ZOOMIN add video-zoom 0.1 # zoom in
316 #Alt+- add video-zoom -0.1 # zoom out
317 #ZOOMOUT add video-zoom -0.1 # zoom out
318 #Alt+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 # reset zoom and pan settings
319 #PGUP add chapter 1 # seek to the next chapter
320 #PGDWN add chapter -1 # seek to the previous chapter
321 #Shift+PGUP seek 600 # seek 10 minutes forward
322 #Shift+PGDWN seek -600 # seek 10 minutes backward
323 #[ multiply speed 1/1.1 # decrease the playback speed
324 #] multiply speed 1.1 # increase the playback speed
325 #{ multiply speed 0.5 # halve the playback speed
326 #} multiply speed 2.0 # double the playback speed
327 #BS set speed 1.0 # reset the speed to normal
328 #Shift+BS revert-seek # undo the previous (or marked) seek
329 #Shift+Ctrl+BS revert-seek mark # mark the position for revert-seek
330 #q quit
331 #Q quit-watch-later # exit and remember the playback position
332 #q {encode} quit 4
333 #ESC set fullscreen no # leave fullscreen
334 #ESC {encode} quit 4
335 #p cycle pause # toggle pause/playback mode
336 #. frame-step # advance one frame and pause
337 #, frame-back-step # go back by one frame and pause
338 #SPACE cycle pause # toggle pause/playback mode
339 #> playlist-next # skip to the next file
340 #ENTER playlist-next # skip to the next file
341 #< playlist-prev # skip to the previous file
342 #O no-osd cycle-values osd-level 3 1 # toggle displaying the OSD on user interaction or always
343 #o show-progress # show playback progress
344 #P show-progress # show playback progress
345 #i script-binding stats/display-stats # display information and statistics
346 #I script-binding stats/display-stats-toggle # toggle displaying information and statistics
347 #` script-binding console/enable # open the console
348 #z add sub-delay -0.1 # shift subtitles 100 ms earlier
349 #Z add sub-delay +0.1 # delay subtitles by 100 ms
350 #x add sub-delay +0.1 # delay subtitles by 100 ms
351 #ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio
352 #ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier
353 #Shift+g add sub-scale +0.1 # increase the subtitle font size
354 #Shift+f add sub-scale -0.1 # decrease the subtitle font size
355 #9 add volume -2
356 #/ add volume -2
357 #0 add volume 2
358 #* add volume 2
359 #m cycle mute # toggle mute
360 #1 add contrast -1
361 #2 add contrast 1
362 #3 add brightness -1
363 #4 add brightness 1
364 #5 add gamma -1
365 #6 add gamma 1
366 #7 add saturation -1
367 #8 add saturation 1
368 #Alt+0 set current-window-scale 0.5 # halve the window size
369 #Alt+1 set current-window-scale 1.0 # reset the window size
370 #Alt+2 set current-window-scale 2.0 # double the window size
371 #d cycle deinterlace # toggle the deinterlacing filter
372 #r add sub-pos -1 # move subtitles up
373 #R add sub-pos +1 # move subtitles down
374 #t add sub-pos +1 # move subtitles down
375 #v cycle sub-visibility # hide or show the subtitles
376 #Alt+v cycle secondary-sub-visibility # hide or show the secondary subtitles
377 #V cycle sub-ass-vsfilter-aspect-compat # toggle stretching SSA/ASS subtitles with anamorphic videos to match the historical renderer
378 #u cycle-values sub-ass-override "force" "yes" # toggle overriding SSA/ASS subtitle styles with the normal styles
379 #j cycle sub # switch subtitle track
380 #J cycle sub down # switch subtitle track backwards
381 #SHARP cycle audio # switch audio track
382 #_ cycle video # switch video track
383 #T cycle ontop # toggle placing the video on top of other windows
384 #f cycle fullscreen # toggle fullscreen
385 #s screenshot # take a screenshot of the video in its original resolution with subtitles
386 #S screenshot video # take a screenshot of the video in its original resolution without subtitles
387 #Ctrl+s screenshot window # take a screenshot of the window with OSD and subtitles
388 #Alt+s screenshot each-frame # automatically screenshot every frame; issue this command again to stop taking screenshots
389 #w add panscan -0.1 # decrease panscan
390 #W add panscan +0.1 # shrink black bars by cropping the video
391 #e add panscan +0.1 # shrink black bars by cropping the video
392 #A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" # cycle the video aspect ratio ("-1" is the container aspect)
393 #POWER quit
394 #PLAY cycle pause # toggle pause/playback mode
395 #PAUSE cycle pause # toggle pause/playback mode
396 #PLAYPAUSE cycle pause # toggle pause/playback mode
397 #PLAYONLY set pause no # unpause
398 #PAUSEONLY set pause yes # pause
399 #STOP quit
400 #FORWARD seek 60 # seek 1 minute forward
401 #REWIND seek -60 # seek 1 minute backward
402 #NEXT playlist-next # skip to the next file
403 #PREV playlist-prev # skip to the previous file
404 #VOLUME_UP add volume 2
405 #VOLUME_DOWN add volume -2
406 #MUTE cycle mute # toggle mute
407 #CLOSE_WIN quit
408 #CLOSE_WIN {encode} quit 4
409 #ctrl+w quit
410 #E cycle edition # switch edition
411 #l ab-loop # set/clear A-B loop points
412 #L cycle-values loop-file "inf" "no" # toggle infinite looping
413 #ctrl+c quit 4
414 #DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always
415 #ctrl+h cycle-values hwdec "auto-safe" "no" # toggle hardware decoding
416 #F8 show-text ${playlist} # show the playlist
417 #F9 show-text ${track-list} # show the list of video, audio and sub tracks
418
419 #
420 # Legacy bindings (may or may not be removed in the future)
421 #
422 #! add chapter -1 # seek to the previous chapter
423 #@ add chapter 1 # seek to the next chapter
424
425 #
426 # Not assigned by default
427 # (not an exhaustive list of unbound commands)
428 #
429
430 # ? cycle sub-forced-events-only # display only DVD/PGS forced subtitle events
431 # ? stop # stop playback (quit or enter idle mode)