From 5e27edef16bb7087c7f169e8308753fa56bcbada Mon Sep 17 00:00:00 2001 From: hoelee Date: Mon, 12 Oct 2026 23:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9:=20NVENC=20=E9=BB=98=E8=AE=A4=20prese?= =?UTF-8?q?t=20p6=20->=20p7=EF=BC=88=E4=B8=9A=E4=B8=BB=E5=86=B3=E5=AE=9A?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GPU ASIC 有余量,同一 cq 下每升一档体积更小;x265 保持 medium(三个 worker 并行时 CPU 是瓶颈)。 两个 preset 都可由控制面用 --x265-preset / --nvenc-preset 覆盖,常量只是手跑时的回落值。 --- scripts/library_run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/library_run.py b/scripts/library_run.py index d5d435f..c13644a 100644 --- a/scripts/library_run.py +++ b/scripts/library_run.py @@ -111,8 +111,11 @@ DECODE_CHECK = True CQ_NVENC = 31 # measured: min SSIM 0.989-0.994 at 43-74% of the source video bitrate CRF_X265 = 26 # measured: min SSIM 0.988-0.993 at 34-67% -- 10-22% smaller than NVENC # at matched SSIM. crf24 = the conservative option (min 0.990-0.994, 43-84%) -NVENC_PRESET = "p6" -X265_PRESET = "medium" +NVENC_PRESET = "p7" # owner default (2026-10-12): the GPU ASIC has spare time, and each step +# up this ladder buys size at the same CQ. Overridable per run with --nvenc-preset; the control +# plane passes its own setting, so this constant is only the fallback for a hand-run engine. +X265_PRESET = "medium" # ... and the CPU is the contended resource here (three workers run side +# by side), so the x265 default stays `medium`; --x265-preset / the dashboard can move it. X265_POOLS = 10 # E-cores only (affinity 0x3FF0000) E_CORE_MASK = 0x3FF0000 SSIM_TARGET = 0.985 # per-frame floor vs the source window (480x270 comparison)