mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +00:00
fmp4mux: For VP9, write resolution into the tkhd and include a stss box to signal that not all frames are sync samples
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/957>
This commit is contained in:
parent
976ae5707e
commit
31d4ba2eae
1 changed files with 2 additions and 2 deletions
|
@ -621,7 +621,7 @@ fn write_tkhd(
|
|||
|
||||
// Width/height
|
||||
match s.name() {
|
||||
"video/x-h264" | "video/x-h265" | "image/jpeg" => {
|
||||
"video/x-h264" | "video/x-h265" | "video/x-vp9" | "image/jpeg" => {
|
||||
let width = s.get::<i32>("width").context("video caps without width")? as u32;
|
||||
let height = s
|
||||
.get::<i32>("height")
|
||||
|
@ -855,7 +855,7 @@ fn write_stbl(
|
|||
// For video write a sync sample box as indication that not all samples are sync samples
|
||||
let s = caps.structure(0).unwrap();
|
||||
match s.name() {
|
||||
"video/x-h264" | "video/x-h265" => {
|
||||
"video/x-h264" | "video/x-h265" | "video/x-vp9" => {
|
||||
write_full_box(v, b"stss", FULL_BOX_VERSION_0, FULL_BOX_FLAGS_NONE, |v| {
|
||||
write_stss(v, cfg)
|
||||
})?
|
||||
|
|
Loading…
Reference in a new issue