Open gop and Closed gop of H264

本文详细解释了视频编码中GOP(Group of Pictures)的概念,包括闭合GOP和开放GOP的不同编码顺序及其对解码过程的影响。重点阐述了B帧在不同GOP结构中的位置变化以及IDR帧如何防止使用开放GOP风格的B帧。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >




In temporal order :

Code:
closed gop : PbbbPbbbPI
open   gop : PbbbPbbbbI

In coding order :

Code:
closed gop : PPbbbPbbbI
open   gop : PPbbbIbbbb

Note how, in coding order (ie, in the bitstream), the b frames temporally before the I frame are actually after the I frame. That's why the gop is called open. If you start decoding at the I, you won't be able to decode the b (you'll have to skip them), but it's no big deal because they are temporally before the I. IDR prevents you to use bframes in the open gop fashion because it flushes the reference buffer (thus, were you to use an IDR in an open gop situation, the bframes wouldn't not be able to reference the preceding P : they wouldn't be bframes anymore).


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值