引用
最初由 ssnake 发布
要CBR的话,--qcomp 0。
你这个假设没有意义。
--qcomp 0 已经设置了,主要想搞明白vbv_bufsize究竟是什么意义:是指波动范围?
测试了vbv_bufsize分别为1、300、3100的情况,vbv_bufsize为300的时候,码率波动最小
要消除VBV underflow,只有增加 vbv_bufsize
但是VBV underflow 的告警,是否会影响到网络播放机的解码呢?
------------------------------------------------------------------------
测试过程:
故意选取了一段码流差异极大的片段做测试,时间1分钟,2pass,vbv_maxrate 3100k
当vbv_bufsize 设置为1时候,出现以下 underflow
此时最大码流3373k,文件大小13321k
======================================
J:\mctemp4040.aac is scheduled to be muxed into container as type 1.
x264 [warning]: VBV underflow (-12192 bits)
x264 [warning]: VBV underflow (-28800 bits)
x264 [warning]: VBV underflow (-34585 bits)
x264 [warning]: VBV underflow (-38704 bits)
x264 [warning]: VBV underflow (-1081 bits)
x264 [warning]: VBV underflow (-52680 bits)
x264 [warning]: VBV underflow (-193768 bits)
x264 [warning]: VBV underflow (-33088 bits)
x264 [warning]: VBV underflow (-41488 bits)
x264 [warning]: VBV underflow (-48976 bits)
x264 [warning]: VBV underflow (-30440 bits)
x264 [warning]: VBV underflow (-54256 bits)
Flushing video frames.
Video stream: 264909.637 kbit/s (33113704 B/s) size: 1490227200 bytes 45.003 secs 1079 frames
x264 [warning]: VBV underflow (-31907 bits)
x264 [warning]: VBV underflow (-120936 bits)
x264 [warning]: VBV underflow (-68816 bits)
x264 [warning]: VBV underflow (-63864 bits)
x264 [warning]: VBV underflow (-82792 bits)
x264 [warning]: VBV underflow (-72528 bits)
x264 [warning]: VBV underflow (-128 bits)
x264 [warning]: VBV underflow (-146296 bits)
x264 [warning]: VBV underflow (-6241 bits)
J:\mctemp4040.264 is scheduled to be muxed into container as type 2.
======================================
看它最大值没超过300,于是把vbv_bufsize设置为300,underflow减少了,但仍然存在
此时最大码流3337k,文件大小13413k
======================================
J:\mctemp4040.aac is scheduled to be muxed into container as type 1.
x264 [warning]: VBV underflow (-43536 bits)
x264 [warning]: VBV underflow (-11584 bits)
x264 [warning]: VBV underflow (-115784 bits)
x264 [warning]: VBV underflow (-54360 bits)
x264 [warning]: VBV underflow (-66760 bits)
x264 [warning]: VBV underflow (-68896 bits)
x264 [warning]: VBV underflow (-83448 bits)
x264 [warning]: VBV underflow (-38736 bits)
x264 [warning]: VBV underflow (-48848 bits)
Flushing video frames.
Video stream: 264909.637 kbit/s (33113704 B/s) size: 1490227200 bytes 45.003 secs 1079 frames
x264 [warning]: VBV underflow (-27819 bits)
x264 [warning]: VBV underflow (-155890 bits)
x264 [warning]: VBV underflow (-68296 bits)
x264 [warning]: VBV underflow (-63816 bits)
x264 [warning]: VBV underflow (-83712 bits)
x264 [warning]: VBV underflow (-89681 bits)
x264 [warning]: VBV underflow (-7928 bits)
======================================
于是把vbv_bufsize设置为和vbv_maxrate相同的3100,underflow告警消失了
此时最大码流4160k,文件大小14061k