当前位置:网站首页>H264 GOP 扫盲
H264 GOP 扫盲
2022-08-10 11:59:00 【51CTO】
提供基于SIP的通信服务器(企业级UC,电话会议,调度系统等)及客户端解决方案,承接 sip/ims 视频客户端开发,支持接入sip软交换,ims核心网,支持 语音,视频,即时通信功能,视频格式支持 h263,h264,mpeg4 软编软解,提供硬件编解码接口对接,提供服务器,有兴趣请联系我。
在视频编码序列中,主要有三种编码帧:I帧、P帧、B帧,如下图所示。
● I帧即Intra-coded picture(帧内编码图像帧),不参考其他图像帧,只利用本帧的信息进行编码
● P帧即Predictive-coded Picture(预测编码图像帧),利用之前的I帧或P帧,采用运动预测的方式进行帧间预测编码
● B帧即Bidirectionally predicted picture(双向预测编码图像帧),提供最高的压缩比,它既需要之前的图
像帧(I帧或P帧),也需要后来的图像帧(P帧),采用运动预测的方式进行帧间双向预测编码
在视频编码序列中,GOP即Group of picture(图像组),指两个I帧之间的距离,Reference(参考周期)指两个P帧之间的距离(如下图3.1)。一个I帧所占用的字节数大于一个P帧,一个P帧所占用的字节数大于一个B帧(如下图3.1所示)。
I、P、B帧示意图
所以在码率不变的前提下,GOP值越大,P、B帧的数量会越多,平均每个I、P、B帧所占用的字节数就越多,也就更容易获取较好的图像质量;Reference越大,B帧的数量越多,同理也更容易获得较好的图像质量。
需要说明的是,通过提高GOP值来提高图像质量是有限度的,在遇到场景切换的情况时,H.264编码器会自动强制插入一个I帧,此时实际的GOP值被缩短了。另一方面,在一个GOP中,P、B帧是由I帧预测得到的,当I帧的图像质量比较差时,会影响到一个GOP中后续P、B帧的图像质量,直到下一个GOP开始才有可能得以恢复,所以GOP值也不宜设置过大。
同时,由于P、B帧的复杂度大于I帧,所以过多的P、B帧会影响编码效率,使编码效率降低。另外,过长的GOP还会影响Seek操作的响应速度,由于P、B帧是由前面的I或P帧预测得到的,所以Seek操作需要直接定位,解码某一个P或B帧时,需要先解码得到本GOP内的I帧及之前的N个预测帧才可以,GOP值越长,需要解码的预测帧就越多,seek响应的时间也越长。
边栏推荐
猜你喜欢

吃透Chisel语言.36.Chisel实战之以FIFO为例(一)——FIFO Buffer和Bubble FIFO的Chisel实现

dedecms支持Word内容一键导入

So delicious!Since using this interface artifact, my team efficiency has increased by 60%!

Solve the idea that unit tests cannot use Scanner

十八、一起学习Lua 调试(Debug)

Crypto Gaming: The Future of Gaming

解决 idea 单元测试不能使用Scanner

three.js blur glass effect

第5章 虚拟存储器

10 款更先进的开源命令行工具
随机推荐
Data Analysis of Time Series (5): Simple Prediction Method
LT8911EXB MIPI CSI/DSI to EDP signal conversion
jlink 与 swd 接口定义
Samsung plans to start producing semiconductor components in Vietnam in 2023
吃透Chisel语言.36.Chisel实战之以FIFO为例(一)——FIFO Buffer和Bubble FIFO的Chisel实现
What are some useful performance testing tools recommended? Performance testing report charging standards
Threshold-based filtering buffer management scheme in a shared buffer packet switch论文核心部分
基于PLECS的离网(孤岛)并联逆变器的Droop Control下垂控制仿真
Database management tool: dynamic read-write separation
Cannot find symbol log because lombok is not found
LeetCode 369. Plus One Linked List
郭晶晶家的象棋私教,好家伙是个机器人
search--01
How many constants and data types do you remember?
【论文+代码】PEBAL/Pixel-wise Energy-biased Abstention Learning for Anomaly Segmentation on Complex Urban Driving Scenes(复杂城市驾驶场景异常分割的像素级能量偏置弃权学习)
Threshold-based filtering buffer management scheme in a shared buffer packet switch core part of the paper
LeetCode 86. Delimited Linked List
Ssm framework construction process [easy to understand]
Diary 16
Does face attendance choose face comparison 1:1 or face search 1:N?