배우기로 돌아가기

Image & Video

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.

Visual EnhancerWindows 10 & 11
Split-frame anime comparison showing soft 720p source lines on the left enhanced with crisp Anime4K mpv GLSL shader line reconstruction on the right

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 FamilyTypical ScaleWhat 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 / SSimDownscaler1× – 2×Structural-similarity edge preservation with minimal ringing
Adaptive-Sharpen / CAS .glsl1×Targeted custom edge crisping without haloing flat skies

Step-by-step: bake an mpv GLSL shader into a video or image

  1. 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.

  2. 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.

  3. Select your local GLSL shader file

    Click Shader File (*.glsl) and point to your downloaded //!HOOK shader (for example, an Anime4K or ArtCNN .glsl file stored on your drive).

  4. Dial Intensity and Output Scale

    Set Intensity (0.00–2.00, default 1.00; lower to 0.50–0.85 to blend a strong line-darkening shader smoothly over the original). Pick Output Scale (1×, 2×, 4×, 6×, 8× on images; Multiplier 1×/2×/4× or Target Output Resolution 480p–8K on video).

  5. 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 to MP4, MKV (keeps anime ASS/SSA subtitle fonts intact!), or PNG.

Technical rules to know before rendering

  • Full-frame GPU texture limit (no tiling): Unlike Standard Upscale, custom .glsl shaders process the full frame at once without tiling. Stay within your GPU’s maximum texture size (4K and 8K run comfortably on modern GPUs; avoid extreme 16,000+ px outputs 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 / libplacebo user shaders containing //!HOOK directives. DirectX .fx ReShade 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 .glsl file 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 .glsl file.
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.

더 많은 가이드

모든 가이드 보기