FFmpeg
|
hlsenc.c File Reference
#include <float.h>
#include "libavutil/mathematics.h"
#include "libavutil/parseutils.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/log.h"
#include "avformat.h"
#include "internal.h"
Include dependency graph for hlsenc.c:
Go to the source code of this file.
Data Structures | |
struct | ListEntry |
struct | HLSContext |
Macros | |
#define | OFFSET(x) offsetof(HLSContext, x) |
#define | E AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
typedef struct ListEntry | ListEntry |
typedef struct HLSContext | HLSContext |
Functions | |
static int | hls_mux_init (AVFormatContext *s) |
static int | append_entry (HLSContext *hls, uint64_t duration) |
static void | free_entries (HLSContext *hls) |
static int | hls_window (AVFormatContext *s, int last) |
static int | hls_start (AVFormatContext *s) |
static int | hls_write_header (AVFormatContext *s) |
static int | hls_write_packet (AVFormatContext *s, AVPacket *pkt) |
static int | hls_write_trailer (struct AVFormatContext *s) |
Variables | |
static const AVOption | options [] |
static const AVClass | hls_class |
AVOutputFormat | ff_hls_muxer |
Macro Definition Documentation
#define E AV_OPT_FLAG_ENCODING_PARAM |
#define OFFSET | ( | x | ) | offsetof(HLSContext, x) |
Typedef Documentation
typedef struct HLSContext HLSContext |
Function Documentation
|
static |
Definition at line 84 of file hlsenc.c.
Referenced by hls_write_packet(), and hls_write_trailer().
|
static |
Definition at line 115 of file hlsenc.c.
Referenced by hls_write_trailer().
|
static |
Definition at line 60 of file hlsenc.c.
Referenced by hls_write_header().
|
static |
Definition at line 161 of file hlsenc.c.
Referenced by hls_write_header(), and hls_write_packet().
|
static |
Definition at line 126 of file hlsenc.c.
Referenced by hls_write_packet(), and hls_write_trailer().
|
static |
|
static |
|
static |
Variable Documentation
AVOutputFormat ff_hls_muxer |
Initial value:
= {
.name = "hls",
.long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"),
.extensions = "m3u8",
.priv_data_size = sizeof(HLSContext),
.audio_codec = AV_CODEC_ID_MP2,
.video_codec = AV_CODEC_ID_MPEG2VIDEO,
.priv_class = &hls_class,
}
static int write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: libavformat/assenc.c:63
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: hlsenc.c:250
struct HLSContext HLSContext
Definition: libavcodec/avcodec.h:381
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:345
|
static |
Initial value:
= {
.class_name = "hls muxer",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
|
static |
Initial value:
= {
{"start_number", "set first number in the sequence", OFFSET(sequence),AV_OPT_TYPE_INT64, {.i64 = 0}, 0, INT64_MAX, E},
{"hls_time", "set segment length in seconds", OFFSET(time), AV_OPT_TYPE_FLOAT, {.dbl = 2}, 0, FLT_MAX, E},
{"hls_list_size", "set maximum number of playlist entries", OFFSET(size), AV_OPT_TYPE_INT, {.i64 = 5}, 0, INT_MAX, E},
{"hls_wrap", "set number after which the index wraps", OFFSET(wrap), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, E},
{ NULL },
}
Definition: opt.h:223
Definition: opt.h:222
Definition: opt.h:225
Generated on Mon Nov 18 2024 06:52:06 for FFmpeg by 1.8.11