There's no way for the encoder to know whether the input is CFR, so assume VFR. --- libavcodec/libx264.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index adda881..72fd390 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -381,8 +381,9 @@ static av_cold int X264_init(AVCodecContext *avctx) x4->params.i_height = avctx->height; x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; - x4->params.i_fps_num = x4->params.i_timebase_den = avctx->time_base.den; - x4->params.i_fps_den = x4->params.i_timebase_num = avctx->time_base.num; + x4->params.i_timebase_den = avctx->time_base.den; + x4->params.i_timebase_num = avctx->time_base.num; + x4->params.b_vfr_input = 1; x4->params.analyse.b_psnr = avctx->flags & CODEC_FLAG_PSNR; -- 1.7.10.4 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel