currently master playlist and subtitle playlist creation does not use
temporary files even when temp_file flag is set. Most of the use cases
it is not a problem because master playlist creation happens once on the
beginning of the whole process. But if master playlist is periodically
re-created because of master_pl_refresh_rate is set, non-atomic playlist
creation may cause problems in case of live streaming. This patch
correct this behavior by adding this functionality.
Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
{"hls_fmp4_init_filename","set fragment mp4 file init filename",OFFSET(fmp4_init_filename),AV_OPT_TYPE_STRING,{.str="init.mp4"},0,0,E},
{"hls_flags","set flags affecting HLS playlist and media file generation",OFFSET(flags),AV_OPT_TYPE_FLAGS,{.i64=0},0,UINT_MAX,E,"flags"},
{"single_file","generate a single media file indexed with byte ranges",0,AV_OPT_TYPE_CONST,{.i64=HLS_SINGLE_FILE},0,UINT_MAX,E,"flags"},
{"temp_file","write segment to temporary file and rename when complete",0,AV_OPT_TYPE_CONST,{.i64=HLS_TEMP_FILE},0,UINT_MAX,E,"flags"},
{"temp_file","write segment and playlist to temporary file and rename when complete",0,AV_OPT_TYPE_CONST,{.i64=HLS_TEMP_FILE},0,UINT_MAX,E,"flags"},
{"delete_segments","delete segment files that are no longer part of the playlist",0,AV_OPT_TYPE_CONST,{.i64=HLS_DELETE_SEGMENTS},0,UINT_MAX,E,"flags"},
{"round_durations","round durations in m3u8 to whole numbers",0,AV_OPT_TYPE_CONST,{.i64=HLS_ROUND_DURATIONS},0,UINT_MAX,E,"flags"},
{"discont_start","start the playlist with a discontinuity tag",0,AV_OPT_TYPE_CONST,{.i64=HLS_DISCONT_START},0,UINT_MAX,E,"flags"},