mpv keyboard shortcuts and how to remap them in input.conf

Control7 min readUpdated

Keyboard keys highlighting mpv defaults: Space to pause, F for fullscreen, Q to quit, arrow keys to seek, and S for screenshots.

mpv is designed to be driven from the keyboard, and its defaults are sensible once you know them. Below are the bindings from mpv's own default input configuration, grouped by what you're trying to do, followed by how to change them.

The essentials

KeyAction
Space or pPause / resume
f, double-clickToggle fullscreen (Esc leaves it)
qQuit
QQuit and remember the playback position
9 / 0Volume down / up
mMute
Ctrl+pOpen mpv's searchable menu (playlist, tracks, chapters and more)

Seeking and speed

KeyAction
← / →Seek back / forward 5 seconds
↓ / ↑Seek back / forward 1 minute
Shift+arrowsSmaller, exact seeks (1 s left/right, 5 s up/down)
. / ,Step one frame forward / back (pauses)
[ / ]Speed down / up by about 10%
{ / }Halve / double speed
BackspaceReset speed to normal
lSet / clear A-B loop points
LToggle infinite looping of the file
< / >Previous / next file in the playlist

Tracks, subtitles and information

KeyAction
j / JNext / previous subtitle track
vShow / hide subtitles
z / ZSubtitle delay −0.1 s / +0.1 s
#Next audio track
Ctrl++ / Ctrl+-Audio delay +0.1 s / −0.1 s
s / SScreenshot with / without subtitles
i / IShow / toggle the statistics overlay
oShow progress, elapsed time and duration
Ctrl+hToggle hardware decoding
`Open the console

Keys 1–8 adjust contrast, brightness, gamma and saturation in pairs. They are easy to press by accident, which is a common reason for a suddenly "washed-out" picture. Restart mpv to reset them.

Remapping keys with input.conf

Create a file named input.conf in the same folder as mpv.conf: %APPDATA%\mpv\ on Windows (or portable_config), and ~/.config/mpv/ elsewhere. Each line is a key followed by a command. Your lines replace the defaults for those keys, and every other key keeps working.

# arrows up/down change volume instead of seeking a minute
UP    add volume 5
DOWN  add volume -5

# bigger jumps with Ctrl
Ctrl+RIGHT  seek 30
Ctrl+LEFT   seek -30

# mouse wheel seeks instead of changing volume
WHEEL_UP    seek 10
WHEEL_DOWN  seek -10

# disable keys you keep hitting by accident
1  ignore
2  ignore

Lines starting with # are comments. Because of that, the # key itself is written as SHARP.

Finding the right key name

  • mpv --input-keylist prints every special key name (PGUP, MBTN_LEFT_DBL, KP1 and so on).
  • mpv --input-test --force-window --idle opens a window that shows the name and current binding of whatever key you press, without running it.
  • Modifiers combine as Ctrl+, Alt+, Shift+ and Meta+.

Commands worth binding

A few commands that make good custom bindings:

  • cycle-values speed 1 1.25 1.5 2: step through common speeds.
  • cycle-values loop-playlist inf no: repeat a whole folder.
  • add sub-scale 0.1: larger subtitles on the fly.
  • playlist-shuffle: shuffle the current playlist.

Settings that should apply every time, rather than at the press of a key, belong in mpv.conf.

Ready to try it? The homepage has the Windows download and a short setup checklist.

Download Now