FFmpeg H.264 Constant Bitrate (CBR) Encoding
  NYfg2BRCcXho 2023年11月02日 46 0
ide


转自:​​https://brokenpipe.wordpress.com/2016/10/07/ffmpeg-h-264-constant-bitrate-cbr-encoding-for-iptv/​

Copy From: ​​https://brokenpipe.wordpress.com/2016/10/07/ffmpeg-h-264-constant-bitrate-cbr-encoding-for-iptv/​

 

Example command using a single-frame VBV:


ffmpeg -i <input> -r 25 -c:v libx264 -x264opts nal-hrd=cbr:force-cfr=1 -b:v 2500k -minrate 2500k -maxrate 2500k -bufsize 100k output.ts


where:

nal-hrd=cbr

set the hypothetical reference decoder (HRD) to CBR and pack the bitstream to the specified bitrate

force-cfr=1

force constant framerate timestamp generation

-b:v

the video bitrate

-minrate
-maxrate

same as the video bitrate for constant bitrate

-bufsize

the video buffering verifier (VBV) buffer size, set for capped frame-size encoding (bufsize = bitrate / framerate)

Additional notes:

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  sX9JkgY3DY86   2023年11月13日   43   0   0 idesedImage
  b1UHV4WKBb2S   2023年11月13日   40   0   0 ide抗锯齿
  sX9JkgY3DY86   2023年11月13日   18   0   0 分割线ideText
  b1UHV4WKBb2S   2023年11月13日   37   0   0 裁剪ideflutter
  zSWNgACtCQuP   2023年11月13日   32   0   0 ide
NYfg2BRCcXho