When user use the hls_wrap, there have many problem:
1. some platform refersh the old but usefull segment
2. CDN(Content Delivery Network) Deliver HLS not friendly
The hls_wrap is used to wrap segments for use little space,
now user can use hls_list_size and hls_flags delete_segments
instead it.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
{"hls_list_size","set maximum number of playlist entries",OFFSET(max_nb_segments),AV_OPT_TYPE_INT,{.i64=5},0,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},
{"hls_wrap","set number after which the index wraps",OFFSET(wrap),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,E},
#if FF_API_HLS_WRAP
{"hls_wrap","set number after which the index wraps (will be deprecated)",OFFSET(wrap),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,E},
#endif
{"hls_allow_cache","explicitly set whether the client MAY (1) or MUST NOT (0) cache media segments",OFFSET(allowcache),AV_OPT_TYPE_INT,{.i64=-1},INT_MIN,INT_MAX,E},
{"hls_base_url","url to prepend to each playlist entry",OFFSET(baseurl),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},
{"hls_segment_filename","filename template for segment files",OFFSET(segment_filename),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},