||||⚓
Ulysses RS Caballes - MPV Cinema Config
A handcrafted cinema engine for MPV - uniting neural upscaling, HDR tone mapping, and HRTF spatial audio into a single cohesive pipeline. Built for precision. Tuned for immersion.
✓ Vulkan (gpu-next) high-quality video rendering pipeline
✓ Advanced GLSL shader stack: CuNNy (CNN upscaling), SSimSuperRes, Adaptive Sharpen, Depth Reality Boost
✓ HDR tone mapping with contrast recovery (BT.2390)
✓ ICC color-managed playback
✓ HRTF-based spatial audio (SOFAlizer + KEMAR)
✓ Modular profiles for anime, realism, sports, and 8K content
| GPU Class | Resolution | Expected Performance | | ——————————————– | —————– | ——————————————————————————— | | RTX 5090 (next-gen) / Future RX Flagship* | 8K+ → 16K | Ultra-high headroom, full pipeline with the heaviest shader workloads | | RTX 4090 / RX 7900 XTX | 8K | Full pipeline, maximum shaders | | RTX 3080 / RX 6800 XT | 4K→8K | Smooth playback, minor shader tuning may help | | RTX 3060 / RX 6700 XT | 4K | Recommended for full shader pipeline | | GTX 1660 / RX 5600 XT | 1080p→1440p | Use lighter profiles (FSRCNNX-x2) | | Intel Arc (A7xx) | 1080p→1440p | Best with FSRCNNX, reduced shader load recommended | | Intel iGPU / UHD / Iris Xe | 1080p | Limited, use light profiles only |
* AMD equivalent is unconfirmed and may not directly match RTX 5090 performance tier.
The CuNNy-8x32-DS shader profile is optimized for Windows 11 environments and may cause performance issues (lag or dropped frames) on Linux systems with AMD GPUs.
Recommended for Linux/AMD setups:
✓ FSRCNNX-x2_16-0-4-1 → lighter, stable, and cross-platform friendly
✓ CuNNy-4x32 or CuNNy-2x32 → reduced demand with good perceptual quality
✓ Hybrid stacks (FSRCNNX + Adaptive Sharpen / Depth Reality Boost) → balance between speed and sharpness
This ensures smoother playback while preserving visual detail and stability.
This MPV configuration is engineered for viewers who demand cinematic fidelity, artifact-free rendering, and adaptive precision across all content types - anime, films, sports, and 8K HDR.
Every component is tuned for clarity, depth, and realism. Powered by a custom shader pipeline and Lua automation scripts that adapt dynamically to content while preserving cinematic intent.
✓ Custom GLSL pipeline for super-resolution, sharpening, depth, and film emulation
✓ Vulkan-optimized rendering for high-performance playback
✓ Content-aware profiles (anime, realism, sports, 8K)
✓ Lua automation for dynamic shader control and recovery
✓ Clean, modular and remixable architecture
This clip was rendered and played with this configuration, showcasing HEVC Main 10 playback, HDR tone mapping, and full shader fidelity.

Debanding and tone mapping - smooth gradients, lifelike contrast.

Styled subtitles and shader stack delivering cinematic realism.
| Without Config | With Ulysses RS Caballes - MPV Cinema Engine | How | |—————|————————|——————| | Flat colors | Cinematic tone mapping | BT.2390 HDR curve + GAMMA / Perceptual Linearity | | Aliasing artifacts | Neural upscaling | CuNNY-8x32-DS | | Washed HDR | Contrast recovery | Reinhard + debanding | | Weak audio stage | Spatial HRTF audio | SOFAlizer + KEMAR | —
Debanding (fade‑aware, error diffusion dithering)
Tone Mapping (BT.2390 with contrast recovery)
Resampling - 26-tap separable kernel
Adaptive Sharpen - linear-light, curve height tuned, overshoot control
Depth Reality Boost - perceptual depth cues without halos
SOFAlizer (HRTF Virtualization) - Kemar dataset, customized via [main.lua]
EQ Chain - bass reinforcement, midrange cleanup, treble clarity, and subharmonic depth
Dynamics Control - normalization, compression, limiter for safe playback
This configuration includes multiple playback profiles tailored to different content types. Each profile adjusts shaders, scaling, tone mapping, and enhancement strength.
| Shortcut | Function Name | Description |
|---|---|---|
| Ctrl + 1 | clear_default | Reset to baseline configuration. |
| Ctrl + 2 | anime_hdr | Anime HDR preset. |
| Ctrl + 3 | realism | Realism preset. |
| Ctrl + 4 | sports | Sports preset. |
| Ctrl + 5 | debug | Debugging overlays. |
| Key | Action |
|---|---|
| O | Open File |
| Y | YouTube Search |
| H | Playback History |
| K | Keybinds Menu |
| V | Video Settings |
| A | Audio Device Selector |
| S | Subtitle Settings |
| P | Screenshot Menu |
| Shift + S | Screenshot / Saved on Desktop |
shader-recover.lua
Reloads shaders if an error occurs.
profile-auto.lua
Auto-selects profile based on resolution/framerate.
stats-overlay.lua
Displays GPU load, tone mapping status, and active shaders.
subtitle-style.lua
Cinematic subtitle styling.
sofalizer/main.lua
Customized HRTF virtualization. Main Lua script for loading HRTF datasets and applying spatial audio effects.
Download and place datasets in: %APPDATA%\Roaming\mpv\scripts\sofalizer\
HRTF / SOFA Files
✓ Kemar_HRTF_sofa.sofa
KEMAR HRTF dataset (open research license, safe to redistribute with attribution).
✓ SADIE_KEMAR_DFC_256_order_fir_48000.sofa
Official SADIE II Dataset (University of York). For personal/research use only.
AUDIO TEST SAMPLE Files
✓ C2m.wav - Example low-frequency test tone.
✓ C6m.wav - Example high-frequency test tone.
✓ LW8m.wav - Example mid-range audio sample.
Note: This configuration uses MPV in portable mode.
All settings are loaded from the portable_config folder located alongside mpv.exe.
Requirements:
✓ MPV v0.41+
✓ Vulkan‑capable GPU
✓ Windows 11 (recommended)
Download mpv-x86_64-v3 (Shinchiro builds):
‘mpv-x8664-v3(Shinchiro_builds)’
portable_config folder%APPDATA%\MPV\
│
├── mpv.exe
└── portable_config\
├── mpv.conf
├── input.conf
├── profiles.conf
├── script-opts\
├── scripts\
│ └── sofalizer\
│ ├── Kemar_HRTF_sofa.sofa
│ ├── SADIE_KEMAR_DFC_256_order_fir_48000.sofa
│ ├── C2m.wav
│ ├── C6m.wav
│ ├── LW8m.wav
│ └── main.lua
└── shaders\
├── CuNNy-8x32-DS.glsl
├── SSim\
├── Adaptive_sharpen\
└── Depth_reality_boost\
gpu-api=vulkan
| Option | Setting | Effect |
|---|---|---|
| Idle Behavior | idle=yes |
MPV stays open even with no file loaded (useful for drag‑and‑drop). |
idle=no |
MPV closes automatically after playback (traditional media player feel). | |
| On‑Screen Controller (OSC) | osc=no |
Disables the control bar for a cleaner, cinema‑style look. |
osc=yes |
Enables the familiar UI with playback controls. | |
| Window Border | border=no |
Removes title bar for a cinema‑style presentation. |
border=yes |
Restores standard window controls. | |
| Volume Max | volume-max=130 |
Allows boosting volume beyond 100% (use with care to avoid distortion). |
| Add-on | Purpose/Benefit |
|---|---|
| Anime4K | Stylized upscaling for animation content |
| FSRCNNX | Neural network–based upscaling |
| RAVU | High‑precision scaling |
| SVP / Motion Interpolation | Smoother playback for sports and fast motion |
| External LUTs | Custom color grading for cinematic tone |
Instructions on how to enable MPV to directly open and play YouTube streams from a web browser (Applicable only to Firefox-based browsers or on any Firefox based variants):
Floorp browser is highly recommended.ff2mpv (for Windows) from Firefox Browser Add-ons.ff2mpv-master.zipThis configuration is guided on three core principles:
Every shader, parameter, and filter is chosen with intent - no bloat, no placebo settings.
The goal isn’t “sharper” or “brighter,” but truer - emphasizing depth, texture, and natural contrast.
✓ Fully remixable
✓ Clearly documented
✓ Entirely optional
Adopt the full pipeline or integrate only the components you need.
| Practice | Description |
|---|---|
| No cache files | Repository excludes temporary or auto‑generated cache files. |
| No platform clutter | Avoids OS‑specific junk (e.g., .DS_Store, Thumbs.db). |
| Clean folder structure | Organized directories for configs, shaders, and scripts. |
| Human‑readable configs | Config files are concise, documented, and easy to understand. |
| Commented shader chains | Each GLSL filter is annotated for clarity and maintainability. |
| Versioned updates | Clear changelogs accompany every update for transparency. |
| Commit intent | Every commit message documents purpose — no silent changes. |
This project is licensed under the GNU General Public License v3.0. Feel free to fork, adapt, and share.
See the LICENSE file for details.