FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
webvttenc.c File Reference

WebVTT subtitle muxer. More...

#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Functions

static void webvtt_write_time (AVIOContext *pb, int64_t millisec)
 
static int webvtt_write_header (AVFormatContext *ctx)
 
static int webvtt_write_packet (AVFormatContext *ctx, AVPacket *pkt)
 

Variables

AVOutputFormat ff_webvtt_muxer
 

Detailed Description

WebVTT subtitle muxer.

See Also
http://dev.w3.org/html5/webvtt/

Definition in file webvttenc.c.

Function Documentation

static void webvtt_write_time ( AVIOContext pb,
int64_t  millisec 
)
static

Definition at line 30 of file webvttenc.c.

Referenced by webvtt_write_packet().

static int webvtt_write_header ( AVFormatContext ctx)
static

Definition at line 46 of file webvttenc.c.

static int webvtt_write_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 59 of file webvttenc.c.

Variable Documentation

AVOutputFormat ff_webvtt_muxer
Initial value:
= {
.name = "webvtt",
.long_name = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
.extensions = "vtt",
.mime_type = "text/vtt",
.subtitle_codec = AV_CODEC_ID_WEBVTT,
.write_header = webvtt_write_header,
.write_packet = webvtt_write_packet,
}
static int webvtt_write_header(AVFormatContext *ctx)
Definition: webvttenc.c:46
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:483
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: webvttenc.c:59
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:475

Definition at line 91 of file webvttenc.c.