Perceptual auto quality
The engine encodes a test proxy at several quality levels, decodes each result and measures real PSNR against the original. It keeps the smallest file that clears a 40 dB fidelity floor — the point where differences stop being visible.