[FFmpeg-devel] [PATCH v2] avcodec/webvttenc: add webvtt encoder

Clément Bœsch u at pkh.me
Thu May 22 21:22:15 CEST 2014


On Tue, May 13, 2014 at 04:00:52PM -0700, ffmpeg at tmm1.net wrote:
> From: Aman Gupta <ffmpeg at tmm1.net>
> 
> Mostly a copy of the srt encoder in libavcodec/srtenc.c.
> The alignment and move callbacks are unimplemented, but the rest works well.
> With this patch, ffmpeg can be used to convert subtitles into the .vtt format:
> 
>   ffmpeg -i input.srt output.vtt
> 
> Signed-off-by: Aman Gupta <ffmpeg at tmm1.net>
> ---
>  Changelog                    |   1 +
>  libavcodec/Makefile          |   1 +
>  libavcodec/allcodecs.c       |   2 +-
>  libavcodec/webvttenc.c       | 255 +++++++++++++++++++++++++++++++++++++++++++
>  libavformat/webvttenc.c      |   1 +
>  tests/fate/subtitles.mak     |   3 +
>  tests/ref/fate/sub-webvttenc |   1 +
>  7 files changed, 263 insertions(+), 1 deletion(-)
>  create mode 100644 libavcodec/webvttenc.c
>  create mode 100644 tests/ref/fate/sub-webvttenc
> 

Sorry I was ready to apply but I realized you kept the <font> tag
generation from srt. Are you sure this tag is supported the same in
WebVTT? I wouldn't want FFmpeg to generate .vtt sub file invalid because
of this.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140522/e96f508e/attachment.asc>


More information about the ffmpeg-devel mailing list