fmp4mux: fix hls_live example

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1134>
This commit is contained in:
Josef Kolář 2023-03-12 12:58:17 +01:00
parent f88552ee7f
commit 9e00142b40

View file

@ -463,12 +463,12 @@ impl AudioStream {
let src = gst::ElementFactory::make("audiotestsrc") let src = gst::ElementFactory::make("audiotestsrc")
.property("is-live", true) .property("is-live", true)
.property_from_str("wave", &self.wave) .property_from_str("wave", &self.wave)
.property("fragment-duration", 2500.mseconds())
.build()?; .build()?;
let enc = gst::ElementFactory::make("avenc_aac").build()?; let enc = gst::ElementFactory::make("avenc_aac").build()?;
let mux = gst::ElementFactory::make("cmafmux") let mux = gst::ElementFactory::make("cmafmux")
.property_from_str("header-update-mode", "update") .property_from_str("header-update-mode", "update")
.property("write-mehd", true) .property("write-mehd", true)
.property("fragment-duration", 2500.mseconds())
.build()?; .build()?;
let appsink = gst_app::AppSink::builder().buffer_list(true).build(); let appsink = gst_app::AppSink::builder().buffer_list(true).build();