Skip to content
SuperklokPublic

About

The BEST realistic 4K video playback experience in the world! This will completely transform your MPV Player so it can rival the highest quality video players in existence. (Optimized for Nvidia)

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’₯ UltraMPV v2.0.0 πŸ’₯


The BEST realistic 4K video playback experience in the world!


πŸ—οΈ INSTALLATION GUIDE

Carefully follow all steps in this guide to completely transform your MPV Player so it can rival the highest quality video players in existence. (Optimized for Nvidia)

➑️

1. Browse to the location on your PC where you would like the 100% self-contained fully portable UltraMPV installation to live. Open a Command Prompt inside that folder by clicking in the Address Bar at the top, typing cmd, and pressing Enter. This will open a Command Prompt terminal directly inside your desired installation folder.


➑️

2. Download UltraMPV from the OFFICIAL GitHub repository by entering the following code into the Command Prompt terminal to download the latest version of UltraMPV:

gh repo clone Superklok/UltraMPV

➑️

3. Once the GitHub command is finished running, an UltraMPV\ folder will appear in your installation directory. Open the UltraMPV\UltraMPV folder, right-click the fully automated ultrampv-updater.bat file, and run as administrator to run the UltraMPV installer/updater.


➑️

4. The terminal will automatically run through all the necessary UltraMPV installation steps, then it will close on its own once everything is correctly installed/updated.


➑️

5. Locate and right-click the mpv-register.bat file then run as administrator so that Windows adds MPV Player to the context menu when you're playing media files on your computer.

⚠️ NOTE: You must re-run mpv-register.bat as administrator whenever you move or rename your UltraMPV folder. Because UltraMPV operates as a localized, portable suite, Windows cannot automatically track its location like a traditional program utilizing a standard installer.


➑️

6. Double-click mpv.exe to open the MPV player. The player should open and stay open with a black screen. This indicates you have installed the proper build of MPV Player for your system.


7. Open a video file with MPV Player by double-clicking the video, dragging the file on top of an opened MPV Player window, or by using the mpv command in the terminal along with the video URL (for example, mpv "https://www.youtube.com/watch?v=6cG6HLHDzhI"). Once the video is playing, press the backtick key (`) to open the MPV Player terminal log, then make sure there are no red or yellow errors during playback.



DONE!



πŸ–₯️ Command-Line Usage Setup Guide (Optional)

Because UltraMPV operates as a fully sandboxed, portable suite, it does not invasively modify your Windows system environment variables or PATH out of the box.


If you wish to execute UltraMPV from any terminal window globally:


1. Copy the absolute path to your UltraMPV/ root folder where mpv.exe resides (for example, C:\Folder\UltraMPV\UltraMPV).


2. Press the Windows Key, type environment variables, and press Enter.


3. Click Environment Variables... at the bottom right.


4. Under User variables (top box), select Path and click Edit....


➑️

5. Click New, paste your UltraMPV folder path, and click OK to save.


➑️

You can now open a fresh terminal anywhere on your computer and type mpv "https://www.youtube.com/watch?v=6cG6HLHDzhI" or mpv video.mp4 to stream or play local files instantly!



πŸ“Ί UltraMPV Configuration Summary

Designed explicitly for the Windows and NVIDIA ecosystem, UltraMPV is effectively the WORLD'S BEST configuration for rendering real human video content on fixed 4K 60Hz displays. By engineering a sophisticated synergy between low-level internal performance parameters and high-fidelity external shaders, this project establishes the absolute gold standard for realistic, true-to-life 4K playback.


Unlike static high-quality templates that drain your system resources, UltraMPV features Dynamic Profile Logic that adapts to your media in real time. It intelligently deploys advanced Chroma reconstruction via CfL_Prediction to mathematically recover lost color detail in sub-4K content. The moment you play native 4K video, the engine instantly flushes unnecessary upscaling shadersβ€”preventing wasted GPU overhead and ensuring frame-perfect, zero-compromise playback.


πŸ“œ Feature List

  • Full Out-of-the-Box Portability:

    UltraMPV is 100% self-contained and fully portable! Configuration trees, shaders, scripts, screenshots, and video clips all live neatly within the application folder rather than littering your system's %APPDATA% directory.

  • Lossless Video Clipping Engine (r Key):

    Cut high-fidelity segments from your local videos instantly at native resolution using a lightning-fast background FFmpeg stream copier. No re-encoding, zero performance lag, and pixel-perfect results saved directly into portable_config/clips/.

  • Streamlined Automated Core Updater:

    The ultrampv-updater.bat installer has completely redesigned the UltraMPV installation process so that it automatically structures your folder trees and updates your core player binaries, decoders, and yt-dlp scrapers in the background without overwriting your custom configuration tweaks or user data.

  • Cascade Processing Architecture:

    Utilizes an efficient, pre-appended cascade design (glsl-shaders) that initializes core shader blocks on startup rather than forcing resource-heavy compilation steps mid-stream. Lower-resolution pipelines step down seamlessly via explicit cache resets (glsl-shaders-clr) only when entering 4K spaces, completely neutralizing thread stalls and window freezing when transitioning between video sizes.

  • Ghosting-Free Motion Cadence:

    The synchronized pairing of video-sync=display-resample and tscale=oversample provides precise frame-step matching. By matching frame delivery to display timings without using artificial frame-blending or temporal interpolation filters, this pipeline preserves 100% texture and skin-pore sharpness during fast panning shots while completely eliminating 24p judder on fixed 60Hz panels.

  • SSimSuperRes Structural Super-Resolution:

    Bypasses artwork-trained, edge-doubling neural models (like FSRCNNX or NNEDI3) which cause an artificial "oil painting" or plastic look on human subjects. Instead, SSimSuperRes.glsl works via downscaling feedback loops, continually comparing the scaled frame against the source data to preserve authentic textural realism, skin pores, fine wrinkles, and background film grain on sub-4K masters.

  • Codec-Aware Bitrate Debanding:

    A reactive anti-banding system segments files by inspecting raw bit-budgets per compression standard (H264 >= 15M, HEVC >= 8M, AV1 >= 6M, VP9 >= 8M). It forces a non-destructive reference pass (iterations=1) on high-fidelity files to protect original grain maps, but automatically engages an aggressive pass (iterations=3, threshold=45) when compressed, low-bitrate streams are detected.

  • Spatial Error-Diffusion Dithering:

    Replaces basic, patterned ordered dithering arrays with advanced spatial distribution algorithms (dither=error-diffusion). This math engine pushes rounding errors to neighboring pixels in a fluid, non-repeating pattern, completely eliminating macro-gradients and color banding across uniform areas like smooth skin tones and uniform backgrounds.

  • Unified Vulkan Zero-Copy Rendering:

    Migrates the playback pipeline natively to high-performance Vulkan (gpu-api=vulkan and gpu-context=winvk). This anchors rendering directly inside the Windows graphics swapchain, providing low-overhead decoding, stable frame rendering, and clean presentation timing on massive 4K UHD masters.

  • CfL_Prediction Chroma Reconstruction:

    Deploys a high-accuracy, luma-guided prediction model (CfL_Prediction.glsl) that uses the video's high-resolution brightness channel to reconstruct missing color information. Mapping color boundaries directly to luminance detail eliminates color bleeding and tightens color accuracy around eyes, lips, and fast-moving human silhouettes.

  • SSimDownscaler Perceptual Reduction:

    Employs structure-similarity models (SSimDownscaler.glsl) to downscale 4K assets onto lower-resolution displays (like 1440p or 1080p monitors). The algorithm preserves localized contrast and fine specular highlights, rendering a downscaled image that holds true to the master file.

  • Purist Adaptive Edge Sharpening:

    Integrates a high-precision adaptive-sharpen.glsl pass inside the native 4K and downscaling loops to counteract physical display anti-aliasing and lens softening. By analyzing localized spatial contrast, it sharpens fine detailsβ€”like hair strands and poresβ€”without introducing edge halos or boosting image noise.

  • Native 60fps Performance Bypass:

    Tracks incoming media framerates dynamically. It instantly shuts down the oversample engine (interpolation=no) when native 60fps media is opened, preventing processing artifacts and keeping system overhead low on sports, gameplay, or high-framerate action content.

  • Silicon-Level H.264 Driver Failsafe:

    Dynamically intercepts H.264 video streams on initialization and routes them away from broken NVIDIA Vulkan driver pathways, safely executing them via native hardware CUDA channels (hwdec=nvdec). This completely prevents unwatchable macroblock corruption while maintaining hardware processing stability.



πŸ› οΈ Custom Controls & Navigation

UltraMPV features an optimized, high-precision keyboard binding matrix (input.conf) specifically designed for frame-accurate tracking and analysis of high-motion 4K 60fps real human video footage and live streams.

⏱️ Micro-Seeking (Precision Navigation)

Standard media players rely on "fuzzy" 5-to-10 second seeking loops that drop you onto variable keyframes. UltraMPV enforces hardware-level exact millisecond alignment.

  • β†’ (Right Arrow): Advances the video by exactly 1 second.
  • ← (Left Arrow): Reverses the video by exactly 1 second.

⏩ Standard Seeking Fallbacks

When you need to cross larger timeline distances quickly without losing precision, use the modifier layer.

  • Shift + β†’: Advances the video by exactly 5 seconds.
  • Shift + ←: Reverses the video by exactly 5 seconds.

🎞️ Frame-Perfect Analysis

For deep analysis of movement, capturing microexpressions, selecting the perfect video thumbnail, or observing fast-action changes, step through individual video frames with zero performance stutter.

  • ↑ (Up Arrow): Advances the video forward by exactly 1 frame.
  • ↓ (Down Arrow): Steps the video backward by exactly 1 frame.

🎬 Lossless Video Clipping

A simple, zero-lag hotkey toggle that handles high-fidelity local file video clip creation, saving directly to your portable_config/clips/ folder.

  • r Key: Toggles local file clip recording on/off.


⚠️ PLEASE NOTE! ⚠️

Hardware Optimization & Performance Metrics:

This configuration is specifically engineered for high-performance setups utilizing desktop NVIDIA graphics hardware (such as the RTX 5070 Ti). Combining SSimSuperRes.glsl and CfL_Prediction.glsl via a continuous Vulkan cascade pipeline, alongside adaptive-sharpen.glsl in 4K spaces, places a heavy workload on the GPU compute planes.

To audit your real-time performance, press Shift + I during playback, then hit 2 to view your Frame Timings. To ensure smooth, stutter-free playback, your "Estimated" and "Measured" compute times must remain safely below your monitor's physical refresh interval (for example, < 16.6ms for a 60Hz panel or < 6.9ms for a 144Hz panel). If you experience dropped frames, ensure your graphics card is not entering into a power-saving throttling mode.

Automated Spatial Dithering Handshake:

This setup relies on reference-grade spatial distribution mapping (dither=error-diffusion). By default, the configuration uses dither-depth=auto, which instructs mpv to dynamically query the active Windows DXGI graphics swapchain on the fly. The engine will automatically deploy a 10-bit or 8-bit error-diffusion shader pattern to match the physical capabilities of your active monitor.

If you choose to hardcode this setting (e.g., dither-depth=10), you must verify that your Windows Display Settings or NVIDIA Control Panel is actively transmitting a true 10-bit color container signal to that monitor. Forcing a 10-bit rendering pipeline into a monitor running an active 8-bit connection will create color banding and micro-gradients across uniform human skin tones.

NVIDIA Full Dynamic Range Configuration:

Open your NVIDIA Control Panel and navigate to Change Resolution. Scroll down and guarantee that your Output Dynamic Range is explicitly toggled to Full (0-255) rather than Limited (16-235). Leaving this driver setting on Limited forces the GPU to compress video data packets, crushing deep shadow detail and clipping specular highlights, which will make your advanced configuration look flat and washed out.

Display Context Toggling & SDR Tone-Mapping:

This profile is highly optimized out of the box to pass raw high-dynamic-range metadata directly to the modern Windows DXGI HDR swapchain using target-colorspace-hint=yes.

However, if you are viewing HDR content on a standard dynamic range display (SDR monitor), you should open mpv.conf and manually uncomment the target peak variable in your main configuration block by removing the leading hash mark so that it reads target-peak=300. For absolute reference accuracy, adjust that numerical value to match the exact, measured peak luminance nits specification of your specific panel model.

Required Shaders Folder Layout:

For this build to initialize without fatal errors, you must download the necessary assets and place them directly in the root of your local configuration directory. Do not use nested subfolders. Ensure your directory structure is organized precisely as follows:

πŸ“ UltraMPV/                   (Main Application Root Folder)
  β”œβ”€β”€ πŸ“„ mpv.exe               (Automatically Deployed Via Updater)
  β”œβ”€β”€ πŸ“„ ffmpeg.exe            (Automatically Deployed Via Updater)
  β”œβ”€β”€ πŸ“„ yt-dlp.exe            (Automatically Deployed Via Updater)
  β”œβ”€β”€ πŸ“„ mpv-register.bat      (Automatically Deployed Via Updater)
  β”œβ”€β”€ πŸ“„ mpv-unregister.bat    (Automatically Deployed Via Updater)
  β”œβ”€β”€ πŸ“„ ultrampv-updater.bat  (UltraMPV Core Updater Executable Wrapper)
  β”œβ”€β”€ πŸ“„ ultrampv-updater.ps1  (UltraMPV Background Automated API Script Engine)
  └── πŸ“ portable_config/      (Enables Self-Contained Portable Mode)
        β”œβ”€β”€ πŸ“„ mpv.conf        (UltraMPV Configuration & Auto-Profiles)
        β”œβ”€β”€ πŸ“„ input.conf      (UltraMPV Custom keybindings)
        β”œβ”€β”€ πŸ“ screenshots/    (Auto-Generated Pixel-Perfect PNG Renders)
        β”œβ”€β”€ πŸ“ clips/          (Auto-Generated Lossless MP4 Video Clips)
        β”œβ”€β”€ πŸ“ scripts/
        β”‚     └── πŸ“„ clip.lua  (UltraMPV Clipping Script)
        └── πŸ“ shaders/        (Advanced GLSL Real-Time Upscaling Shaders)
              β”œβ”€β”€ πŸ“„ CfL_Prediction.glsl
              β”œβ”€β”€ πŸ“„ SSimSuperRes.glsl
              β”œβ”€β”€ πŸ“„ SSimDownscaler.glsl
              └── πŸ“„ adaptive-sharpen.glsl


🍿 You're all set!



βš–οΈ License

This project is licensed under the MIT License. Third-party shaders and bundled binaries are subject to their own respective upstream licenses, detailed in the THIRD-PARTY-LICENSES file.


πŸ“Ό Third-Party Shaders & Utilities Download Links



πŸ’‘ If you find this project useful, reach out via Upwork/Contra to hire Superklok Labs today!

About

The BEST realistic 4K video playback experience in the world! This will completely transform your MPV Player so it can rival the highest quality video players in existence. (Optimized for Nvidia)

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages