View Full Version : mpv scripts: AQPS (Automated Quality Profile Selection), SSO & SAST Utilities


Bo.
21st August 2026, 07:26
Hi everyone!

I’ve put together a small repository with three Lua-scripts for mpv that I’ve been developing and refining for my own setup over a fairly long period. Sharing them freely - feel free to use them :)
A more detailed description and the logic behind each script can be found on GitHub (https://github.com/zatserkovnyy?tab=repositories). Here’s a quick overview:

1. aqps.lua (Automated Quality Profile Selection)
Analyzes video (bitrate via ffprobe, resolution, codec, HDR, fps, filename etc.) and applies custom mpv profiles based on quality. Includes a detailed OSD with info on shaders, tone-mapping, and active profile, togglable with the `HOME` key.

2. sso.lua (Subtitle Style Override)
Quickly overrides forced SSA/ASS subtitle styles to a readable, clean style.

3. sast.lua (Smart Audio & Subtitle Toggle)
Automates track selection, focusing on original audio + native subtitles. *Note: Configured for Russian, but easily customizable.*