Skip to content

fix: map the VP9 interpolation filter to VA-API's order - #383

Merged
devopvoid merged 1 commit into
mainfrom
fix/vaapi-vp9-interp-filter
Oct 15, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/vaapi-vp9-interp-filter

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

The VA-API VP9 decoder passed the interpolation filter as the bitstream codes it, where smooth is 0 and regular 1; VA-API takes libvpx's order, which has them the other way round (FFmpeg maps it the same way). Streams with a fixed filter, as hardware encoders send them, drifted until the next key frame: Intel's VP9 encoder codes every inter frame with the regular filter.

The new test sends a short recorded Intel VP9 stream through a call and compares the last frame of the hardware decoder with libvpx's.

The bitstream codes smooth as 0 and regular as 1, VA-API takes them the other way round. Streams with a fixed filter, such as those of hardware encoders, drifted until the next key frame.
@devopvoid
devopvoid merged commit eed0d4f into main Oct 15, 2026
22 checks passed
@devopvoid
devopvoid deleted the fix/vaapi-vp9-interp-filter branch October 15, 2026 23:45
SendableMetatype added a commit to EduGeyser/webrtc-java that referenced this pull request Oct 18, 2026
Brings in the work upstream added from October 15 to 17: temporal
layers in the VA-API encoders and VP9 spatial layers in the VA-API
decoder (devopvoid#379 to devopvoid#381, devopvoid#383, devopvoid#388); a standalone voice activity
detector, and checks against using a disposed one (devopvoid#394); the removal
of Logging.logThreads (devopvoid#395); upstream's 0.20.0 release and its release
workflow changes (devopvoid#391 to devopvoid#393); and docs (devopvoid#378, devopvoid#382, devopvoid#384 to devopvoid#386,
devopvoid#389, devopvoid#390).

Fork-side adaptations:
- Logging keeps this fork's design, in which thread IDs and timestamps
  come from system properties read at load time. devopvoid#395's thread IDs that
  are always on and its runtime Logging.logTimestamps are left out. Its
  logging test change, which logs at INFO, is taken.
- The common WebRTC patches of devopvoid#394 are applied on every platform, as
  upstream does. The data channels desktop capture patch joins the patch
  list before it is recorded, so the build record covers it too.
- The data channels variant leaves out the standalone voice activity
  detector, and its test carries the media tag.
- The release workflow stays this fork's Gradle one. Upstream's
  Maven-based split into preparation and tag-scoped publication
  (release-publish.yml and the publish action) is left out, and so is
  its release notes link to jrtc.dev, which documents upstream's
  packages.
- The Maven files stay deleted, and the README and the docs' version
  stay this fork's own.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant