Skip to content

Tune variance partition thresholds for low resolutions in RTC - #5256

Draft
jianj-g wants to merge 1 commit into
AOMediaCodec:av2-encfrom
jianj-g:rtc-vbp-tune-thresh
Draft

Tune variance partition thresholds for low resolutions in RTC#5256
jianj-g wants to merge 1 commit into
AOMediaCodec:av2-encfrom
jianj-g:rtc-vbp-tune-thresh

Conversation

@jianj-g

@jianj-g jianj-g commented Aug 12, 2026

Copy link
Copy Markdown

Tune variance-based partition (VBP) thresholds and sub-block split
evaluation for real-time (RTC) encoding mode:

  1. Update threshold_base formula to properly model AV2's exponential
    quantizer step size across QP, replacing the linear AC quantizer scale.
  2. Refine resolution-based threshold scaling across <= 288p, 360p, 720p,
    and 1080p+, and smooth the high-QP scaling slope.
  3. Enhance sub-block variance spread evaluation to avoid unnecessary 8x8
    splits on static/homogeneous blocks while preserving splits for fine
    details and screen content.
  4. Guard 64x64 block splitting based on maximum sub-block variance.

BD-rate and speedup summary:

rtc_derf (20 clips):
avg_psnr: -2.17% (median: -2.29%)
ovr_psnr: -2.13% (median: -2.29%)
vmaf: -3.60% (median: -5.14%)
encoding speedup: +1.25% (median: +0.47%)

rtc (28 clips):
avg_psnr: -3.04% (median: -2.80%)
ovr_psnr: -3.03% (median: -2.79%)
vmaf: -4.97% (median: -5.01%)
encoding speedup: +2.15% (median: +2.55%)

STATS_CHANGED for RTC mode

@jianj-g
jianj-g marked this pull request as draft August 12, 2026 19:08
@jianj-g
jianj-g requested a review from marpan-max August 12, 2026 19:09
@jianj-g
jianj-g force-pushed the rtc-vbp-tune-thresh branch 2 times, most recently from 013571e to 2242cf9 Compare August 28, 2026 14:03
Tune variance-based partition (VBP) thresholds and sub-block split
evaluation for real-time (RTC) encoding mode:

1. Update threshold_base formula to properly model AV2's exponential
   quantizer step size across QP, replacing the linear AC quantizer scale.
2. Refine resolution-based threshold scaling across <= 288p, 360p, 720p,
   and 1080p+, and smooth the high-QP scaling slope.
3. Enhance sub-block variance spread evaluation to avoid unnecessary 8x8
   splits on static/homogeneous blocks while preserving splits for fine
   details and screen content.
4. Guard 64x64 block splitting based on maximum sub-block variance.

BD-rate and speedup summary:

rtc_derf (20 clips):
  avg_psnr:        -2.17% (median: -2.29%)
  ovr_psnr:        -2.13% (median: -2.29%)
  vmaf:            -3.60% (median: -5.14%)
  encoding speedup: +1.25% (median: +0.47%)

rtc (28 clips):
  avg_psnr:        -3.04% (median: -2.80%)
  ovr_psnr:        -3.03% (median: -2.79%)
  vmaf:            -4.97% (median: -5.01%)
  encoding speedup: +2.15% (median: +2.55%)

STATS_CHANGED for RTC mode
@jianj-g
jianj-g force-pushed the rtc-vbp-tune-thresh branch from 2242cf9 to 4df3421 Compare August 28, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants