mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-02 09:43:48 +00:00
Update to m3u8-rs 6
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2117>
This commit is contained in:
parent
ceda820236
commit
2cd3d089aa
8 changed files with 15 additions and 15 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -5018,9 +5018,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "m3u8-rs"
|
||||
version = "5.0.5"
|
||||
version = "6.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0c1d7ba86f7ea62f17f4310c55e93244619ddc7dadfc7e565de1967e4e41e6e7"
|
||||
checksum = "f03cd3335fb5f2447755d45cda9c70f76013626a9db44374973791b0926a86c3"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"nom 7.1.3",
|
||||
|
|
|
@ -26,7 +26,7 @@ path = "src/lib.rs"
|
|||
gst-app = { workspace = true, features = ["v1_18"] }
|
||||
gst-check = { workspace = true, features = ["v1_18"] }
|
||||
gst-pbutils = { workspace = true, features = ["v1_20"] }
|
||||
m3u8-rs = "5.0"
|
||||
m3u8-rs = "6.0"
|
||||
chrono = "0.4.35"
|
||||
dash-mpd = { version = "0.18", default-features = false }
|
||||
quick-xml = { version = "0.37", features = ["serialize"] }
|
||||
|
|
|
@ -184,7 +184,7 @@ fn update_manifest(state: &mut StreamState) {
|
|||
|
||||
let playlist = MediaPlaylist {
|
||||
version: Some(7),
|
||||
target_duration: 2.5,
|
||||
target_duration: 3,
|
||||
media_sequence: state.media_sequence,
|
||||
segments: state
|
||||
.segments
|
||||
|
@ -421,7 +421,7 @@ impl VideoStream {
|
|||
)
|
||||
.build()?;
|
||||
let mux = gst::ElementFactory::make("cmafmux")
|
||||
.property("fragment-duration", 2500.mseconds())
|
||||
.property("fragment-duration", 3000.mseconds())
|
||||
.property("write-mehd", true)
|
||||
.build()?;
|
||||
let appsink = gst_app::AppSink::builder().buffer_list(true).build();
|
||||
|
@ -469,7 +469,7 @@ impl AudioStream {
|
|||
let mux = gst::ElementFactory::make("cmafmux")
|
||||
.property_from_str("header-update-mode", "update")
|
||||
.property("write-mehd", true)
|
||||
.property("fragment-duration", 2500.mseconds())
|
||||
.property("fragment-duration", 3000.mseconds())
|
||||
.build()?;
|
||||
let appsink = gst_app::AppSink::builder().buffer_list(true).build();
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ fn setup_appsink(appsink: &gst_app::AppSink, name: &str, path: &Path, is_video:
|
|||
|
||||
let playlist = MediaPlaylist {
|
||||
version: Some(7),
|
||||
target_duration: 2.5,
|
||||
target_duration: 3,
|
||||
media_sequence: 0,
|
||||
segments: state
|
||||
.segments
|
||||
|
@ -314,7 +314,7 @@ impl VideoStream {
|
|||
)
|
||||
.build()?;
|
||||
let mux = gst::ElementFactory::make("cmafmux")
|
||||
.property("fragment-duration", 2500.mseconds())
|
||||
.property("fragment-duration", 3000.mseconds())
|
||||
.property_from_str("header-update-mode", "update")
|
||||
.property("write-mehd", true)
|
||||
.build()?;
|
||||
|
@ -372,7 +372,7 @@ impl AudioStream {
|
|||
.build()?;
|
||||
let enc = gst::ElementFactory::make("avenc_aac").build()?;
|
||||
let mux = gst::ElementFactory::make("cmafmux")
|
||||
.property("fragment-duration", 2500.mseconds())
|
||||
.property("fragment-duration", 3000.mseconds())
|
||||
.property_from_str("header-update-mode", "update")
|
||||
.property("write-mehd", true)
|
||||
.build()?;
|
||||
|
|
|
@ -12,7 +12,7 @@ rust-version.workspace = true
|
|||
gst.workspace = true
|
||||
gst-app.workspace = true
|
||||
gio.workspace = true
|
||||
m3u8-rs = "5.0"
|
||||
m3u8-rs = "6.0"
|
||||
chrono = "0.4"
|
||||
gst-pbutils = { workspace = true, features = ["v1_22"] }
|
||||
anyhow = "1"
|
||||
|
@ -26,7 +26,7 @@ thiserror = "2"
|
|||
gst-audio.workspace = true
|
||||
gst-video.workspace = true
|
||||
gst-check.workspace = true
|
||||
m3u8-rs = "5.0"
|
||||
m3u8-rs = "6.0"
|
||||
anyhow = "1"
|
||||
gst-plugin-hlssink3 = { path = "../hlssink3" }
|
||||
gst-plugin-fmp4 = { path = "../../mux/fmp4" }
|
||||
|
|
|
@ -12,7 +12,7 @@ rust-version.workspace = true
|
|||
gst.workspace = true
|
||||
gst-app.workspace = true
|
||||
gio.workspace = true
|
||||
m3u8-rs = "5.0"
|
||||
m3u8-rs = "6.0"
|
||||
chrono = "0.4"
|
||||
sprintf = "0.4"
|
||||
|
||||
|
@ -21,7 +21,7 @@ gst-audio.workspace = true
|
|||
gst-video.workspace = true
|
||||
gst-check.workspace = true
|
||||
gst-pbutils = { workspace = true, features = ["v1_20"] }
|
||||
m3u8-rs = "5.0"
|
||||
m3u8-rs = "6.0"
|
||||
anyhow = "1"
|
||||
|
||||
[build-dependencies]
|
||||
|
|
|
@ -404,7 +404,7 @@ impl HlsCmafSink {
|
|||
|
||||
let playlist = MediaPlaylist {
|
||||
version: Some(6),
|
||||
target_duration: target_duration as f32,
|
||||
target_duration: target_duration as u64,
|
||||
playlist_type,
|
||||
independent_segments: true,
|
||||
..Default::default()
|
||||
|
|
|
@ -499,7 +499,7 @@ impl HlsSink3 {
|
|||
|
||||
let playlist = MediaPlaylist {
|
||||
version: if i_frames_only { Some(4) } else { Some(3) },
|
||||
target_duration: target_duration as f32,
|
||||
target_duration: target_duration as u64,
|
||||
playlist_type,
|
||||
i_frames_only,
|
||||
..Default::default()
|
||||
|
|
Loading…
Reference in a new issue