Go to the source code of this file.
|
static void | print_csv_escaped_str (AVIOContext *ctx, const char *str) |
|
static int | segment_mux_init (AVFormatContext *s) |
|
static int | set_segment_filename (AVFormatContext *s) |
|
static int | segment_start (AVFormatContext *s, int write_header) |
|
static int | segment_list_open (AVFormatContext *s) |
|
static void | segment_list_close (AVFormatContext *s) |
|
static int | segment_end (AVFormatContext *s, int write_trailer) |
|
static int | parse_times (void *log_ctx, int64_t **times, int *nb_times, const char *times_str) |
|
static int | parse_frames (void *log_ctx, int **frames, int *nb_frames, const char *frames_str) |
|
static int | open_null_ctx (AVIOContext **ctx) |
|
static void | close_null_ctx (AVIOContext *pb) |
|
static int | seg_write_header (AVFormatContext *s) |
|
static int | seg_write_packet (AVFormatContext *s, AVPacket *pkt) |
|
static int | seg_write_trailer (struct AVFormatContext *s) |
|
#define SEGMENT_LIST_FLAG_CACHE 1 |
#define SEGMENT_LIST_FLAG_LIVE 2 |
#define FAIL |
( |
|
err | ) |
ret = err; goto end |
#define FAIL |
( |
|
err | ) |
ret = err; goto end |
- Enumerator:
LIST_TYPE_UNDEFINED |
|
LIST_TYPE_FLAT |
|
LIST_TYPE_CSV |
|
LIST_TYPE_M3U8 |
|
LIST_TYPE_EXT |
deprecated
|
LIST_TYPE_NB |
|
Definition at line 41 of file segment.c.
static int parse_times |
( |
void * |
log_ctx, |
|
|
int64_t ** |
times, |
|
|
int * |
nb_times, |
|
|
const char * |
times_str |
|
) |
| |
|
static |
static int parse_frames |
( |
void * |
log_ctx, |
|
|
int ** |
frames, |
|
|
int * |
nb_frames, |
|
|
const char * |
frames_str |
|
) |
| |
|
static |
Initial value:= {
{
"reference_stream",
"set reference stream",
OFFSET(reference_stream_specifier),
AV_OPT_TYPE_STRING, {.str =
"auto"}, CHAR_MIN, CHAR_MAX,
E },
{
"segment_list_size",
"set the maximum number of playlist entries",
OFFSET(list_size),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX,
E },
{
"segment_time_delta",
"set approximation value used for the segment times",
OFFSET(time_delta_str),
AV_OPT_TYPE_STRING, {.str =
"0"}, 0, 0,
E },
{
"segment_wrap",
"set number after which the index wraps",
OFFSET(segment_idx_wrap),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX,
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 },
{
"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 },
{
"reset_timestamps",
"reset timestamps at the begin of each segment",
OFFSET(reset_timestamps),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1,
E },
}
Definition at line 696 of file segment.c.
Initial value:= {
.class_name = "segment muxer",
}
Definition at line 727 of file segment.c.
Initial value:= {
.class_name = "stream_segment muxer",
}
Definition at line 745 of file segment.c.
Initial value:= {
.name = "stream_segment,ssegment",
}
Definition at line 752 of file segment.c.