qtmux: Allow configuring the interleave size in bytes/time
authorSebastian Dröge <sebastian@centricular.com>
Wed, 19 Oct 2016 11:25:28 +0000 (14:25 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 18:41:22 +0000 (20:41 +0200)
commitc2225781bbafff8f70866cf06ad757befa81aa8b
tree3116845c897d11ef1acaa9b66bf2237ff7e7727c
parentcba6cc4fd45c5612c430260670f4762d181ba922
qtmux: Allow configuring the interleave size in bytes/time

Previously we were switching from one chunk to another on every single
buffer. This wastes some space in the headers and, depending on the
software, might depend in more reads (e.g. if the software is reading
multiple samples in one go if they're in the same chunk).

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. This will be handled in a follow-up commit.

https://bugzilla.gnome.org/show_bug.cgi?id=773217
gst/isomp4/atoms.c
gst/isomp4/gstqtmux.c
gst/isomp4/gstqtmux.h