• 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
options_table.h 11.6 KB