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

参考代码动态设置码率不生效 #2

Open
NodeBoy2 opened this issue Oct 13, 2020 · 1 comment
Open

参考代码动态设置码率不生效 #2

NodeBoy2 opened this issue Oct 13, 2020 · 1 comment

Comments

@NodeBoy2
Copy link

在参考动态码率代码进行测试时,发现x264动态码率没有生效。然后根据http://yeyingxian.blog.163.com/blog/static/34471242017528048918/ 这个博客,如果初始化的时候未设置i_vbv_max_bitrate和i_vbv_buffer_size,x264_encoder_reconfig中改变rc.i_bitrate不起任何作用。
在初始化设置i_vbv_max_bitrate和i_vbv_buffer_size的值之后生效。
srt_encoder中会初始化设置这两个值吗,没有找到相关实现。

@runner365
Copy link
Owner

Note:

  • can't configure -crf
    crf can't be configured because crf mode conflict with the adaptive bitrate mode in ffmpeg.
  • can't configure -qp
    qp can't be configured because qp mode conflict with the adaptive bitrate mode in ffmpeg.
    the media format must be mpegts in srt

注意上面的条件

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