Repository navigation
Upscayl-Next v1.3.1
Upscayl-Next v1.3.1
Performance release focused on dramatically accelerating the Video Upscaling pipeline.
Highlights — Video Upscaling Acceleration
- GPU Hardware Video Encoding (
NVENC/AMF/QSV/VideoToolbox):- Automatically probes and verifies working GPU video encoders on your system (
h264_nvenc,hevc_nvenc,h264_amf,hevc_amf,h264_qsv,hevc_qsv,h264_videotoolbox,hevc_videotoolbox) and enables hardware encoding by default when available. - Optimized software fallbacks use
-preset fastforlibx264/libx265and multi-threaded-row-mt 1 -cpu-used 4 -threads 0forlibvpx-vp9.
- Automatically probes and verifies working GPU video encoders on your system (
- Fast Intermediate Frame Pipeline (Near-Lossless JPEG Default / Lossless PNG Option):
- Switches the default intermediate frame pipeline to near-lossless JPEG (
-q:v 1/-f jpg -c 0/mjpegpipe), eliminating 4K PNG zlib CPU bottlenecks (5–10x faster frame I/O and ~8x smaller temporary storage). - Lossless PNG remains selectable in the Video tab and now uses
-compression_level 1for 3–4x faster extraction.
- Switches the default intermediate frame pipeline to near-lossless JPEG (
- Hardware-Accelerated Frame Decoding (
-hwaccel auto -threads 0):- Uses GPU-assisted decoding during frame extraction with automatic fallback to software decoding for unsupported codecs.
- Double-Buffered Asynchronous Pipeline & Adaptive Chunks:
- Overlaps GPU upscaling of chunk
N+1with asynchronous disk reads, FFmpeg piping, and cleanup of chunkN, removing GPU idle time between chunks. - Expands chunk size to
150frames for JPEG intermediates (down from60), reducing Vulkan/model startup overhead by 2.5x.
- Overlaps GPU upscaling of chunk
- Lossless Consecutive-Frame Deduplication:
- Detects byte-identical consecutive frames (including across chunk boundaries) via SHA-1 hashing and reuses the already-upscaled frame without invoking the GPU again — delivering 2–5x speedups on anime, screen recordings, and static scenes with zero quality loss.
- GPU-Optimal Video Thread Split (
getVideoThreadCount):- Caps concurrent Vulkan GPU inference threads (
proc) at2(or1after a VRAM fallback) to prevent tile-size drops while scaling CPUsavethreads up to6to keep the GPU continuously saturated.
- Caps concurrent Vulkan GPU inference threads (
- Video Tab Controls & Telemetry:
- Displays the detected GPU encoder badge (
NVENC/AMF/QSV/VideoToolbox), toggles for Frame Pipeline, GPU Hardware Encode, and Skip identical frames, plus an 8x slowdown warning if global TTA Mode is enabled in Settings. - Shows used encoder, effective throughput (
fps), and skipped duplicate frame counts upon completion.
- Displays the detected GPU encoder badge (
Verification
npm test: 76/76 unit tests passing (including new tests for GPU thread splitting, adaptive chunk sizing, hardware encoder priority, extract/encode arguments, and cross-chunk frame deduplication).npm run build: TypeScript compilation, locale schema check (ja.json), and Next.js production export verified.