[FFmpeg-devel] [PATCH] avcodec/webvttenc: add webvtt encoder
Clément Bœsch
u at pkh.me
Tue May 13 15:52:19 CEST 2014
On Sun, May 11, 2014 at 02:38:49PM -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 -c:s webvtt output.vtt
Is -c:s webvtt really mandatory?
>
> Signed-off-by: Aman Gupta <ffmpeg at tmm1.net>
> ---
> Changelog | 1 +
> libavcodec/Makefile | 1 +
> libavcodec/allcodecs.c | 2 +-
> libavcodec/webvttenc.c | 255 +++++++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 258 insertions(+), 1 deletion(-)
> create mode 100644 libavcodec/webvttenc.c
>
Could you add a FATE test for this? It's probable the encoding subtitles
API will be reworked at some point, and it will be unfortunate if this
breaks.
[...]
--
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/20140513/7f278770/attachment.asc>
More information about the ffmpeg-devel
mailing list