diff --git a/subprojects/gst-libav/ext/libav/gstavmux.c b/subprojects/gst-libav/ext/libav/gstavmux.c index 9f907e2692..60da7f0c29 100644 --- a/subprojects/gst-libav/ext/libav/gstavmux.c +++ b/subprojects/gst-libav/ext/libav/gstavmux.c @@ -486,6 +486,9 @@ gst_ffmpegmux_setcaps (GstPad * pad, GstObject * parent, GstCaps * caps) /* copy over the aspect ratios, ffmpeg expects the stream aspect to match the * codec aspect. */ st->sample_aspect_ratio = st->codecpar->sample_aspect_ratio; + /* copy over the frame rate to be used in the container format. */ + st->time_base.num = tmp.time_base.num; + st->time_base.den = tmp.time_base.den; GST_LOG_OBJECT (pad, "accepted caps %" GST_PTR_FORMAT, caps); return TRUE;