Skip to content
  • Fiona Glaser's avatar
    VFR/framerate-aware ratecontrol, part 2 · c583687f
    Fiona Glaser authored
    MB-tree and qcomp complexity estimation now consider the duration of a frame in their calculations.
    This is very important for visual optimizations, as frames that last longer are inherently more important quality-wise.
    Improves VFR-aware PSNR as much as 1-2db on extreme test cases, ~0.5db on more ordinary VFR clips (e.g. deduped anime episodes).
    
    WARNING: This change redefines x264's internal quality measurement.
    x264 will now scale its quality based on the framerate of the video due to the aforementioned frame duration logic.
    That is, --crf X will give lower quality per frame for a 60fps video than for a 30fps one.
    This will make --crf closer to constant perceptual quality than previously.
    The "center" for this change is 25fps: that is, videos lower than 25fps will go up in quality at the same CRF and videos above will go down.
    This choice is completely arbitrary.
    
    Note that to take full advantage of this, x264 must encode your video at the correct framerate, with the correct timestamps.
    c583687f