Repository navigation
perf(media): encode lossless alpha Normalize at libvpx's fastest speed - #383
Merged
Merged
Conversation
Lossless VP9 decodes to the same pixels at every speed setting, so the alpha encode now passes -row-mt 1 -deadline realtime -cpu-used 8. On a 2 s 1080x1920 alpha clip this takes the encode from 7.65 s to 0.88 s with identical decoded frames. Reported in #382.
SanHsien
pushed a commit
to SanHsien/hypit
that referenced
this pull request
Oct 24, 2026
hypit-ai#383) Lossless VP9 decodes to the same pixels at every speed setting, so the alpha encode now passes -row-mt 1 -deadline realtime -cpu-used 8. On a 2 s 1080x1920 alpha clip this takes the encode from 7.65 s to 0.88 s with identical decoded frames. Reported in hypit-ai#382. (cherry picked from commit 06daf6f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #382.
Alpha sources are normalized to lossless VP9, which ran at libvpx's slowest defaults. Lossless output decodes to the same pixels at every speed setting, so the encode now adds
-row-mt 1 -deadline realtime -cpu-used 8.Measured on a 2 s 1080x1920 alpha clip (ffmpeg 9.0.1, 10 cores):
-threads 1Decoded
framemd5is identical before and after, including the single-thread run. The opaque libx264 path is unchanged.