Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAman Gupta <ffmpeg@tmm1.net>2014-05-23 08:20:34 +0400
committerClément Bœsch <u@pkh.me>2014-05-25 05:04:14 +0400
commit4372fb7a5722a0b2aa126f4d4e6d617f237918f6 (patch)
tree267baf1675fd2da3cdd8b5f45fb84f7fbe0d770f /libavformat/webvttenc.c
parentd94e255dd114778e58b668968d99f5055112358d (diff)
avcodec/webvttenc: add webvtt encoder
Based off the srt encoder. The following features are unimplemented: - fonts, colors, sizes - alignment and positioning The rest works well. For example, use ffmpeg to convert subtitles into the .vtt format: ffmpeg -i input.srt output.vtt Signed-off-by: Aman Gupta <ffmpeg@tmm1.net> Signed-off-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavformat/webvttenc.c')
-rw-r--r--libavformat/webvttenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c
index bd19a83454..b93993d55c 100644
--- a/libavformat/webvttenc.c
+++ b/libavformat/webvttenc.c
@@ -93,6 +93,7 @@ AVOutputFormat ff_webvtt_muxer = {
.long_name = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
.extensions = "vtt",
.mime_type = "text/vtt",
+ .flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT,
.subtitle_codec = AV_CODEC_ID_WEBVTT,
.write_header = webvtt_write_header,
.write_packet = webvtt_write_packet,