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

581

被折叠的 条评论
为什么被折叠?



