fix: Handle Bayer/ProRes RAW formats on iPhone 16/17 for video recording#3706
Open
mihailShumilov wants to merge 1 commit intomrousavy:mainfrom
Open
fix: Handle Bayer/ProRes RAW formats on iPhone 16/17 for video recording#3706mihailShumilov wants to merge 1 commit intomrousavy:mainfrom
mihailShumilov wants to merge 1 commit intomrousavy:mainfrom
Conversation
On newer iPhones (14 Pro+, 16, 17), certain camera modes use Bayer/ProRes RAW pixel formats that cannot be encoded with standard HEVC/H.264 codecs without special SMPTE RDD18 metadata (ISO sensitivity, white balance, etc.). This fix: - Filters out Bayer formats when selecting camera formats - Forces compatible output pixel formats (420f/420v/BGRA) during recording - Falls back to H.264 when BGRA is the only available format - Uses HEVC Main10 profile for universal compatibility with both 8-bit and 10-bit content - Ensures track inputs are properly finished on devices that stop delivering frames immediately - Handles stopRecording() gracefully when no recording is in progress Fixes video recording errors -11875 (missing SMPTE RDD18 metadata) and -12905 (HEVC profile mismatch) on affected devices. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
@mihailShumilov is attempting to deploy a commit to the mrousavy's Team Team on Vercel. A member of the Team first needs to authorize it. |
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.
On newer iPhones (14 Pro+, 16, 17), certain camera modes use Bayer/ProRes RAW pixel formats that cannot be encoded with standard HEVC/H.264 codecs without special SMPTE RDD18 metadata (ISO sensitivity, white balance, etc.).
This fix:
Fixes video recording errors -11875 (missing SMPTE RDD18 metadata) and -12905 (HEVC profile mismatch) on affected devices.
What
Changes
Tested on
Related issues