Change H265 codec from hev1 to hvc1 for iOS compatibility by mainavinhoon · Pull Request #290 · bluenviron/mediacommon (original) (raw)

Description

Changes the H.265/HEVC codec box type from hev1 to hvc1 for better compatibility with iOS devices.

Problem

Currently, MediaMTX recordings using H.265/HEVC codec use the hev1 variant, which is not compatible with iOS/Safari. iOS requires the hvc1 variant for HEVC playback.

Solution

Benefits

Compatibility

Both hvc1 and hev1 are valid H.265/HEVC variants:

Modern decoders support both variants. hvc1 is preferred as it's more efficient and widely compatible.

This fixes playback issues on iOS devices when using MediaMTX for recording H.265 streams.