Re: [FFmpeg-devel] [PATCHv2] movenc: Write durations based on pts into mvhd/mdhd/tkhd/elst

2020-01-09 Thread Michael Niedermayer
On Thu, Jan 09, 2020 at 11:32:03PM +0200, Martin Storsjö wrote: > On Wed, 8 Jan 2020, Martin Storsjö wrote: > > >On Fri, 20 Dec 2019, Michael Niedermayer wrote: > > > >>On Tue, Dec 17, 2019 at 03:15:09PM +0200, Martin Storsjö wrote: > >>>Keep all the existing data fields as they are (there's lots

Re: [FFmpeg-devel] [PATCHv2] movenc: Write durations based on pts into mvhd/mdhd/tkhd/elst

2020-01-09 Thread Martin Storsjö
On Wed, 8 Jan 2020, Martin Storsjö wrote: On Fri, 20 Dec 2019, Michael Niedermayer wrote: On Tue, Dec 17, 2019 at 03:15:09PM +0200, Martin Storsjö wrote: Keep all the existing data fields as they are (there's lots and lots of nontrivial calculation and heuristics based on them in their

Re: [FFmpeg-devel] [PATCHv2] movenc: Write durations based on pts into mvhd/mdhd/tkhd/elst

2020-01-08 Thread Martin Storsjö
On Fri, 20 Dec 2019, Michael Niedermayer wrote: On Tue, Dec 17, 2019 at 03:15:09PM +0200, Martin Storsjö wrote: Keep all the existing data fields as they are (there's lots and lots of nontrivial calculation and heuristics based on them in their current form), but derive the duration as the

Re: [FFmpeg-devel] [PATCHv2] movenc: Write durations based on pts into mvhd/mdhd/tkhd/elst

2019-12-20 Thread Michael Niedermayer
On Tue, Dec 17, 2019 at 03:15:09PM +0200, Martin Storsjö wrote: > Keep all the existing data fields as they are (there's lots and > lots of nontrivial calculation and heuristics based on them in > their current form), but derive the duration as the difference > between the pts of the first packet

[FFmpeg-devel] [PATCHv2] movenc: Write durations based on pts into mvhd/mdhd/tkhd/elst

2019-12-17 Thread Martin Storsjö
Keep all the existing data fields as they are (there's lots and lots of nontrivial calculation and heuristics based on them in their current form), but derive the duration as the difference between the pts of the first packet to the maximum pts+duration (not necessarily the last packet); use this