ffmpeg 码率控制设置

来源:互联网 发布:颐讯软件 编辑:程序博客网 时间:2024/06/05 16:48

ffmpeg中CBR(固定码率控制)的设置:

                c->bit_rate = br;
                c->rc_min_rate =br;
                c->rc_max_rate = br;  
                c->bit_rate_tolerance = br;
                c->rc_buffer_size=br;
                c->rc_initial_buffer_occupancy = c->rc_buffer_size*3/4;
                c->rc_buffer_aggressivity= (float)1.0;
                c->rc_initial_cplx= 0.5; 


 ffmpeg中VBR(可变率控制)的设置:

 c->flags = CODEC_FLAG_PASS2;  ///VBR模式


                c->flags |= CODEC_FLAG_QSCALE;
                c->rc_min_rate =min;
                c->rc_max_rate = max; 
                c->bit_rate = br;

摘自:

http://blog.csdn.net/maoxueer/article/details/2984079


参考:

http://blog.csdn.net/maoxueer/article/details/2984059




http://zpbeibei.blog.163.com/blog/static/80454215201365113436854/

0 1
原创粉丝点击