Skip to main content

Function: avcCodecString()

avcCodecString(width, height, fps): string

Defined in: src/export/WebCodecsExporter.ts:198

The H.264 codec string with the lowest level that fits the frame size and rate. Level 3.1 (the old fixed value) stops at 1280x720, so a 1080x1080 export needs level 4.0.

Parameters​

width​

number

height​

number

fps​

number

Returns​

string

Post​

result.startsWith('avc1.4200')