aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2023-09-12 01:03:58 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-09-14 18:49:51 +0800
commita8d9da4c8b574dab4f35f4b6802f52b1bc0156cc (patch)
treef7d76d0369bd5d384957bf47caddaa2b9cd75bc9 /doc
parent6434e440039910f12f7c08072b7db3c5e99c3025 (diff)
downloadffmpeg-a8d9da4c8b574dab4f35f4b6802f52b1bc0156cc.tar.gz
avformat/mov: add interleaved_read option
For badly interleaved files, interleave packets from multiple tracks at the demuxer level can trigger seeking back and forth, which can be dramatically slow depending on the protocol. Demuxer level interleave can be useless sometimes, e.g., reading mp4 via http and then transcoding/remux to DASH. Disable this option when you don't need the demuxer level interleave, and want to avoid the IO penalizes. Co-authored-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/demuxers.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/demuxers.texi b/doc/demuxers.texi
index 2d33b47a56..ca1563abb0 100644
--- a/doc/demuxers.texi
+++ b/doc/demuxers.texi
@@ -779,6 +779,13 @@ cast to int32 are used to adjust onward dts.
Unit is the track time scale. Range is 0 to UINT_MAX. Default is @code{UINT_MAX - 48000*10} which allows upto
a 10 second dts correction for 48 kHz audio streams while accommodating 99.9% of @code{uint32} range.
+
+@item interleaved_read
+Interleave packets from multiple tracks at demuxer level. For badly interleaved files, this prevents playback issues
+caused by large gaps between packets in different tracks, as MOV/MP4 do not have packet placement requirements.
+However, this can cause excessive seeking on very badly interleaved files, due to seeking between tracks, so disabling
+it may prevent I/O issues, at the expense of playback.
+
@end table
@subsection Audible AAX