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)
Automatically analyzes and normalizes video bitrate based on codec, resolution, bit depth, HDR, frame rate, and animation detection to apply custom mpv quality profiles (including special handling for YouTube and network streams). Includes a detailed OSD (HOME key) with real-time media info, bitrate normalization breakdown, active shaders, debanding, and tone-mapping.
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.*
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)
Automatically analyzes and normalizes video bitrate based on codec, resolution, bit depth, HDR, frame rate, and animation detection to apply custom mpv quality profiles (including special handling for YouTube and network streams). Includes a detailed OSD (HOME key) with real-time media info, bitrate normalization breakdown, active shaders, debanding, and tone-mapping.
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.*