How to Apply mpv GLSL Shaders (Anime4K, FSRCNNX, ArtCNN) Permanently to Video & Images
Shaders like Anime4K, FSRCNNX, ArtCNN, SSimSuperRes, and Adaptive-Sharpen make anime and low-res videos look incredible during live playback in mpv—but mpv only renders them on screen while playing. Turning those .glsl passes into a permanent exported .mp4 or .png normally forces you into fragile FFmpeg libplacebo command lines. Visual Enhancer’s GLSL Shaders stage runs standard mpv / libplacebo //!HOOK .glsl shaders natively on any Vulkan GPU (NVIDIA, AMD, or Intel), in both SDR and 10-bit HDR, with live preview and full GUI export—completely free.
快速解答
Open Visual Enhancer in Image or Video mode, enable the GLSL Shaders stage in the Pipeline panel, click Shader File and choose any standard mpv / libplacebo (//!HOOK) .glsl file (such as Anime4K_Upscale_CNN_x2_M.glsl or FSRCNNX_x2_16-0-4-1.glsl), set Intensity (1.00) and Output Scale (2×, 4×, or Target Output Resolution), verify in Preview, and click Render.

Popular mpv and libplacebo GLSL shaders that work great in Visual Enhancer
Visual Enhancer supports standard mpv / libplacebo user shaders that define //!HOOK passes and automatically supplies the color format each shader expects—preserving SDR and 10-bit HDR metadata cleanly.
| Community GLSL Shader Family | Typical Scale | What It Does Best |
|---|---|---|
Anime4K (Restore / Upscale_CNN / Clamp_Highlights) | 1× or 2× | Fast, sharp line thinning, deblurring, and upscaling on 2D anime and cartoons |
ArtCNN (C4F16 / C4F32) | 2× | Modern neural-weight GLSL luma upscaler with clean natural edges on animation and live action |
FSRCNNX (8-0-4-1 / 16-0-4-1) | 2× | Classic crisp 2× neural GLSL luma upscaler for Blu-ray rips, cartoons, and older 720p clips |
| SSimSuperRes / SSimDownscaler | 1× – 2× | Structural-similarity edge preservation with minimal ringing |
Adaptive-Sharpen / CAS .glsl | 1× | Targeted custom edge crisping without haloing flat skies |
Step-by-step: bake an mpv GLSL shader into a video or image
Verify your Vulkan GPU in Settings
Go to Settings → Decoding / Encoding Device and confirm your NVIDIA, AMD Radeon, or Intel Arc/UHD Vulkan GPU is selected. GLSL Shaders run on any Vulkan-capable GPU—no NVIDIA RTX card required.
Load your media and enable GLSL Shaders
Drop your
.mkv,.mp4,.png, or folder of files into Video or Image mode (Image and Video keep independent GLSL settings). Switch on GLSL Shaders in the Pipeline panel.Select your local GLSL shader file
Click Shader File (
*.glsl) and point to your downloaded//!HOOKshader (for example, anAnime4KorArtCNN.glslfile stored on your drive).Dial Intensity and Output Scale
Set Intensity (
0.00–2.00, default1.00; lower to0.50–0.85to blend a strong line-darkening shader smoothly over the original). Pick Output Scale (1×,2×,4×,6×,8×on images;Multiplier1×/2×/4×orTarget Output Resolution480p–8Kon video).Combine with other stages if needed and export
Because GLSL Shaders sits right inside the modular pipeline, you can place Denoising above it for grainy DVD rips, or add FSR / DLSS Frame Generation or Grain below it. Click Preview to inspect lines at
100%zoom, then click Render and export toMP4,MKV(keeps anime ASS/SSA subtitle fonts intact!), orPNG.
Technical rules to know before rendering
- Full-frame GPU texture limit (no tiling): Unlike Standard Upscale, custom
.glslshaders process the full frame at once without tiling. Stay within your GPU’s maximum texture size (4Kand8Krun comfortably on modern GPUs; avoid extreme16,000+ pxoutputs in a single GLSL pass). - SDR & 10-bit HDR support: GLSL Shaders works natively on both SDR and 10-bit HDR media without stripping HDR metadata—remember to check Preserve / Export 10-bit HDR if your source is HDR.
- Shader compatibility: Use standard
mpv/libplacebouser shaders containing//!HOOKdirectives. DirectX.fxReShade shaders belong in the ReShade stage instead—see How to Apply ReShade to Video and Images.
常见问题
- Does Visual Enhancer bundle Anime4K or FSRCNNX GLSL files automatically?
- You load any local
mpv / libplacebo//!HOOK.glslfile from your PC via Shader File. Download official releases from the shader authors’ repositories (such as Anime4K, ArtCNN, or FSRCNNX) and point Visual Enhancer straight to the.glslfile. - Why use Visual Enhancer instead of FFmpeg libplacebo CLI scripts?
- You get live visual preview, an Intensity blend slider (
0.00–2.00), automatic color-format adaptation, batch queues, built-in NVENC/AV1/MKV subtitle preservation, and the ability to chain Denoising, Coloring, Frame Generation, or Grain in one render pass. - Can I use GLSL Shaders on an AMD Radeon or Intel Arc GPU?
- Yes. GLSL Shaders runs over Vulkan and works on NVIDIA, AMD, and Intel GPUs for free.
- When should I choose a GLSL shader over AI Advanced Upscale (VisionNext or RazorNext)?
- Choose GLSL Shaders (
Anime4K/ArtCNN/FSRCNNX) when you want blazing-fast free GPU rendering, exact community mpv look matching, or clean 2D anime line work. Choose AI Advanced (VisionNext/RazorNext) when heavily degraded 480p footage needs full neural texture synthesis.
Bake mpv GLSL shaders permanently into MP4, MKV, or PNG
Run Anime4K, FSRCNNX, and ArtCNN //!HOOK shaders on any Vulkan GPU with live preview and full subtitle preservation in Visual Enhancer.
更多指南
浏览全部指南Keep pixel art razor-sharp with integer Nearest scaling, or render mpv .glsl shaders like Anime4K and AI line-art upscalers directly to 4K files.
Render ReShade .ini presets and custom .fx shaders onto photos and videos—complete with MoGe-2 AI depth maps for DOF, ambient occlusion, and fog.
No NVIDIA RTX card? Use Vulkan Standard upscaling, FSR 3 Frame Generation with hardware encoding, DirectML Lucid 2, ROCm/XPU AI models, ReShade, and Superior Studio on AMD and Intel GPUs.
Turn OBS MKV recordings into MP4, shrink massive 4K ProRes/H.264 files with H.265 or AV1 hardware encoding, and control exact VBR bitrates locally.