Skip to content

Instantly share code, notes, and snippets.

@karinco karinco/input.conf
Created Dec 30, 2017

Embed
What would you like to do?
mpv
# mpv keybindings
# Mouse clicks
MOUSE_BTN0 ignore
MOUSE_BTN0_DBL ignore
MOUSE_BTN1 ignore
MOUSE_BTN2 ignore
MOUSE_BTN3 ignore
MOUSE_BTN4 ignore
MOUSE_BTN5 ignore
MOUSE_BTN6 ignore
# Mouse wheels
AXIS_UP add volume 1
AXIS_DOWN add volume -1
AXIS_LEFT ignore
AXIS_RIGHT ignore
# Player Commands
PLAY cycle pause
PAUSE cycle pause
PLAYPAUSE cycle pause
FORWARD seek 5
REWIND seek -5
NEXT playlist-next
PREV playlist-prev
# Standard Commands
SPACE cycle pause ; show-text "${?pause==no:Play}${?pause==yes:Pause}"
#p cycle pause ; show-text "${?pause==no:Play}${?pause==yes:Pause}"
m cycle mute
# l set ab-loop
# l cycle-values loop yes no ; show-text "${?=loop==inf:Looping enabled}${?=loop==no:Looping disabled}"
# L cycle-values loop-file yes no ; show-text "${?=loop-file==yes:Looping enabled (file)}${?=loop-file==no:Looping disabled (file)}"
r cycle-values loop yes no ; show-text "${?=loop==inf:Looping enabled}${?=loop==no:Looping disabled}"
R cycle-values loop-file yes no ; show-text "${?=loop-file==yes:Looping enabled (file)}${?=loop-file==no:Looping disabled (file)}"
Ctrl+r ab-loop
S screenshot video
q quit
Q quit-watch-later
Alt+q quit
Alt+w stop
# Seek
UP osd-msg-bar seek +30 relative+keyframes
DOWN osd-msg-bar seek -30 relative+keyframes
LEFT osd-msg-bar seek -1 relative+exact
RIGHT osd-msg-bar seek +1 relative+exact
SHIFT+UP osd-msg-bar seek +120 relative+keyframes
SHIFT+DOWN osd-msg-bar seek -120 relative+keyframes
SHIFT+LEFT osd-msg-bar seek -5 relative+exact
SHIFT+RIGHT osd-msg-bar seek +5 relative+exact
h osd-msg-bar seek +30 relative+keyframes
l osd-msg-bar seek -30 relative+keyframes
j osd-msg-bar seek +1 relative+exact
k osd-msg-bar seek -1 relative+exact
H osd-msg-bar seek +120 relative+keyframes
L osd-msg-bar seek -120 relative+keyframes
J osd-msg-bar seek +5 relative+exact
K osd-msg-bar seek -5 relative+exact
n osd-msg-bar seek +5 relative+exact
p osd-msg-bar seek -5 relative+exact
N osd-msg-bar seek +10 relative+exact
P osd-msg-bar seek -10 relative+exact
#SPACE osd-msg-bar seek +5 relative+exact
ENTER osd-msg-bar seek +1 relative+exact
# Shift+UP seek 3 exact
# Shift+DOWN seek -3 exact
. frame-step
, frame-back-step
# Speed
[ multiply speed 0.90909091
] multiply speed 1.1
\ set speed 1.0
# Audio delay
#{ add audio-delay -0.10
#} add audio-delay +0.10
ALT+[ add audio-delay -0.10
ALT+] add audio-delay +0.10
# Volume
- add volume -2
= add volume 2
+ add volume 50
_ add volume -50
1 set volume 100
2 set volume 200
3 set volume 300
4 set volume 400
#5 set volume 500
#6 set volume 75
#7 set volume -50
#8 set volume 50
9 set volume 25
0 set volume 50
# Window Commands
# Alt+Number
ALT+1 set window-scale 1
ALT+2 set window-scale 1.5
ALT+3 set window-scale 2
ALT+4 set window-scale 3
ALT+5 set window-scale 0.75
ALT+6 set window-scale 0.5
ALT+- multiply window-scale 0.92
ALT+= multiply window-scale 1.08
Alt+right add video-rotate 90
Alt+left add video-rotate -90
z add video-zoom 0.25
Z add video-zoom -0.25
Alt+h add video-pan-x -0.05
Alt+l add video-pan-x 0.05
Alt+j add video-pan-y 0.05
Alt+k add video-pan-y -0.05
# Video Aspect
# cycle video aspect ratios; "-1" is the container aspect
# <https://github.com/mpv-player/mpv/blob/master/etc/input.conf>
A cycle-values video-aspect "16:9" "4:3" "2.35:1" "-1"
# Alt+s video-aspect 4:3
# Alt+w video-aspect 16:9
f cycle fullscreen
Esc set fullscreen no
# Chapter Commands
# Ctrl+Shift+?
Ctrl+Shift+LEFT add chapter -1
Ctrl+Shift+RIGHT add chapter 1
Ctrl+s show-text "${chapter-list}"
# Title Commands
Alt+Shift+LEFT add disc-title -1
Alt+Shift+RIGHT add disc-title 1
Alt+s show-text "${disc-title-list}"
# Playlist Commands
Alt+Shift+r playlist-shuffle ; show-text "Playlist shuffle"
Alt+Shift+s show-text "${playlist}"
> playlist-next
< playlist-prev
# Track Commands
v cycle video
s cycle sub
a cycle audio
Alt+v cycle sub-visibility
# Show Commands
i show-text "${media-title}\n${path} (${playlist-pos}/${playlist-count})\n${time-pos} / ${duration}(${percent-pos}%)\nLoop: ${loop}\nVolume: ${volume}\nMute: ${mute}"
I show-text "${media-title}\n${path}\n${=file-size} bytes (${file-size})\n${=time-pos} ${=duration}\nChapter: ${chapter} / ${chapters}\nEdition: ${edition} / ${editions}\nTitle: ${disc-title} / ${disc-titles}\nPlaylist: ${playlist-pos} / ${playlist-count}\nWorkingDirectory: ${working-directory}\n\n[Video Info]\n${vid}\nFormat: ${video-format}\nCodec: ${video-codec}\nBitrate: ${=video-bitrate}bps (${video-bitrate})\n${video-params/w} x ${video-params/h} (Aspect: ${video-params/aspect}) x${window-scale}\nFPS: ${fps} (display: ${display-fps})\nDropped: ${vo-drop-frame-count}\nDelay: ${vo-delayed-frame-count} frames\n\n[Subtitle Info]\n${sid}\nDelay: ${sub-delay}\nVisibility: ${sub-visibility}\n\n[AudioInfo]\n${aid}\n${audio-params/samplerate}Hz ${audio-params/channels} ${audio-params/channel-count}ch ${audio-params/format}\nCodec: ${audio-codec} (${audio-codec-name})\nBitrate: ${=audio-bitrate}bps (${audio-bitrate})\nDelay: ${audio-delay}\nA/V Difference: ${avsync}\nVolume: ${volume}% / Mute: ${mute}\n\n[Filters]\nDeinterlace: ${deinterlace}\nFiled Dominance: ${field-dominance}\nColor Matrix: ${colormatrix}\nVideo: ${vf}\nAudio: ${af}\n\n[Hardwares]\nVideo Driver: ${current-vo}\nHardware Rendering: ${hwdec-active} (Detected: ${hwdec-detected})\nDisplays: ${display-names}\nAudio Driver: ${current-ao}\nAudio Device: ${audio-device}\nAuto AO Driver:${audio-out-detected-device}"
t show-text "${track-list}"
o show-progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.