您的位置:首页 > 其它

H.264 Profiles and Levels

2011-05-28 15:57 417 查看
For h.264 users, how to specify the profile/level seems to be a fairly common question. Profiles

define sets of bit stream features a h.264 stream can use. Levels

define restrictions on the video resolution, frame. rate and some stuff called VBV (Video Buffer Verifier).

H.264 Profiles

H.264 Profiles are discussed in depth onWikipedia
, but to simplify the considerations for the average user, I will focus on the Baseline, Main and High Profiles.

Baseline Profile

I/P slices

Multiple reference frames (–refs <int>, >1 in the x264 CLI)

In-loop deblocking

CAVLC entropy coding (–no-cabac in the x264 CLI)

Main Profile

Baseline Profile features mentioned above

B slices

CABAC entropy coding

Interlaced coding – PAFF/MBAFF

Weighted prediction

High Profile

Main Profile features mentioned above

8×8 transform. option (–8×8dct in the x264 CLI)

Custom quantisation matrices

H.264 Levels

H.264 Levels are alsodiscussed on Wikipedia
,
though in my opinion, less explicitly and less successfully than for
the profiles. For practical use, to specify a Level, a number of
constraints have to be met.

The resolutions/frame. rates in the
following table are merely a guideline – the number of macroblocks per
second is the actual restriction. To calculate this:

Macroblocks are 16×16 in H.264 and so to code a frame. one can calulate the number of macroblocks per frame. as:

ceil( width / 16.0 ) * ceil( height / 16.0 )


Note: The ceil() function rounds up its argument to the next integer. For example, ceil( 10.2 ) returns 11.

Then
you need to multiply the number of macroblocks per frame. by the number
of frames per second to get the number of macroblocks per second.

macroblocks per second = ceil( width / 16.0 ) * ceil( height / 16.0 ) * frame. rate


LevelVBV maximum bit rate [1000bits/s]VBV buffer size [1000bits]Macroblocks/sResolution and frame. rate
1641751485128×96@30 or 176×144@15
1b1283501485128×96@30 or 176×144@15
1.11925003000176×144@30 or 320×240@10
1.238410006000176×144@60 or 320×240@20
1.3768200011880352×288@30
22000200011880352×288@30
2.14000400019800352×288@50
2.24000400020250352×288@50 or 640×480@15
3100001000040500720×480@30 or 720×576@25
3.114000140001080001280×720@30
3.220000200002160001280×720@60
420000250002457601920×1088@30 or 2Kx1K@30
4.150000625002457601920×1088@30 or 2Kx1K@30
4.250000625005222401920×1088@60 or or 2Kx1K@60
51350001350005898242560×1920@30
5.12400002400009830404Kx2K@30 or 4096×2304@25
http://blog.csdn.net/yili_xie/archive/2009/11/12/4803591.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: