From 07e4be7ec94cbd8e674a260c939054f018d337eb Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 26 Sep 2017 02:55:30 +0300 Subject: movenc: Add an option for enabling negative CTS offsets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reduces the need for an edit list; streams that start with e.g. dts=-1, pts=0 can be encoded as dts=0, pts=0 (which is valid in mov/mp4) by shifting the dts values of all packets forward. This avoids the need for edit lists for such streams (while they still are needed for audio streams with encoder delay). This eases conformance with the DASH-IF interoperability guidelines. Signed-off-by: Martin Storsjö Signed-off-by: Michael Niedermayer --- doc/muxers.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/muxers.texi') diff --git a/doc/muxers.texi b/doc/muxers.texi index 38d93919e7..91bbe673c5 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -1117,6 +1117,12 @@ on the implicit end of the previous track fragment). @item -write_tmcd Specify @code{on} to force writing a timecode track, @code{off} to disable it and @code{auto} to write a timecode track only for mov and mp4 output (default). +@item -movflags negative_cts_offsets +Enables utilization of version 1 of the CTTS box, in which the CTS offsets can +be negative. This enables the initial sample to have DTS/CTS of zero, and +reduces the need for edit lists for some cases such as video tracks with +B-frames. Additionally, eases conformance with the DASH-IF interoperability +guidelines. @end table @subsection Example -- cgit v1.2.3