test: MP4 high quality fallback (CRF 15)#270
Draft
devin-ai-integration[bot] wants to merge 1 commit intoperf/optimize-landing-assetsfrom
Draft
test: MP4 high quality fallback (CRF 15)#270devin-ai-integration[bot] wants to merge 1 commit intoperf/optimize-landing-assetsfrom
devin-ai-integration[bot] wants to merge 1 commit intoperf/optimize-landing-assetsfrom
Conversation
Previous CRF 23 encoding was visually degraded. CRF 15 gives much better quality while still being smaller than the original videos: - hero: 1.9MB (CRF 15) vs 2.6MB (original) — 25% reduction - trophy: 1.0MB (CRF 15) vs 2.3MB (original) — 55% reduction Co-Authored-By: Junho Yeo <i@junho.io>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5 tasks
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.
Summary
Re-encodes both landing page MP4 fallback videos (
hero-video-transparent.mp4,trophy-cup-transparent.mp4) at CRF 15 instead of CRF 23 to improve visual quality on Safari/iOS, where the MP4 fallback is used because Safari doesn't reliably play VP9 WebM.This is a test branch for comparing quality/size tradeoffs against an alternative approach (
test/libavjs-polyfill). Not intended for direct merge.File size comparison:
Review & Testing Checklist for Human
test/libavjs-polyfillbranch — the other test branch uses a WebCodecs polyfill to play WebM natively on Safari, avoiding the MP4 quality issue entirely but adding JS/WASM overhead.Notes
Summary by cubic
Re-encoded the landing page MP4 fallbacks (hero-video-transparent.mp4, trophy-cup-transparent.mp4) at CRF 15 to improve visual quality on Safari/iOS. This test branch evaluates the quality gain against larger files (~2.9MB total vs ~1.2MB at CRF 23) and against the WebM polyfill approach.
Written for commit 40dc63c. Summary will update on new commits.