H.264 Level Checker
Enter a frame size, a frame rate and optionally a bitrate. The page returns the lowest H.264 level that carries them, the constraint that set it, and the limits you have left. Everything runs in your browser.
H.264 splits capabilities into levels, and a decoder that supports a level must decode any stream inside that level's limits. The frame is measured in 16×16 macroblocks: the width and height are divided by 16 and rounded up, their product is the picture size in macroblocks, and that product times the frame rate is the macroblock rate. A level carries the stream when the picture fits its maximum frame size, neither side exceeds √(8 × that size), and the macroblock rate is within its maximum. The bitrate ceiling is the level's MaxBR in Table A-1 multiplied by the profile's Table A-2 factor: 1.2 for Baseline, Main and Extended, 1.5 for High, 3.6 for High 10 and 4.8 for the two 4:4:4 profiles. The DPB figure is MaxDpbMbs divided by the picture size, capped at 16, which is how many reference frames the decoder must hold. Levels are read from ITU-T H.264 Table A-1 and the profile factors from Table A-2. Level 1b is left out because it only applies to constrained-baseline streams, and VBV buffer size, the MinCR bitrate floor, interlaced field coding and the level-signalling syntax itself are not checked. A level is a decoder capability label, not a picture-quality setting.