mpv.conf explained: a practical starter configuration
Almost everything about mpv's behaviour can be changed in one plain-text file. Nothing has to be set, so the hard part is knowing where the file goes and which few lines are worth adding. This guide gives you both.
Where mpv.conf lives
mpv never creates a config file for you. You create a text file named mpv.conf in one of these places:
| System | Location |
|---|---|
| Windows | %APPDATA%\mpv\mpv.conf |
| Windows, portable | portable_config\mpv.conf in the same folder as mpv.exe |
| Linux, macOS, BSD | ~/.config/mpv/mpv.conf |
On Windows, paste %APPDATA%\mpv into File Explorer's address bar. If the folder doesn't exist, create it. If a portable_config folder exists next to mpv.exe, mpv loads configuration only from there and ignores %APPDATA%.
Notepad and Explorer can quietly save the file as mpv.conf.txt. Turn on View › Show › File name extensions in Explorer and check the real name.
How the syntax works
Each line is option=value, the same options you could pass on the command line but without the leading --. So --keep-open=yes becomes keep-open=yes. Everything after a # is a comment. Options that are simple switches take yes or no.
You can also group options into profiles: a name in square brackets followed by its options. Apply a profile with profile=name. mpv ships with built-in profiles such as fast and high-quality.
A starter mpv.conf
Copy this, then delete anything you disagree with. Every line uses a documented mpv option:
# ---- general ----
# stay on the last frame instead of closing the window
keep-open=yes
# remember the position of every file you close
save-position-on-quit=yes
# never open a window larger than 90% of the screen
autofit-larger=90%x90%
# ---- video ----
# sharper scaling; costs more GPU time
profile=high-quality
# decode on the GPU where mpv considers it safe
hwdec=auto
# ---- audio ----
alang=en,eng
volume-max=150
# ---- subtitles ----
# also load subtitle files whose names merely contain the video name
sub-auto=fuzzy
slang=en,eng
# ---- screenshots ----
screenshot-format=png
screenshot-directory=~~desktop/
What each setting does
Playback behaviour
- keep-open=yes: by default mpv closes when a file ends. This keeps the last frame on screen.
- save-position-on-quit=yes: every file resumes where you stopped. Without it, only Shift+Q saves the position.
- autofit-larger: stops 4K files from opening a window bigger than your screen.
Picture
- profile=high-quality: switches on higher-quality scaling and related settings. On weak integrated graphics it can cause dropped frames. Remove it if playback stutters, or try
profile=faston very old hardware. Runmpv --show-profile=high-qualityto see exactly what it changes. - hwdec=auto: uses hardware decoding when a method mpv considers reliable is available. The hardware decoding guide explains how to check it.
Language and subtitles
- alang / slang: preferred audio and subtitle languages, in priority order, as language codes.
- sub-auto=fuzzy: the default (
exact) only loadsmovie.srtformovie.mkv. Fuzzy also picks upmovie.en.forced.srtand similar names.
Screenshots
- screenshot-directory=~~desktop/:
~~desktop/is mpv's shortcut for your desktop folder. Press s during playback to save a frame.
Using your own profiles
Profiles let you switch groups of settings at once. For example, a "battery" profile for a laptop:
[battery]
profile=fast
hwdec=auto
Start mpv with --profile=battery when you're unplugged. Keep the main section above any profile sections. Lines that come after a [name] header belong to that profile.
Testing changes
mpv reads the file each time it starts, so close and reopen the player after editing. On Windows, run mpv.com from a terminal instead of mpv.exe to see messages. A typo produces an error naming the option, which is the fastest way to catch mistakes. Remap keys in a separate file, input.conf, covered in the keyboard shortcuts guide.
Ready to try it? The homepage has the Windows download and a short setup checklist.
Download Now