Allows expansion of the filename template with strftime() with the option
-strftime 1 (disabled by default). This allows segments to be named by time of
creation, adding some flexibility.
Fixes Ticket 4104 (add strftime to segment muxer)
Signed-off-by: Pedro E. M. Brito <pedroembrito@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/101/head
Pedro E. M. Brito10 years agocommitted byMichael Niedermayer
{"segment_list_entry_prefix","set base url prefix for segments",OFFSET(entry_prefix),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},
{"segment_start_number","set the sequence number of the first segment",OFFSET(segment_idx),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,E},
{"segment_wrap_number","set the number of wrap before the first segment",OFFSET(segment_idx_wrap_nb),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,E},
{"strftime","set filename expansion with strftime at segment creation",OFFSET(use_strftime),AV_OPT_TYPE_INT,{.i64=0},0,1,E},
{"individual_header_trailer","write header/trailer to each segment",OFFSET(individual_header_trailer),AV_OPT_TYPE_INT,{.i64=1},0,1,E},
{"write_header_trailer","write a header to the first segment and a trailer to the last one",OFFSET(write_header_trailer),AV_OPT_TYPE_INT,{.i64=1},0,1,E},