Documentsvideo-specs-for-no-conversion---1080p
Recommended export settings: MP4, H.264 High profile, Level 4.0, yuv420p, 1920×1080 or smaller (1080×1920 for portrait), 30 fps or lower, video bitrate 8–10 Mbps or lower, AAC audio. These match what the converter produces itself (CRF 23, maxrate 10M, AAC 128k), so a file exported this way is never touched.
Video spec: kept as-is, no conversion
| Property | Must be | How the code checks it |
|---|---|---|
| Container | MP4 | ffprobe format_name must contain mp4 |
| Video codec | H.264 (AVC) | codec_name === 'h264' |
| H.264 level | 4.0 or lower | level <= 40. Level 4.1 or 4.2 triggers conversion |
| Resolution, landscape (width > height) | up to 1920 × 1080 | width ≤ 1920 and height ≤ 1080 |
| Resolution, portrait or square | up to 1080 × 1920 | width ≤ 1080 and height ≤ 1920 |
| Frame rate | 30 fps or lower | 23.976, 24, 25, 29.97 and 30 all pass |
| Video bitrate | 10 Mbps or lower | video stream bit_rate ≤ 10,000,000 |
| Pixel format | yuv420p (8-bit 4:2:0) | only yuv422p is rejected |