From d09254a658365b89fc4430e88e18fef04de432be Mon Sep 17 00:00:00 2001 From: gnattu Date: Thu, 20 Oct 2022 20:11:38 +0800 Subject: avformat/hls: Add option to retry failed segments for hls Current HLS implementation simply skip a failed segment to catch up the stream, but this is not optimal for some use cases like livestream recording. Add an option to retry a failed segment to ensure the output file is a complete stream. Signed-off-by: gnattu Reviewed-by: Steven Liu --- doc/demuxers.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/demuxers.texi b/doc/demuxers.texi index f07f3f5318..3c81024f03 100644 --- a/doc/demuxers.texi +++ b/doc/demuxers.texi @@ -419,6 +419,10 @@ Use HTTP partial requests for downloading HTTP segments. @item seg_format_options Set options for the demuxer of media segments using a list of key=value pairs separated by @code{:}. + +@item seg_max_retry +Maximum number of times to reload a segment on error, useful when segment skip on network error is not desired. +Default value is 0. @end table @section image2 -- cgit v1.2.3