MPEG-2 video encode reference frames and open-GOP, closed-GOP

MPEG-2 reference frames

MPEG-2 video encode defines GOP which consists of several I/P/B frames:

I frame: reference frame of P/B frame

P frame: its reference frame is a previous I or P frame

B frame: its reference frames are a previous I or P frame and a future P frame

notice:

frames in a GOP won't refer to frame before I frame at the start of this GOP, so a GOP will clear the error accumulation within before GOP.

 

open-GOP and closed-GOP

(this part is from: http://help.apple.com/compressor/mac/4.0/cn/compressor/usermanual/index.html#chapter=18%26section=5%26tasks=true )

开放的 GOP 最有效率,因为它们允许 GOP 模式中一个额外的 B-帧。开放的 GOP 的开头使用能够看到前一 GOP 的 B-帧,以及该 B-帧自身所在 GOP 的第一个 I-帧。

Figure. Diagram comparing Open GOP and Closed GOP.

根据定义,封闭 GOP 无法包含参考前一 GOP 或下一 GOP 帧的任何帧。相反,开放 GOP 则以一个或多个 B-帧开始,这些帧都参考前一 GOP 的最后一个 P-帧。由 Compressor 创建的封闭 GOP 总是以 I-帧开始。

与相同结构和大小的封闭 GOP 相比,开放 GOP 提供的压缩结果一般要略胜一筹。上图显示,封闭 GOP 比相同长度的开放 GOP 所包含的 P-帧要多一个。因为 P-帧需要的位通常要比 B-帧多,所以开放 GOP 获得的压缩效果会略胜一筹。

 

posted @   aspirs  阅读(686)  评论(0编辑  收藏  举报
编辑推荐:
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
阅读排行:
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
点击右上角即可分享
微信分享提示