H. 264 profiles and levels

Source: Internet
Author: User

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 abve
    • B slices
    • Cabac Entropy Coding
    • Interlaced coding-PAFF/mbaff
    • Weighted Prediction
  • High profile
    • Main profile features mentioned abve
    • 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
The profiles. For practical use, to specify a level, a number
Constraints have to be met.

The resolutions/frame. Rates in
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.:

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

Level Vbv maximum bit rate [1000 bits/S] Vbv buffer size [1000 bits] Macroblocks/s Resolution and frame. Rate
1 64 175 1485 128 × 96 @ 30 or 176 × 144 @ 15
1B 128 350 1485 128 × 96 @ 30 or 176 × 144 @ 15
1.1 192 500 3000 176 × 144 @ 30 or 320 × 240 @ 10
1.2 384 1000 6000 176 × 144 @ 60 or 320 × 240 @ 20
1.3 768 2000 11880 352 × 288 @ 30
2 2000 2000 11880 352 × 288 @ 30
2.1 4000 4000 19800 352 × 288 @ 50
2.2 4000 4000 20250 352 × 288 @ 50 or 640 × 480 @ 15
3 10000 10000 40500 720 × 480 @ 30 or 720 × 576 @ 25
3.1 14000 14000 108000 1280 × 720 @ 30
3.2 20000 20000 216000 1280 × 720 @ 60
4 20000 25000 245760 1920 × 1088 @ 30 or 2kx1k @ 30
4.1 50000 62500 245760 1920 × 1088 @ 30 or 2kx1k @ 30
4.2 50000 62500 522240 1920 × 1088 @ 60 or 2kx1k @ 60
5 135000 135000 589824 2560 × 1920 @ 30
5.1 240000 240000 983040 4kx2k @ 30 or 4096 × 2304 @ 25

 

Http://blog.csdn.net/yili_xie/archive/2009/11/12/4803591.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.