Skip to content

itsmeipg/mpv-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

mpv-config

Elements Video settings Subtitle settings YouTube search YouTube danmaku
Screenshot 2025-04-06 030444 Screenshot 2025-04-06 030601 Screenshot 2025-04-06 030755 Screenshot 2025-04-06 030836 Screenshot 2025-04-06 035153

How to install config/mpv? + more info

Read the wiki.

Theme

For those who don't want to memorize a ton of keybinds. OSD text is removed as much as possible. OSD text appears when adding items to playlist, copying, or pasting in uosc (it's fine imo). If you want OSD completely removed, put video-osd=no in mpv.conf, but console and stats won't work.

Scripts

  • sofalizer Virtual surround sound.
  • uosc The on-screen-controller that creates the entire UI. Modified to remove show-text commands.
  • evafast Hold/click left/right arrow for "hybrid fastforward and seeking." Config uses version that supports rewind. Modified to remove uosc flash-element options (the options were buggy).
  • memo Saves history (search feature slow at first). Modified title and page button text and added separator between items and next/prev buttons.
  • quality-menu Shows web quality versions (video/audio). Modified titles. Removed code that opened uosc video menu if url is nil.
  • thumbfast Shows thumbnails.
  • trackselect Better automatic track selection than mpv's. Change force from false to true, since there is trouble with loading a next file and trackselect not working (tracks not auto selected or audio of the file not loaded) and watch-later option is only set to remember start position anyway so this is fine.
  • celebi Saves properties between mpv instances.
  • mpv-discord "Discord Rich Presence Integration for MPV Media Player."
  • [auto-save-state] Saves video position in multiple scenarios.
  • [file-name-sub-paths] Extend sub-file-paths to include matching file name folder.
  • [uosc-screenshot] Menu to take screenshot with/without subs.
  • [uosc-subtitles] Menu for subtitle settings.
  • [uosc-video-settings] Menu for video settings.

Shaders

Audio filters

The config uses "[dynaudnorm=f=250:g=31:p=0.5:m=5:r=0.9:b=1]" I heard that the way dynaudorm works is that it compresses audio, so change it if you don't like that.

Here are a few audio filters I kind of tested but didn't settle on.

  • "dynaudnorm=g=5:f=250:r=0.9:p=0.5"
  • "[loudnorm=I=-16:TP=-3:LRA=4]"
  • "pan="stereo|FL=0.707FC+0.3FL+0.1BL+0.1LFE|FR=0.707FC+0.3FR+0.1BR+0.1LFE""
  • "pan="stereo|FL < 1.0FL + 0.707FC + 0.707BL|FR < 1.0FR + 0.707FC + 0.707BR""
  • "[loudnorm=i=-14:lra=7:tp=-2]"

Feedback

  • If there is a way to disable OSD messages from uosc without modifying the script, let me know.
  • Let me know if sofalizer should be added to audio filters first (before dynaudorm filter) or if it does not really matter.

Inspiration

High priority (priority order from top to bottom)

  • YouTube danmaku: Add uosc button to enable/disable. Test option modifications during runtime.
  • Create script for A-B loop button so its icon changes along with its state.

Low priority (if you make an issue for it, it will become high priority)

  • Fix delete_unload so it only deletes if for instance unloading from a playlist instead of deleting when exiting mpv (considered an unload event).
  • Option to store submitted search query so it will save after closing and opening menu (with reset_on_close = false) by using search_suggestion.
  • Maybe remove default_profile_name options (can just use override default profile).
  • Make profile selection menu.
  • Update uosc-screenshot and add more more property options + option to reset options when menu closed.
  • Add profile folders.
  • Add gpu-api/context.
  • Add support to apply shader twice/thrice/etc.
  • Test if audio-normalize-downmix has an effect on sofalizer.
  • Edit video-quality script's menu items.
  • Make audio filter selection menu.
  • Add adaptive-sharpen (LUMA).
  • Add film grain strengths.
  • Replace context menu with a custom main menu, combining all my custom uosc scripts.
  • Since unload acts as saving position on quit, do something about how auto-save-state manages save-position-on-quit.
  • Experiment with auto-save-state script stuff and maybe add more options.
  • Experiment with making a yt-dlp.conf.

Bugs/Things that bother me

  • trackselect - "Change force from false to true, since there is trouble with loading a next file and trackselect not working (tracks not auto selected or audio of the file not loaded) and watch-later option is only set to remember start position anyway so this is fine."
  • MBTN_FORWARD and MBTN_BACK do not work with evafast/uosc.
  • No option in uosc to: Disable OSD text, auto scale elements and proximity by resolution.
  • uosc autoload feature does not work when file is already finished playing.
  • If scale-radius is not specified as a value between 0.5-16, it's value is managed by mpv and the property returns 0. It can't go back to "0/whatever value mpv gives it" if changed.

About

My mpv config

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published