When using hls_list_size with hls_flags delete_segments, currently
hls_list_size * 2 +- segments remain on disk. With this new option,
the amount of disk space used can be controlled by the user.
fix ticket: #7131
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Aman Gupta <aman@tmm1.net>
{"hls_time","set segment length in seconds",OFFSET(time),AV_OPT_TYPE_FLOAT,{.dbl=2},0,FLT_MAX,E},
{"hls_init_time","set segment length in seconds at init list",OFFSET(init_time),AV_OPT_TYPE_FLOAT,{.dbl=0},0,FLT_MAX,E},
{"hls_list_size","set maximum number of playlist entries",OFFSET(max_nb_segments),AV_OPT_TYPE_INT,{.i64=5},0,INT_MAX,E},
{"hls_delete_threshold","set number of unreferenced segments to keep before deleting",OFFSET(hls_delete_threshold),AV_OPT_TYPE_INT,{.i64=1},1,INT_MAX,E},
{"hls_ts_options","set hls mpegts list of options for the container format used for hls",OFFSET(format_options_str),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},
{"hls_vtt_options","set hls vtt list of options for the container format used for hls",OFFSET(vtt_format_options_str),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},