From d10102d23c9467d4eb84f58e0cd12be284b982f6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 1 Oct 2016 11:47:23 +0200 Subject: avconv: set the encoding framerate when the output is CFR --- avconv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/avconv.c b/avconv.c index 59eb300..87923b9 100644 --- a/avconv.c +++ b/avconv.c @@ -1978,6 +1978,8 @@ static int init_output_stream_encode(OutputStream *ost) ost->filter->filter->inputs[0]->sample_aspect_ratio; enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format; + enc_ctx->framerate = ost->frame_rate; + ost->st->avg_frame_rate = ost->frame_rate; if (dec_ctx && -- cgit v1.1