Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yaowangvrviu opened this issue Oct 20, 2018 · 2 comments
Closed

Comments

@yaowangvrviu
Copy link

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

luofalei commented Nov 7, 2018

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

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

@luofalei
Copy link
Member

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants