Re: [FFmpeg-devel] [PATCH 1/2 v3] movenc: Add an option for enabling negative CTS offsets

2017-09-28 Thread Michael Niedermayer
On Tue, Sep 26, 2017 at 02:55:30AM +0300, Jan Ekström wrote: > From: Martin Storsjö > > 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

[FFmpeg-devel] [PATCH 1/2 v3] movenc: Add an option for enabling negative CTS offsets

2017-09-25 Thread Jan Ekström
From: Martin Storsjö 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