/** * HEVC ↔ H.264 codec string mapping. * * Used by MSE intercept and Shaka transmuxer to advertise an H.264 codec * string before any frame has been encoded, so MediaSource can validate the * SourceBuffer up-front. The choice is best-effort and based purely on the * HEVC level declared in the input mime — H264Encoder picks its own codec * string from the actual frame resolution at encode time and the two are not * guaranteed to match (an HEVC stream may declare a level higher than its * resolution requires). The mapping is conservative: it advertises the * smallest H.264 profile/level that can hold any resolution allowed by the * declared HEVC level. */ /** * Pick an H.264 codec string from an HEVC mime/codec string. * * The HEVC codec format is `hev1....` * (e.g. `hev1.1.6.L93.B0` → Main tier, level 93/30 = 3.1 → ≤720p). * * Mapping rules: * ≤ Level 3.1 (≤720p) → avc1.640028 (High@4.0) * Level 4.0 / 4.1 / 4.2 → avc1.64002a (High@4.2) * ≥ Level 5.0 (4K and above) → avc1.640033 (High@5.1) * * Falls back to High@5.1 if the level cannot be parsed — conservative * choice that any browser supporting H.264 should accept. */ export declare function hevcMimeToH264Codec(mime: string): string; //# sourceMappingURL=codec-mapping.d.ts.map