Re: [FFmpeg-devel] [PATCH] avformat: add skip_estimate_duration_from_pts

2018-05-16 Thread Michael Niedermayer
On Tue, May 15, 2018 at 04:06:24PM -0700, Aman Gupta wrote: > From: Aman Gupta > > For seekable mpegts streams, duration is calculated from > pts by seeking to the end of the file for a pts and subtracting > the initial pts to compute a duration. > > This can be expensive in terms of added laten

[FFmpeg-devel] [PATCH] avformat: add skip_estimate_duration_from_pts

2018-05-15 Thread Aman Gupta
From: Aman Gupta For seekable mpegts streams, duration is calculated from pts by seeking to the end of the file for a pts and subtracting the initial pts to compute a duration. This can be expensive in terms of added latency during probe, especially when streaming over a network. This new option