diff --git a/mux/mp4/src/mp4mux/imp.rs b/mux/mp4/src/mp4mux/imp.rs index 3df3dffc..587d09d5 100644 --- a/mux/mp4/src/mp4mux/imp.rs +++ b/mux/mp4/src/mp4mux/imp.rs @@ -1100,10 +1100,15 @@ impl AggregatorImpl for MP4Mux { match query.view_mut() { QueryViewMut::Caps(q) => { - let allowed_caps = aggregator_pad + let mut allowed_caps = aggregator_pad .current_caps() .unwrap_or_else(|| aggregator_pad.pad_template_caps()); + // Allow framerate change + for s in allowed_caps.make_mut().iter_mut() { + s.remove_field("framerate"); + } + if let Some(filter_caps) = q.filter() { let res = filter_caps .intersect_with_mode(&allowed_caps, gst::CapsIntersectMode::First);