How to customize the settings in mpv

Ashwin
Jul 27, 2019
Tutorials, Video, Windows software
|
32

The free media player mpv is an incredible program despite its simple interface. The one thing it may appear to lack is customization when you look over what it has to offer only casually.

It doesn't have  a settings screen but you can customize the settings in mpv. Doing so requires editing so-called CONF files that mpv uses; CONF stands for configuration obviously.

How to customize the settings in mpv

How to customize the settings in mpv volume

According to mpv's documentation, the CONF file is stored in the "\AppData\Roaming\mpv". But in case the folder is empty (like it was for me), you have to manually create a CONF file to begin customizing the settings. You don't necessarily have to create it in that specific folder. There is a better alternative.

Go to the folder where your mpv.EXE is located. Create a new folder in it, and name it "portable_config" and place the file inside that folder. This is where mpv will read your settings from.

Note: You can use the same method for an installed version of mpv too. Or, you can use the one in the Roaming folder.

How to customize the settings in mpv

The next step is to make a new Settings file: you have to create it inside the "portable_config" folder. Use a text editor to create a new document and save it as "mpv.conf". Congratulations, you can now begin tweaking mpv. To make sure this works let's run a simple test.

By default mpv starts at 100% volume, but you can increase it to 130% (by using the 0 key). Let's set the volume and max volume parameters in the mpv.conf file. Paste the following in to the new CONF file and save it.

volume=100
volume-max=150

Now, run mpv and use the zero key to set the max volume, if it goes all the way to 150, you did it right. Similarly, you can add a ton of options to make the player run the way you want it to.

How to customize the settings in mpv portable

How to make mpv remember the last played position

This is one feature which many people may miss coming from VLC or SMPlayer, or any other player which supports it. What people may not know is that mpv does support it, though by default it only remembers the last played position when you manually quit the player using the shortcut "Shift + Q". That's not convenient, especially if you forget to use it.

Fortunately, this can be resolved with a switch that you can add to the CONF file. To do so, paste the following command in it and save the file.

save-position-on-quit

This will save the resume playback data in a sub-folder (inside the portable_config folder) called "watch_later". You don't need to create that though as it is automatically done when you add the switch and play any video.

I recommend going through mpv's sample conf file to further tweak the player. There are tons of options to choose from. Remember, some of these options have values which you can set (for e.g. volume-max=150, you can set it up to 1000), some are switches (yes/no, e.g. fullscreen=yes), while other options merely have to be included in the CONF file (e.g. save on quit). If something doesn't work, make sure you used the correct syntax and try again. It isn't a bad idea to back up the CONF before adding something new in it.

Tip: If you're tired of dragging and dropping a video to mpv, set it as the default video player, or right-click and select open in mpv. This may seem like a no-brainer, but given the lack of a context menu in the program, this is one of the first things you should do.

If you don't like doing all these, try mpv.net, which is a front-end for this amazing media player.

Summary
How to customize the settings in mpv
Article Name
How to customize the settings in mpv
Description
How to customize the settings in mpv. You can use the configuration file to tweak the program. Let's show you how to do it.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Previous Post: «
Next Post: «

Comments

  1. Anonymous said on July 20, 2022 at 7:52 pm
    Reply

    Thank you, this helped me with a problem I had with mpv adhering to my OS’s DPI scaling options. I was able to add an exception to the .conf file and now mpv displays my video files in their native resolution

  2. Urajmal said on November 11, 2020 at 3:12 pm
    Reply

    Is it possible to open a file, with other words, to load a file at the startup with a command in config?

    Thanks!

    1. harvir said on March 13, 2021 at 4:13 pm
      Reply

      yes open with Notepad run as administrator

  3. Anonymous said on June 14, 2020 at 2:32 am
    Reply

    i want change spect ratio ? how

    1. harvir said on March 13, 2021 at 4:11 pm
      Reply

      edit file mpv.conf then type
      –video-aspect-override=

      reference = https://mpv.io/manual/master/#options-video-aspect-override

  4. MeH said on August 7, 2019 at 9:06 pm
    Reply

    The best and most powerful media player on earth is K-Lite Codec Pack (Mega) (Its embeded player is MPC-HC). Other great ones are PotPlayer and SMPlayer. And VLC is too well known to ignore 😉

    1. cibo said on July 30, 2020 at 7:51 pm
      Reply

      I like MPV the best. Everything I need to do can be done by key binds. No clicking through menus.

  5. owl said on July 30, 2019 at 1:24 am
    Reply

    @schrodingercat,
    Your comments are very useful.
    In the official FAQ the unknown usage (practical) is complemented by your comment.
    I just got to know mpv.net and “mpv” recently, so it’s very helpful.
    At the same time, I also noticed the features of the original (mpv).
    I thank you.

    Please also comment on other Tips (useful techniques) that we should know.

    1. schrodingercat said on July 30, 2019 at 3:14 pm
      Reply

      Since you asked. Learn how the settings in mpv(or mpv.net) work by using them. My advise is to try slowly changing the configuration. Most of the settings people use are already available in the mpv.net config editor. Though there are things that are not available in the GUI, and you will be required to edit the mpv.conf and input.conf with a text editor. Always use the manual if you want to know more in depth on how things in mpv work. Use google for anything related to mpv, if you don’t understand the manual. If you want something simple, but don’t know how to achieve it, ask for help in a forum.

      Manual:
      https://mpv.io/manual/master/

      Basic high quality video output profile:

      profile = gpu-hq (goes into mpv.conf)

      Tips & Tricks:
      https://iamscum.wordpress.com/guides/videoplayback-guide/mpv-conf/

      Discussion and third-party support:
      https://www.reddit.com/r/mpv/

      1. owl said on July 30, 2019 at 11:51 pm
        Reply

        @schrodingercat,
        It is very helpful because the reference point for that is clear.
        Thank you very much!

      2. owl said on August 2, 2019 at 3:22 am
        Reply

        @schrodingercat,
        In response to your comment (Tips & Tricks, etc), I have posted a review about “mpv.net” on a portal site introducing free software in Japan.
        Cheers

        Postscript in the user reviews – freesoft100 |
        https://freesoft-100.com/review/comment/17454/
        Evaluation and usage of mpv.net – freesoft100 |
        https://freesoft-100.com/review/mpv-net.html

  6. Man said on July 29, 2019 at 11:30 pm
    Reply

    Just so you know, you don’t need the portable_config folder at all, just put the mpv.conf and/or input.conf file in the root folder next to mpv.exe

  7. TINO said on July 29, 2019 at 10:46 am
    Reply

    How do I disable the volume bar but keep seeing it in the top left corner? https://imgur.com/a/2UkUMBZ

    1. schrodingercat said on July 29, 2019 at 2:05 pm
      Reply

      Just copy & paste no-osd-bar in the mpv.conf

      1. TINO said on July 29, 2019 at 9:38 pm
        Reply

        Thank you!

  8. Dr Know said on July 28, 2019 at 5:22 am
    Reply

    Or just use Potplayer which has proper (and full) customisation.
    No player comes close at the moment (VLC is a few gens behind as usual)

    That said it’s a decent front end for mpv – just lacking against what the best can do

    1. schrodingercat said on July 28, 2019 at 1:56 pm
      Reply

      mpv.net is not lacking. On the contrary, it is more ahead than potplayer and vlc. Try learning on how to use it, before you judge it cause it does not have the clicky GUI you see on the other two players. You will be surprised that using mouse and keyboard shortcuts is the way to go. mpv also has lots of customization. There are guides on the Internet showing what you can achieve by just copying files and/or lines of text.

      1. Dr Know said on July 28, 2019 at 11:52 pm
        Reply

        I have a customised version of Potplayer with many keybinds I find useful.

        Having to trawl through guides to do things is not a good user experience.

        There’s good reasons why GUIs are popular.

      2. schrodingercat said on July 29, 2019 at 1:09 pm
        Reply

        mpv is a good user experience as you want it to be. The media player is meant to be minimalist by design while being extremely functional. mpv.net even has a GUI to modify the keybindings.

  9. ULBoom said on July 28, 2019 at 3:18 am
    Reply

    I wish there was a version of MPC with thumbnail navigation previews, color management and a contrast/brightness/sat/hue context menu that wasn’t buried. Neither MPC-HC nor BE hit all three.

    I continue to use PotPlayer; VLC is equivalent but the cone is creepy. They both can be customized tremendously.

    Can’t see a reason to use any media player without a GUI. SMPlayer works well, the best mpv version I’ve used. Stock mpv or MPV.net work fine but the inconvenience is a deal killer.

    Windows Media Player had color controls that could be added to the bottom of the frame, why they aren’t features in every media player, IDK. Vids are all different, some are unwatchable without some tweaking.

    1. schrodingecat said on July 28, 2019 at 1:50 pm
      Reply

      mpv(and by consequence mpv.net) are already better than potplayer. They are more customizable, more powerful, and extendable. They do what they are meant to which is play/open media files(images, audio and videos). Just because you don’t have a GUI for all the settings, does not mean it’s less functional. mpv is meant to be minimalist by design.

      1. ULBoom said on July 29, 2019 at 9:03 pm
        Reply

        @schrodingecat

        Really? Not having a GUI absolutely makes mpv less useable. I never said it was less capable. Yeah, it’s pretty clear it’s a great minimalist niche product.

      2. schrodingercat said on July 30, 2019 at 7:15 pm
        Reply

        mpv has a pseudo-GUI called on-screen-controller, which is meant to make interaction with player easier for new users. mpv.net goes further ahead and provides a GUI for input and configurations. In the end, the things that actually matter first are playback quality, subtitle rendering and resource usage.

  10. Dilly Dilly said on July 27, 2019 at 7:17 pm
    Reply

    I could launch mpc-be and do all these adjustments along with dozens of others within seconds using the convenience of its UI. imo the only thing that could make mpc-be better would be to update its ui to match modern OS, oh and port it to Linux!

  11. Gerard said on July 27, 2019 at 2:54 pm
    Reply

    mpv is a fork of MPlayer. SMPlayer is a graphical font-end for both MPlayer and mpv; users can select either one in the preferences. I can’t see a reason to use mpv without this user-friendly, highly customizable and cross-platform front-end.

  12. fcrs said on July 27, 2019 at 2:51 pm
    Reply
    1. dark said on July 27, 2019 at 5:05 pm
      Reply

      Another one is MPC-QT which is similar to MPC-HC/BE. You will have to compile it though.

      https://github.com/ahjolinna/mpc-qt

    2. dark said on July 27, 2019 at 5:01 pm
      Reply

      SMPlayer is a GUI front-end for MPV.

      https://www.smplayer.info/

  13. Anonymous said on July 27, 2019 at 2:05 pm
    Reply

    UI is a HUGE part of what makes a program liked by many. Not everyone is interested in Vim-ming every facet of their life.

    This will forever be a niche player for a very specific subset of people.

    1. Anonymous said on July 28, 2019 at 5:51 am
      Reply

      mpv is a popular project, but it’s unknown among end-users.

  14. Leo said on July 27, 2019 at 12:28 pm
    Reply

    As much as I like mpv.net, it’s a hassle to configure and customize. Sticking with mpc-be for now although MPV.net playback performance is second to none.

    1. owl said on July 28, 2019 at 2:14 am
      Reply

      @Leo,
      You seem to misunderstand the topic.
      This topic is about “mpv”.

      “Mpv.net” is a frontend product that provides its GUI (Graphical User Interface).
      mpv.net:
      Windows player similar to the “mpv”, with context menu, settings dialog, key map editor and support for C# and Python extensions.
      mpv.net media player |
      https://mpv-net.github.io/mpv.net-web-site/
      GitHub – stax76/mpv.net: 🎞 mpv.net is a modern media player for Windows that works just like mpv. |
      https://github.com/stax76/mpv.net#features

      By the way, I have been a long-time user of VLC and MPC-BE.
      Recently, I found “mpv.net” at ghacks.net and I am trying it out. I have good feeling on mpv.net and I like it.
      A look at mpv.net, a mpv frontend with Everything integration – gHacks Tech News |
      https://www.ghacks.net/2019/07/05/a-look-at-mpv-net-a-mpv-frontend-with-everything-integration/

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.