织梦CMS - 轻松建站从此开始!

罗索

关于MPEG-2中的图像序列和图像组头GOP

jackyhwei 发布于 2011-05-14 10:42 点击:次 
图像组(GOP)是为方便随机存取而加的,图像组是随机存取视频单位。一个GOP由一串IBP帧组成,起始为I帧。基准帧(I/P)的重复频率用M表示,它描述为多少帧里出现一次I/P帧。
TAG:

图像序列

图像序列是由图像组构成的,是随机存取段落

sequence_header_code – The sequence_header_code is the bit string ‘000001B3’ in hexadecimal

sequence_end_code – The sequence_end_code is the bit string ‘000001B7’ in hexadecimal.

MPEG-2为了实现随机访问,在码流中会插入repeat_sequence_header,它可以插在I、P帧或GOP前面;如果是场编码,只能插在第一场前面。

图像组头

图像组(GOP)是为方便随机存取而加的,图像组是随机存取视频单位。一个GOP由一串IBP帧组成,起始为I帧。基准帧(I/P)的重复频率用M表示,它描述为多少帧里出现一次I/P帧。GOP的长度是一个I帧到下一个I 帧的间隔,即多少帧里面出现一次I帧,一般用N表 示,这个长度是可变的,长GOP可以提供高的压缩比,但是会造成随机存取的延迟(必须等到下一个I帧)和误差的积累(P帧的误差传播)。一般是一秒内有两 个I帧,用来作为随机存取的入口。在MPEG2中也没有规定GOP的结构,帧重复方式可以是IP,IB,IBP,IBBP,甚至全部是I帧。

M=1 N=X:IPPP...

M=2 N=X:IBPBP...

M=3 N=X:IBBPBBP...

MPEG-2标准中的GOP语法结构如下:

 

group_start_code – The group_start_code is the bit string ‘000001B8’ in hexadecimal.

closed_gop – This is a one-bit flag whichindicates the nature of the predictions used in the first consecutiveB-pictures (if any) immediately following the first coded I-framefollowing the group of picture header.closed_gop is set to ‘1’ toindicate that these B-pictures have been encoded using only backwardprediction or intracoding.

broken_link – This is a one-bit flag which shall be set to ‘0’ during encoding. It is set to ‘1’ to indicate that the first
consecutiveB-Pictures (if any) immediately following the first coded I-framefollowing the group of picture header may not be correctly decodedbecause the reference frame which is used for prediction is notavailable (because of the action of editing).A decoder may use thisflag to avoid displaying frames that cannot be correctly decoded.

(xiaomeng008)
本站文章除注明转载外,均为本站原创或编译欢迎任何形式的转载,但请务必注明出处,尊重他人劳动,同学习共成长。转载请注明:文章转载自:罗索实验室 [http://www.rosoo.net/a/201105/11712.html]
本文出处:百度博客 作者:xiaomeng008
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
将本文分享到微信
织梦二维码生成器
推荐内容