首次播放某个模型时会暂停并弹出命令行窗口生成 TensorRT engine,需等待其完成且每个模型只需一次;Linux 版仅支持 NVIDIA GPU,DirectML 只在 Windows 可用;自定义 mpv 设置要写进 mpv-user.conf 而非 mpv.conf,否则更新时会被覆盖
mpv-AnimeJaNai
the-database活跃维护在 mpv 播放器里用轻量超分模型实时把动漫画面放大到 4K,基于 Real-ESRGAN 和 TensorRT 加速,看番时直接获得高清画质。
Real-time anime upscaling to 4K in mpv with lightweight super-resolution models
下载并解压最新 release 压缩包,Windows 打开 mpvnet.exe;Linux 使用同一 release 中的 AppImage 或 linux-x64 压缩包实时 1080p 到 4K 超分推荐 RTX 3060 起步,均衡档建议 RTX 3080,质量档建议 RTX 4090;NVIDIA 走 TensorRT,Windows 上 AMD 与 Intel Arc 走 DirectML,Linux 仅支持 NVIDIA GPU。README 未给出具体显存数值。
用轻量超分模型在 mpv 里实时把动漫 1080p 拉到 4K 的定制播放器
在 mpv 播放器里用轻量超分模型实时把动漫画面放大到 4K,基于 Real-ESRGAN 和 TensorRT 加速,看番时直接获得高清画质。
核心能力
- 用 TensorRT 或 DirectML 后端实时运行 ONNX 超分模型
- 内置 2x_AnimeJaNai V3.1 模型,提供质量、均衡、性能三档预设
- 按 Shift+1/2/3 可在播放中即时切换超分预设
- 按 Ctrl+J 查看当前预设与正在运行的超分模型
- 支持在 Manager 中自定义最多 9 个配置槽与条件链
容易踩的坑
- 3.10.0最新正式版2026-11-09 · 2026-11-09 14:56 UTC
- Add addon support on Windows (preview): install, configure and grant permissions to addons in AnimeJaNai Manager > Addons (@422415)
- Add a GPU choice for upscaling on PCs with more than one GPU (configure using AnimeJaNai Manager); on Auto, DirectML now runs on the high-performance GPU instead of the one driving the main display
- Share one TensorRT download with VideoJaNai and MangaJaNai: TensorRT now installs into a shared per-user store, and the Linux AppImage shrinks from about 480 MB to 160 MB
- Switch to DirectML automatically at startup on AMD and Intel GPUs, or when TensorRT isn't installed, instead of only after opening AnimeJaNai Manager
- Improve DirectML upscaling speed by about 35-40% and RIFE interpolation on DirectML by about 10%
- Improve benchmark accuracy: results now time frames rendered on your display, and submissions record the GPU that ran (@422415)
- Show the GPU running the upscale in the stats overlay (Ctrl+J)
- Fix the player freezing on NVIDIA GPUs when the display mode or refresh rate changes (@422415)
- Fix automatic refresh rate matching switching to the highest refresh rate when a video's frame rate can't be detected at startup, and restore the original refresh rate between playlist entries (@422415)
- Fix mpv.net not following display changes and fullscreen scaling on high-DPI displays (@422415)
- Update mpv to latest upstream
Downloads
Installer Portable Windows Setup .exe .7z Linux AppImage .tar.zst - 3.9.02026-10-27 · 2026-10-27 18:09 UTC
查看更新说明
- Add Temporal Fix (vs_temporalfix by pifroggi) to reduce flicker and shimmer, mostly useful for DVD and other SD sources (configure using AnimeJaNai Manager)
- Fix TensorRT showing as unavailable, component downloads, opening AnimeJaNai Manager (Ctrl+E), and benchmark results on Linux
Downloads
Installer Portable Windows Setup .exe .7z Linux AppImage .tar.zst - 3.8.12026-10-25 · 2026-10-25 23:57 UTC
查看更新说明
- Add a Troubleshooting tab to AnimeJaNai Manager that records a reproduction of a problem and saves a single support ZIP to share when reporting issues (@422415)
- Fix TensorRT engine builds failing on systems with more than one NVIDIA GPU: engines are now built on the GPU mpv renders on, and the installer and updater install TensorRT kernels for every NVIDIA GPU in the system
- Fix solid green or striped output with TensorRT for custom upscaling models exported with fp32 inputs/outputs
- Fix a TensorRT error after an engine build was interrupted (for example by closing the player mid-build); interrupted builds no longer leave a broken engine behind
Downloads
Installer Portable Windows Setup .exe .7z Linux AppImage .tar.zst - 3.8.02026-10-24 · 2026-10-24 21:02 UTC
查看更新说明
- Add support for temporal (multi-frame) upscaling models on TensorRT and DirectML (configure using AnimeJaNai Manager)
- Fix upscaling not working with hardware decoding on 10/12-bit HEVC 4:4:4 videos (#205) (@422415)
- Fix panning signs juddering with GPU subtitle rendering at high display resolutions
- Fix TensorRT engine builds for models with dynamic input shapes (@422415)
- Improve automatic display refresh rate matching for videos with long sections at different frame rates, such as a 29.97 fps opening followed by a 23.976 fps episode (@422415)
- Update to TensorRT 11.4.0, which fixes a TensorRT 11.3 issue that could break RIFE interpolation on Windows
- Update mpv to latest upstream
Downloads
Installer Portable Windows Setup .exe .7z Linux AppImage .tar.zst - 3.7.02026-10-07 · 2026-10-07 19:45 UTC
查看更新说明
- Add experimental automatic display refresh rate matching on Windows (disabled by default, enable using AnimeJaNai Manager > Profiles) (@422415)
- Fix frame presentation order with multiple Vulkan queues (@422415)
- Fix CUDA decoder frames being released before GPU copies finished (@422415)
- Fix stats/script overlays briefly disappearing (@422415)
- Update mpv to latest upstream
Downloads
Installer Portable Windows Setup .exe .7z Linux AppImage .tar.zst
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Upscaling Anime with mpv-AnimeJaNai
Overview
This project provides the 2x_AnimeJaNai ONNX upscaling models, along with a custom build of the mpv video player for Windows and Linux. The player upscales 1080p content to 4K in real time by running these models with TensorRT (NVIDIA) or, on Windows, DirectML (AMD or Intel Arc). While the default configuration upscales using the 2x_AnimeJaNai models, it can be customized to use other ONNX upscaling models.
Join the JaNai Discord server to get the latest news, download pre-release and experimental models, get support and ask questions, share your screenshots (use the s key in mpv), or share your feedback. 日本語も大丈夫です。
Usage Instructions
Ensure your NVIDIA graphics drivers are up to date. Download and extract the latest release archive of mpv-AnimeJaNai. Open the video player at mpvnet.exe. On Linux, download the AppImage or the linux-x64 archive from the same release instead (NVIDIA GPUs only, since DirectML is Windows-only).
On Windows, AMD and Intel Arc GPUs upscale with DirectML, which ships with every install. The player switches to it by itself when TensorRT can't run on your PC; you can also choose the backend in the AnimeJaNai Manager (Ctrl+E).
When playing a video for the first time, a TensorRT engine file will be created for the selected ONNX model. Playback will be paused and a command prompt box will open. Please make sure to wait while the engine is created. Engine creation only needs to happen once per model. Playback will resume on its own when finished.
To confirm upscaling status, press ctrl+J to view upscaling stats. This shows the current profile, and the currently running upscaling models if any.
The player is preconfigured to upscale with the 2x_AnimeJaNai V3.1 models, and makes 3 upscaling profiles available by default. The available profiles are described in more detail below. Any of these profiles can be selected on the fly using the keybinding listed below.
| Profile | Description | Keybinding | Minimum recommended GPU for upscaling 1080p to 4k |
|---|---|---|---|
| Quality | Highest quality model | Shift+1 | RTX 4090 |
| Balanced | High quality model which trades slight quality for major performance gains | Shift+2 | RTX 3080 |
| Performance | Fastest performance model which sacrifices a bit more quality | Shift+3 | RTX 3060 |
The default upscaling profile is the Balanced profile which is recommended for users running an NVIDIA RTX 3080 or higher.
Updating
mpv-AnimeJaNai checks for updates on startup. When a newer version is available, an
on-screen message appears; press Ctrl+U (or use the AnimeJaNai > Install Update menu) to install
it. mpv closes, the update is applied in place, and mpv reopens automatically.
Your customizations are preserved across updates: your profiles (animejanai.conf), your mpv
settings in mpv-user.conf, and any ONNX models you added to animejanai/onnx/ are never
overwritten. Most updates are small because the large GPU runtime is only re-downloaded when it
actually changes. (Your previous input.conf is backed up to input.conf.bak-<version> before the
shipped keybindings are refreshed.)
Note for users upgrading from a version before this updater existed: download the latest release once manually; from then on updates are handled in place.
Customizing Profiles and Other Settings
Automatic Display Refresh Rate (Experimental, Windows)
Enable this option in Manager's Profiles tab and restart the player. With a compatible AJN player build, it scans local video timestamps before playback and chooses one display refresh for the whole episode, including across seeks. Fixed-rate videos prefer an exact or near supported multiple. Mixed-rate videos prefer a common multiple of all measured cadences; otherwise, AJN minimizes estimated timing error weighted by each cadence's duration. Unverified inputs use the highest supported progressive refresh at the current resolution.
Playback pauses with a notice before a needed switch and resumes after the
settling interval; manual pauses are preserved. Matching consecutive episodes
retain their rate. Scanning can add startup time, and your TV may briefly go
black during a change. The original refresh is restored at playback end or
normal player exit. The feature is off by default, does not
interpolate video, and does not change your video-sync setting. A display limited
to 60 Hz is supported, though arbitrary VFR cannot always have perfectly even
presentation on a fixed-refresh display. Windows driver/TV switching behavior
still needs testing on your hardware.
The setting requires all three updated components: Manager, the native mpv
player with display-rate-match, and scripts/animejanai_backend.lua.
Profiles
Upscaling can be further customized using the AnimeJaNai Manager which can be launched by pressing ctrl+E from mpvnet. The Manager allows the setup of up to 9 custom slots and also the use of custom chains, conditional settings based on video resolution and framerate, downscaling to improve performance, and more. The default upscaling profile can also be set in the Manager.
All other mpv settings can be configured by adding them to mpv-upscale-2x_animejanai/portable_config/mpv-user.conf (see the mpv manual for all options). Put your custom mpv options in mpv-user.conf rather than mpv.conf — mpv-user.conf is applied last (so it overrides the defaults) and is never overwritten when you update, so your settings survive upgrades. Likewise, add custom keybindings to mpv-upscale-2x_animejanai/portable_config/input-user.conf (same syntax as input.conf); they override the shipped bindings and are also preserved across updates.
By default, screenshots can be taken with the s key and are stored in mpv-upscale-2x_animejanai/portable_config/screenshots.
2x_AnimeJaNai Models
The 2x_AnimeJaNai models are a collection of real-time 2x models designed specifically for doubling the resolution of HD and SD anime. The current HD models (V3.1) use the SPAN architecture; the SD V1 beta is a Real-ESRGAN Compact model.
2x_AnimeJaNai HD V3 Models
Most HD anime are not produced in native 1080p resolution but rather have a production resolution between 720p and 1080p. When the anime is distributed to consumers via TV broadcast, web streaming, or home video, the video is scaled up to 1080p, leading to scaling artifacts and a loss of image clarity in the source video. The aim of these models is to address these scaling and blur-related issues while upscaling to deliver a result that appears as if the anime was originally mastered in 4K resolution.
The development of the V3 models spanned over seven months, during which over 100 release candidate models were trained and meticulously refined. The V3 models introduce several notable improvements compared to their V2 counterparts, including:
- More faithful appearance to original source
- Improved handling of oversharpening artifacts, ringing, aliasing
- Better at preserving intentional blur in scenes using depth of field
- More accurate line colors, darkness, and thickness
- Better preservation of soft shadow edges
Overall, the V3 models yield significantly more natural and faithful results compared to the V2 models.
2x_AnimeJaNai SD V1 Models
2x_AnimeJaNai SD V1 models are in development. The latest release of mpv-AnimeJaNai includes an early beta model for 2x_AnimeJaNai SD V1. While the 2xAnimeJaNai HD models can also work well for some SD sources, those models were specifically trained to upscale HD anime and don't always work well for SD sources. The SD models are designed to upscale SD anime to appear as if the anime was mastered in HD resolution. With sufficient hardware, these models can be stacked with the HD models to upscale SD anime to 4k resolution.
Benchmarks
Community benchmarks for many GPUs are at benchmarks.animejan.ai. You can add your own from the AnimeJaNai Manager with Run Benchmarks. Older results are on the wiki.
Prerendering Videos using Other Graphics Cards
The 2x_AnimeJaNai ONNX models can be used on a PC with any graphics card to render upscaled videos, even when using graphics cards not fast enough for realtime playback. Please see VideoJaNai to create upscaled video files with a GUI on Windows and Linux. Other options include chaiNNer or VSGAN-tensorrt-docker, which are multiplatform options for Windows and non-Windows users.
Related Projects
- VideoJaNai: Upscale video files
- MangaJaNai GUI: Upscale manga and images
- yosh: Fast manga, comic and image reader
- traiNNer-redux: Train your own upscaling models
Acknowledgements
- Upscale Wiki and associated Discord server
- 422415 for significant assistance in dataset preparation and continuous feedback during development of V2 models
- Community feedback on V1 models
- MPV_lazy and vs-mlrt
- traiNNer-redux
- Dataset Destroyer
- Real-ESRGAN
- OpenModelDB
- getnative and anibin
- vs_temporalfix by pifroggi: temporal fix models