mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
qtmux: Use a default interleave when ProRes is used
The ProRes guidelines suggest an interleave of 0.5s is common, but specifies that for ProRes at most 2MB (for SD) and 4MB (for HD) should be used per chunk. It might also make sense to use similar numbers in general. https://bugzilla.gnome.org/show_bug.cgi?id=773217
This commit is contained in:
parent
c2225781bb
commit
4eaf5ea062
1 changed files with 5 additions and 0 deletions
|
@ -4366,6 +4366,11 @@ gst_qt_mux_video_sink_set_caps (GstQTPad * qtpad, GstCaps * caps)
|
||||||
entry.fourcc = FOURCC_ap4h;
|
entry.fourcc = FOURCC_ap4h;
|
||||||
else if (!g_strcmp0 (variant, "4444xq"))
|
else if (!g_strcmp0 (variant, "4444xq"))
|
||||||
entry.fourcc = FOURCC_ap4x;
|
entry.fourcc = FOURCC_ap4x;
|
||||||
|
|
||||||
|
if (!qtmux->interleave_time_set)
|
||||||
|
qtmux->interleave_time = 500 * GST_MSECOND;
|
||||||
|
if (!qtmux->interleave_bytes_set)
|
||||||
|
qtmux->interleave_bytes = width > 720 ? 4 * 1024 * 1024 : 2 * 1024 * 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!entry.fourcc)
|
if (!entry.fourcc)
|
||||||
|
|
Loading…
Reference in a new issue