当前位置:网站首页>H.264概念
H.264概念
2022-06-11 18:16:00 【陳小帥hh】
一、H.264概念
H.264是由ITU-T視頻專家組和ISO/IEC動態圖像專家組聯合組成的聯合組(JVT,Joint Video Team)提出的高度壓縮數據視頻編解碼器標准。
二、H.264的數據格式
H.264是由**視頻編碼層(VCL)和網絡適配層(NAL)**組成。
①VCL:H264編碼/壓縮的核心,主要負責將視頻數據編碼/壓縮,再切分。
②NAL層的基本單比特叫NALU(網絡抽象層單元)
blog.csdnimg.cn/25b161a63ce74813a55a1b090a51d6ea.png)
NALU = NALU header + NALU payload
(1)大致結構:
RBSP:原始數據(可能是編碼的視頻數據,也可能是其他數據),加上用於對齊的“0”
比特比特。
(2)NALU的頭(8bit)
(3)nalu的類型
–>DCT變化和量化–>比特流編碼。
②切分數據,主要為了第三步。“切片(slice)”、“宏塊(macroblock)”是在VCL中的概念,一方面提高編碼效率和降低編碼率,另一方面提高網絡傳輸的靈活性。
③包裝成NAL。
VCL最後會被包裝成NAL。
四、NAL頭的數據結構體



五、H.264碼流結構
H.264 = start_code + NALU
(start_code:00000001 or 000001)

六、H.264三種幀
大部分的視頻壓縮,都對幀有做分類,主要是分為I幀、P幀、B幀,這些並不是H264所特有的,只不過我們以H264來講這些分類。
①I幀:Intra-coded picture,錶示關鍵幀,全幀內壓縮。壓縮這一幀不需要參考其他幀。
②P幀:Predicted picture,前向預測幀,壓縮這一幀需要參考之前的一個I/P幀作為基准,進行運動估計,以獲得比I幀更大的壓縮比。
③B幀:Bi-predictive picture,雙向預測幀。壓縮這一幀不僅要參考前一個I/P幀,還需要參考之後的一個P幀,進行雙向運動估計,某些情况下可以獲得比P幀更高的壓縮比。
壓縮比:B > P > I
圖像質量:I > P > B (因為會對運動估計得到的運動矢量進行量化,引入了損耗。且P、B幀由於可能參考了其他的P幀(鏈),從而更容易引起錯誤積累和錯誤漂移。)
七、解碼時間戳和顯示時間戳

边栏推荐
- Mysql8 installation, Navicat installation, sqli labs setup
- 关于keil中,while循环条件不成立却无法跳出的问题
- 任意用户密码重置的10种方式
- SISO decoder for a general (n,n-1) SPC code(补充章节3)
- Implementation of servlet file upload function (Commons fileUpload)
- Tle6389-2g V50's unique pwm/pfm control scheme has a duty cycle of up to 100%, forming a very low differential pressure - keshijin mall
- SQL报错注入1
- SQL statement when the query condition is blank, all data will be queried by default. If it is not blank, the query will be performed according to the condition
- 【C】 ATOI function implementation +offsetof implementation + exchange binary odd and even digits
- Spring 2021 daily question [end of week4]
猜你喜欢

mariadb spider分片引擎初體驗

网络安全威胁情报体系

ISCSI详解(四)——ISCSI服务端配置实战

Ffmpeg parity field frame interlace progressive command and code processing
![[collect first and use it sooner or later] 49 Flink high-frequency interview questions series (I)](/img/c4/eb57b29700b6c033f6d0af2892f7a6.png)
[collect first and use it sooner or later] 49 Flink high-frequency interview questions series (I)

Initial egg framework

【先收藏,早晚用得到】49个Flink高频面试题系列(二)
![[Golang]力扣Leetcode - 292. Nim 游戏(数学)](/img/82/54c3f6be9d08687b42cba0487380f0.png)
[Golang]力扣Leetcode - 292. Nim 游戏(数学)

SISO decoder for a general (n,n-1) SPC code(补充章节3)

密码学概述
随机推荐
Three steps of ffmpeg CBR precise bitstream control
HashSet集合
[collect first and use it sooner or later] 49 Flink high-frequency interview questions series (II)
Spring 2021 daily question [week3 not finished]
[collect first and use it sooner or later] 100 Flink high-frequency interview questions series (I)
密评-----
密码学概述
ACL 2022:评估单词多义性不再困扰?一种新的基准“DIBIMT”
Ffmpeg hardware codec NVIDIA GPU
viso的常见操作
ctf入门
【先收藏,早晚用得到】100个Flink高频面试题系列(一)
[C语言]限制查找次数,输出次数内查找到的最大值
[MapReduce] a complete Mr program case teaches you how to package and run with idea
【MapReduce】一个完整MR程序案例教你如何用IDEA打包及运行
SQL报错注入1
Radio button text background changes at the same time
在同花顺上面开股票账户好不好,安不安全?
Cryptology Summary
Global and Chinese markets for private internet access 2022-2028: Research Report on technology, participants, trends, market size and share