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,
}

Definition at line 91 of file webvttenc.c.