• Aman Gupta's avatar
    avformat: add skip_estimate_duration_from_pts · 2734f8d6
    Aman Gupta authored
    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 lets you skip the duration calculation, which is useful
    when you don't care about the value and want to save some overhead.
    
    This patch is particularly useful when dealing with live mpegts
    streams. Normally such streams are not seekable, so durations
    are not calculated. However in my case I am dealing with a seekable
    live mpegts stream (networked access to a .ts file which is still
    being appended to).
    Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
    2734f8d6
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...