Files
universal-video-transcode/scripts
hoelee 57e950da8f fix(gate): an already-playable source gets the 0.990 second tier - 0.995 and the size ceiling are mutually exclusive
Measured on 用超富集植物种植金属 (1280x720@30, 1832 kbps source, 96 s):
  crf 19 under -maxrate 1832k -> 20.6 MB, SSIM mean 0.99192   REFUSED
  crf 14 under the SAME ceiling -> 22.9 MB, SSIM mean 0.99195   five steps, +0.00003
  crf 19 uncapped              -> 40.6 MB, SSIM mean 0.99648   passes at 172% of the source
Reaching 0.995 needs >=125% of the source's own bitrate, which SIZE_CEIL=1.0 forbids, so
every gear below the ceiling produces the same file. Production: 487 FAIL quality rounds,
106.2 h of encoding; 194 of 202 files with two measured rounds moved < 0.0015.

Rule (owner 2026-10-25): a source that already plays everywhere (h264+avc1, aac/mp4a, mp4/m4v/mov)
is a space-reclaim job - the same situation SSIM_MEAN_MIN_REDO already rules on - so when 0.995
is missed it is accepted at SSIM_MEAN_MIN_FALLBACK (0.990), and the provably inert quality+2
retry is skipped. Unplayable sources keep 0.995; a frame-share defect is still refused at any tier.

Also: numpy is now a declared dependency and its absence is an INSTALL PROBLEM, not a silent
fallback - 305 of 418 production run logs were measured with the flat-frame scan skipped.
2026-10-25 03:58:02 +08:00
..