fix(export): use real source dimensions for 4K "Original" export#655
fix(export): use real source dimensions for 4K "Original" export#655AntonioIbarraOrtiz wants to merge 1 commit into
Conversation
The MP4/GIF export-dimension memos read the live videoWidth/videoHeight through videoPlaybackRef but only depended on aspectRatio/gifSizePreset. They computed once before metadata loaded, fell back to 1920x1080, and never recomputed — so a 3840x2160 recording showed and exported as 1920x1080 when "Original" was selected. Add isPreviewReady to both memo dependency arrays so they recompute once the video is ready (videoWidth > 0). mp4OutputDimensions and the export pipeline derive from these, so the correct source size now flows to both the displayed "Original" value and the actual export.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds ChangesPreview Readiness Dependencies
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Pull Request Template
Description
The MP4/GIF export-dimension memos read the live videoWidth/videoHeight through videoPlaybackRef but only depended on aspectRatio/gifSizePreset. They computed once before metadata loaded, fell back to 1920x1080, and never recomputed — so a 3840x2160 recording showed and exported as 1920x1080 when "Original" was selected.
Add isPreviewReady to both memo dependency arrays so they recompute once the video is ready (videoWidth > 0). mp4OutputDimensions and the export pipeline derive from these, so the correct source size now flows to both the displayed "Original" value and the actual export.
Motivation
4K Export is not working
Type of Change
Related Issue(s)
#639
Screenshots / Video
Testing Guide
Checklist
Summary by CodeRabbit