Skip to content

fix: Handle Bayer/ProRes RAW formats on iPhone 16/17 for video recording#3706

Open
mihailShumilov wants to merge 1 commit intomrousavy:mainfrom
mihailShumilov:fix/iphone17-camera-issue
Open

fix: Handle Bayer/ProRes RAW formats on iPhone 16/17 for video recording#3706
mihailShumilov wants to merge 1 commit intomrousavy:mainfrom
mihailShumilov:fix/iphone17-camera-issue

Conversation

@mihailShumilov
Copy link

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.

What

Changes

Tested on

Related issues

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>
@vercel
Copy link

vercel bot commented Jan 30, 2026

@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.

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