srt_encoder icon indicating copy to clipboard operation
srt_encoder copied to clipboard

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

Open NodeBoy2 opened this issue 5 years ago • 1 comments

在参考动态码率代码进行测试时,发现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中会初始化设置这两个值吗,没有找到相关实现。

NodeBoy2 avatar Oct 13 '20 08:10 NodeBoy2

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

注意上面的条件

runner365 avatar Aug 03 '23 03:08 runner365