关于GOP, open GOP, close GOP

本文介绍了视频编码中的GOP(Group of Pictures)概念,包括其结构、开放与封闭GOP的区别以及GOP长度的作用。通过具体示例帮助理解如何实现随机访问及提高编码效率。

from: http://www.videohelp.com

GOP: Group Of Pictures

A Group Of Pictures (GOP) consists of all the pictures that follow a GOP header before another GOP header.


The GOP layer allows random access because the first picture after the GOP header is an Intra picture that means that it doesn't need any reference to any other picture.


The GOP layer is optional, i.e. it's not mandatory to put any GOP header in the bitstream. In the header there is also the timecode of the first picture of the GOP to be displayed.

The decoding process, as the GOP header is immediately followed by an Intra picture, can begin at that point of the bitstream. Anyway it's possible that some B pictures, following such I_picture in the bitstream, have references coming from the previous GOP and can't be correctly decoded. In this case the GOP is called an Open GOP because some references from the previous GOP exist; if a random access to such a GOP is performed, some B_pictures shouldn't be displayed .
A GOP is called a Closed GOP when either there are no B_pictures immediately following the first I_picture or such B_pictures haven't any references coming from the previous GOP (in this case a GOP header flag must be set).

the GOP length is the period (often expressed in frames) by which an Intra frame occurs. It must be noticed that such a value cannot be found in the bitstream and it is unnecessary to the decoding process. Furthermore it isn't specified any fixed period for the Intra frame. As the presence of the Intra frames is quite important for many applications, it is the encoder that has to provide them, while the decoder has only to work with all the valid bitstreams.

例子:

  • 非封闭GOP: I1 P2 B3 B4 P5 B6 B7 

       I8  B9  B10 P11 B11 B12 P13 B14 B15

       I16 B16 B17 P18 B19 B20 P21 B22 B23

       第一个GOP length为9-2帧,从第二个GOP开始为9帧

  • 封闭GOP:

               I1  P2  B3  B4  P5  B6  B7   

               I8  P9  B10 B11 P12 B13 B14

               I15 P16 B17 B18 P19 B20 B21

       GOP length = 9-2;

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值