Skip to content

fix(encoder): tag HEVC as hvc1 in MP4/MOV for Apple player compatibility - #1507

Open
Antman1526 wants to merge 1 commit into
k4yt3x:masterfrom
Antman1526:hvc1-tag-for-apple-players
Open

fix(encoder): tag HEVC as hvc1 in MP4/MOV for Apple player compatibility#1507
Antman1526 wants to merge 1 commit into
k4yt3x:masterfrom
Antman1526:hvc1-tag-for-apple-players

Conversation

@Antman1526

Copy link
Copy Markdown

When encoding HEVC into MP4/MOV (e.g. -c hevc_videotoolbox on macOS, or libx265 anywhere), the muxer defaults to the hev1 sample-entry tag, which QuickTime and Photos refuse to play. This retags the video stream as hvc1 for mp4/mov outputs.

Verified with ffprobe (codec_tag_string=hvc1) and QuickTime playback on macOS. Related to the macOS build effort in #1493 / #1362, but benefits any platform producing HEVC files for Apple devices.

Note: I'm not attaching a CLA/signoff process here — happy to adjust the patch or commit format however you prefer.

QuickTime and Photos refuse HEVC streams tagged with the mux default
'hev1' sample entry; retag as 'hvc1' when muxing HEVC into mp4/mov.
@Antman1526
Antman1526 force-pushed the hvc1-tag-for-apple-players branch from 358eb66 to 46e4471 Compare August 12, 2026 12:19
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