pkuvcl / xavs2

An open-source encoder of AVS2-P2/IEEE1857.4 video coding standard
GNU General Public License v2.0
234 stars 66 forks source link

如何配置xavs2参数可以输出30帧一个IDR的帧结构? #12

Closed yaowangvrviu closed 5 years ago

yaowangvrviu commented 5 years ago
  1. 使用-f encoder_ldp.cfg可以达到期望的每30帧一个I帧。但是没有B帧;
  2. 使用命令参数 --IntraPeriod=30 输出的结果在100帧里面只有首帧是I;
  3. 使用命令参数 --NumberBFrames=0,输出还是有B帧,设置无效;
  4. gop_size在AVS2里面是什么概念,看起来和h264的感念不一样,不能正确理解。 谢谢!
luofalei commented 5 years ago

在存在B帧的情况下,I帧间隔等于 IntraPeriod * GopSize + !OpenGop。 在本编码器中,gop_size是参考帧结构重复的单位。

所以目前在存在B帧的情况下,还不能支持完全自定义的IDR帧间隔。 NumberBFrames 设置为0时无效的问题,还与 cfg_type 参数相关。

luofalei commented 5 years ago

最新版本已修正IntraPeriod问题,可通过

--IntraPeriodMax=30 --IntraPeriodMin=30 --OpenGOP=0

设置成想要的任意I帧间隔。