Go to the source code of this file.
|
static int | dash_write (void *opaque, uint8_t *buf, int buf_size) |
|
static void | set_codec_str (AVFormatContext *s, AVCodecContext *codec, char *str, int size) |
|
static void | dash_free (AVFormatContext *s) |
|
static void | output_segment_list (OutputStream *os, AVIOContext *out, DASHContext *c) |
|
static DASHTmplId | dash_read_tmpl_id (const char *identifier, char *format_tag, size_t format_tag_size, const char **ptr) |
|
static void | dash_fill_tmpl_params (char *dst, size_t buffer_size, const char *template, int rep_id, int number, int bit_rate, int64_t time) |
|
static char * | xmlescape (const char *str) |
|
static void | write_time (AVIOContext *out, int64_t time) |
|
static int | write_manifest (AVFormatContext *s, int final) |
|
static int | dash_write_header (AVFormatContext *s) |
|
static int | add_segment (OutputStream *os, const char *file, int64_t time, int duration, int64_t start_pos, int64_t range_length, int64_t index_length) |
|
static void | write_styp (AVIOContext *pb) |
|
static void | find_index_range (AVFormatContext *s, const char *dirname, const char *filename, int64_t pos, int *index_length) |
|
static int | dash_flush (AVFormatContext *s, int final, int stream) |
|
static int | dash_write_packet (AVFormatContext *s, AVPacket *pkt) |
|
static int | dash_write_trailer (AVFormatContext *s) |
|
- Enumerator:
DASH_TMPL_ID_UNDEFINED |
|
DASH_TMPL_ID_ESCAPE |
|
DASH_TMPL_ID_REP_ID |
|
DASH_TMPL_ID_NUMBER |
|
DASH_TMPL_ID_BANDWIDTH |
|
DASH_TMPL_ID_TIME |
|
Definition at line 42 of file dashenc.c.
static int dash_write |
( |
void * |
opaque, |
|
|
uint8_t * |
buf, |
|
|
int |
buf_size |
|
) |
| |
|
static |
static DASHTmplId dash_read_tmpl_id |
( |
const char * |
identifier, |
|
|
char * |
format_tag, |
|
|
size_t |
format_tag_size, |
|
|
const char ** |
ptr |
|
) |
| |
|
static |
static void dash_fill_tmpl_params |
( |
char * |
dst, |
|
|
size_t |
buffer_size, |
|
|
const char * |
template, |
|
|
int |
rep_id, |
|
|
int |
number, |
|
|
int |
bit_rate, |
|
|
int64_t |
time |
|
) |
| |
|
static |
static char* xmlescape |
( |
const char * |
str | ) |
|
|
static |
static int add_segment |
( |
OutputStream * |
os, |
|
|
const char * |
file, |
|
|
int64_t |
time, |
|
|
int |
duration, |
|
|
int64_t |
start_pos, |
|
|
int64_t |
range_length, |
|
|
int64_t |
index_length |
|
) |
| |
|
static |
static void find_index_range |
( |
AVFormatContext * |
s, |
|
|
const char * |
dirname, |
|
|
const char * |
filename, |
|
|
int64_t |
pos, |
|
|
int * |
index_length |
|
) |
| |
|
static |
Initial value:= {
{
"window_size",
"number of segments kept in the manifest",
OFFSET(window_size),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX,
E },
{
"extra_window_size",
"number of segments kept outside of the manifest before removing from disk",
OFFSET(extra_window_size),
AV_OPT_TYPE_INT, { .i64 = 5 }, 0, INT_MAX,
E },
{
"min_seg_duration",
"minimum segment duration (in microseconds)",
OFFSET(min_seg_duration),
AV_OPT_TYPE_INT64, { .i64 = 5000000 }, 0, INT_MAX,
E },
{
"remove_at_exit",
"remove all segments when finished",
OFFSET(remove_at_exit),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1,
E },
{
"use_template",
"Use SegmentTemplate instead of SegmentList",
OFFSET(use_template),
AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1,
E },
{
"use_timeline",
"Use SegmentTimeline in SegmentTemplate",
OFFSET(use_timeline),
AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1,
E },
{
"single_file",
"Store all segments in one file, accessed using byte ranges",
OFFSET(single_file),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1,
E },
{
"single_file_name",
"DASH-templated name to be used for baseURL. Implies storing all segments in one file, accessed using byte ranges",
OFFSET(single_file_name),
AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0,
E },
{
"init_seg_name",
"DASH-templated name to used for the initialization segment",
OFFSET(init_seg_name),
AV_OPT_TYPE_STRING, {.str =
"init-stream$RepresentationID$.m4s"}, 0, 0,
E },
{
"media_seg_name",
"DASH-templated name to used for the media segments",
OFFSET(media_seg_name),
AV_OPT_TYPE_STRING, {.str =
"chunk-stream$RepresentationID$-$Number%05d$.m4s"}, 0, 0,
E },
{ NULL },
}
Definition at line 900 of file dashenc.c.
Initial value:= {
.class_name = "dash muxer",
}
Definition at line 914 of file dashenc.c.