Sequence numbers of segments should be unique, if an encoder is using shorter
than 1 second segments and it is restarted, then future segments will be using
already used sequence numbers if initial sequence number is based on the number
of seconds since epoch and not microseconds.
Signed-off-by: Marton Balint <cus@passwd.hu>
{"method","set the HTTP method(default: PUT)",OFFSET(method),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},
{"hls_start_number_source","set source of first number in sequence",OFFSET(start_sequence_source_type),AV_OPT_TYPE_INT,{.i64=HLS_START_SEQUENCE_AS_START_NUMBER},0,HLS_START_SEQUENCE_AS_FORMATTED_DATETIME,E,"start_sequence_source_type"},
{"hls_start_number_source","set source of first number in sequence",OFFSET(start_sequence_source_type),AV_OPT_TYPE_INT,{.i64=HLS_START_SEQUENCE_AS_START_NUMBER},0,HLS_START_SEQUENCE_LAST-1,E,"start_sequence_source_type"},
{"generic","start_number value (default)",0,AV_OPT_TYPE_CONST,{.i64=HLS_START_SEQUENCE_AS_START_NUMBER},INT_MIN,INT_MAX,E,"start_sequence_source_type"},
{"epoch","seconds since epoch",0,AV_OPT_TYPE_CONST,{.i64=HLS_START_SEQUENCE_AS_SECONDS_SINCE_EPOCH},INT_MIN,INT_MAX,E,"start_sequence_source_type"},
{"epoch_us","microseconds since epoch",0,AV_OPT_TYPE_CONST,{.i64=HLS_START_SEQUENCE_AS_MICROSECONDS_SINCE_EPOCH},INT_MIN,INT_MAX,E,"start_sequence_source_type"},
{"datetime","current datetime as YYYYMMDDhhmmss",0,AV_OPT_TYPE_CONST,{.i64=HLS_START_SEQUENCE_AS_FORMATTED_DATETIME},INT_MIN,INT_MAX,E,"start_sequence_source_type"},
{"http_user_agent","override User-Agent field in HTTP header",OFFSET(user_agent),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},