mpv keyboard shortcuts and how to remap them in input.conf
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
| Key | Action |
|---|---|
| Space or p | Pause / resume |
| f, double-click | Toggle fullscreen (Esc leaves it) |
| q | Quit |
| Q | Quit and remember the playback position |
| 9 / 0 | Volume down / up |
| m | Mute |
| Ctrl+p | Open mpv's searchable menu (playlist, tracks, chapters and more) |
Seeking and speed
| Key | Action |
|---|---|
| ← / → | Seek back / forward 5 seconds |
| ↓ / ↑ | Seek back / forward 1 minute |
| Shift+arrows | Smaller, 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 |
| Backspace | Reset speed to normal |
| l | Set / clear A-B loop points |
| L | Toggle infinite looping of the file |
| < / > | Previous / next file in the playlist |
Tracks, subtitles and information
| Key | Action |
|---|---|
| j / J | Next / previous subtitle track |
| v | Show / hide subtitles |
| z / Z | Subtitle delay −0.1 s / +0.1 s |
| # | Next audio track |
| Ctrl++ / Ctrl+- | Audio delay +0.1 s / −0.1 s |
| s / S | Screenshot with / without subtitles |
| i / I | Show / toggle the statistics overlay |
| o | Show progress, elapsed time and duration |
| Ctrl+h | Toggle 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-keylistprints every special key name (PGUP,MBTN_LEFT_DBL,KP1and so on).mpv --input-test --force-window --idleopens a window that shows the name and current binding of whatever key you press, without running it.- Modifiers combine as
Ctrl+,Alt+,Shift+andMeta+.
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