FFmpeg
Functions | Variables
webvttenc.c File Reference
#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

const AVOutputFormat ff_webvtt_muxer
 

Detailed Description

WebVTT subtitle muxer

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

Definition in file webvttenc.c.

Function Documentation

◆ webvtt_write_time()

static void webvtt_write_time ( AVIOContext pb,
int64_t  millisec 
)
static

Definition at line 30 of file webvttenc.c.

Referenced by webvtt_write_packet().

◆ webvtt_write_header()

static int webvtt_write_header ( AVFormatContext ctx)
static

Definition at line 46 of file webvttenc.c.

◆ webvtt_write_packet()

static int webvtt_write_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 64 of file webvttenc.c.

Variable Documentation

◆ ff_webvtt_muxer

const 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 105 of file webvttenc.c.

AVFMT_VARIABLE_FPS
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:478
webvtt_write_header
static int webvtt_write_header(AVFormatContext *ctx)
Definition: webvttenc.c:46
webvtt_write_packet
static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: webvttenc.c:64
AV_CODEC_ID_WEBVTT
@ AV_CODEC_ID_WEBVTT
Definition: codec_id.h:540
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:485