Skip to content

Mpv portable_config for shaders and custom OSD

butterw edited this page Jan 14, 2024 · 6 revisions

Setup of mpv video player with portable_config

  1. Download mpv and A-pack.
  2. Create a folder named mpv with user write permissions.
  3. Unzip mpv (ex: v0.37-dev) in the mpv folder.
  4. Create the subfolder mpv/s for shaders. You can also use this folder for scripts you intend to load manually (rather than autoload).
  5. Create the subfolder mpv/portable_config for your config files (mpv.conf, input.conf, /scripts, etc).
  6. Run mpv from command-line in the mpv folder with the desired options.

windows64 builds (shinchiro)

ex: mpv-x86_64-v3-20231211-git-566a96f.7z (v3 requires avx2)

Program Options & Properties

  • options can be set in configuration file mpv.conf.
  • Options set at the mpv command line have higher priority.
  • mpv --version (ex: v0.37.0-85-g566a96f2, mpv github commit 566a96f)
  • mpv --list-options : lists all program options with type, data range / possible choices and default values.
  • mpv --scale=help : lists available values for scale option.

Most options can be changed at runtime via R/W properties, ex: via key bindings.

Commands:

  • directly usable in input.conf, can also be called via scripts.
  • to list commands: mpv --input-cmdlist

Key bindings (in portable_config\input.conf)

Keys

  • list and name supported keys: mpv --input-keylist
  • Test keys (by pressing them). List built-in and current keybindings: display mpv --input-test --force-window --idle

Mpv configuration file (portable_config\mpv.conf)