Tool
Enter a resolution and fps and the tool finds the minimum level required from the spec tables, along with the number of reference frames you can use at that level. The calculation happens only inside this browser, and nothing is uploaded.
Resolution
Size used in the calculation 1920×1088 (8,160 macroblocks/frame)
Minimum level required: 4
At this level, the maximum fps for this resolution is 30, with up to 4 reference frames. Your 4 reference frames also fit at this level.
ffmpeg -i input.mp4 -c:v libx264 -level 4 -crf 20 -preset medium -c:a copy output.mp4 # x264 directly: x264 --level 4 --ref 4 ...
This only checks the frame-size and per-second throughput limits. Check the bitrate limit in the table below.
| Level | Fits | Max fps | Max refs | Max kbps |
|---|---|---|---|---|
| 1 | No | – | – | 64 |
| 1.1 | No | – | – | 192 |
| 1.2 | No | – | – | 384 |
| 1.3 | No | – | – | 768 |
| 2 | No | – | – | 2,000 |
| 2.1 | No | – | – | 4,000 |
| 2.2 | No | – | – | 4,000 |
| 3 | No | – | – | 10,000 |
| 3.1 | No | – | – | 14,000 |
| 3.2 | No | – | – | 20,000 |
| 4 | Yes | 30 | 4 | 20,000 |
| 4.1 | Yes | 30 | 4 | 50,000 |
| 4.2 | Yes | 64 | 4 | 50,000 |
| 5 | Yes | 72 | 13 | 135,000 |
| 5.1 | Yes | 120 | 16 | 240,000 |
| 5.2 | Yes | 254 | 16 | 240,000 |
| 6 | Yes | 512 | 16 | 240,000 |
| 6.1 | Yes | 1024 | 16 | 480,000 |
| 6.2 | Yes | 2048 | 16 | 800,000 |
Max kbps is for the Baseline, Main and Extended profiles; the High profile is 1.25 times this value.
A level is a bundle of upper limits set by the codec spec: ‘a decoder must be able to handle at least this much.’ If you know which level a video requires, you can expect it to play on devices that support that level or higher. There are three main kinds of limits.
-level for x264 and with -x265-params level-idc=... for x265. This is for re-encoding to match the level a device supports when a video won’t play on an older TV or set-top box.