最开始学习264的时候,只知道一个GOP的概念,后来又有了open/closed之分,感觉很神奇,不知道这些人在折腾什么事情。
B-Frames are Bidirectional frames. They can get information from the previous or following I or P-Frames. With a closed GOP, the B-Frame(s) at the end can only use data from the previous I or P-Frame, and as a result, they will be larger than they might be if the GOP is open. With an open GOP, it can "look" beyond the GOP boundary for the data. As a result, they'll be smaller usually. The upshot is that the quality will be better by a little bit for the same file size with open GOPs. And jdobbs, as always, was right.
Closed GOPs are useful only if you are planning to do some editing of the MPEG. I think ILVU or angles might also require closed GOPs. I could be wrong about that though. I could be wrong about anything I've said. But that's my story and I'm sticking to it.
还是翻译一段文章,个人感觉这个还是比较好理解的。
B帧是双向预测帧。他们可以参考前面或者后面的I帧或者P帧(按照解码顺序)。对于Closed GOP,在一个GOP最后的B帧,只能参考前向的I帧或者P帧,当然,编码效率会下降。对于Open GOP,B帧可以跨越GOP的界限,参考后续的I帧或者P帧。