You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avconv: set the encoding framerate when the output is CFR
This commit is contained in:
2
avconv.c
2
avconv.c
@@ -1978,6 +1978,8 @@ static int init_output_stream_encode(OutputStream *ost)
|
|||||||
ost->filter->filter->inputs[0]->sample_aspect_ratio;
|
ost->filter->filter->inputs[0]->sample_aspect_ratio;
|
||||||
enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format;
|
enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format;
|
||||||
|
|
||||||
|
enc_ctx->framerate = ost->frame_rate;
|
||||||
|
|
||||||
ost->st->avg_frame_rate = ost->frame_rate;
|
ost->st->avg_frame_rate = ost->frame_rate;
|
||||||
|
|
||||||
if (dec_ctx &&
|
if (dec_ctx &&
|
||||||
|
Reference in New Issue
Block a user