Anki 2.1.28 on Windows: Where to put mpv.conf?

Howdy, I recently updated to Anki 2.1.28 on Windows. mpv now appears to be the default media player. Where should I put my mpv.conf file so that the instance of mpv launched by Anki can find it? I have tried:

  • C:\Program Files\Anki\mpv.conf
  • C:\Program Files\Anki\portable_config\mpv.conf
  • C:\Users\<my_username>\AppData\Roaming\mpv\mpv.conf

When I run C:\Program Files\Anki\mpv.exe from a command prompt, mpv appears to load the config from C:\Program Files\Anki\portable_config\mpv.conf. However, when Anki shows a card that contains audio/video media, the instance of mpv that gets launched does not respect this config.

Many thanks for any help you can offer. Prior to posting this topic, I tried searching the forums/the internet at large, reading https://mpv.io/manual/stable/#files-on-windows, and reading the source code in anki\qt\aqt\sound.py.

1 Like

It should be looking for it in the Anki’s data folder: https://docs.ankiweb.net/#/files?id=file-locations

4 Likes

Confirmed. I use the default Anki data folder on Windows, so putting mpv.conf at the following location solved my issue:

C:\Users\<my_username>\AppData\Roaming\Anki2\mpv.conf

Thank you so much! Also, dude, how did you answer this question like less than a minute after I posted it? We don’t deserve you :slight_smile: .

1 Like

Glad to hear that solved the issue :slight_smile: