[FFmpeg-devel] [PATCH v3] avcodec/webvttenc: add webvtt encoder
Clément Bœsch
u at pkh.me
Sun May 25 03:27:25 CEST 2014
On Thu, May 22, 2014 at 09:20:34PM -0700, Aman Gupta wrote:
> 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 at tmm1.net>
> ---
> Changelog | 1 +
> libavcodec/Makefile | 1 +
> libavcodec/allcodecs.c | 2 +-
> libavcodec/webvttenc.c | 219 +++++++++++++++++++++++++++++++++++++++++++
> libavformat/webvttenc.c | 1 +
> tests/fate/subtitles.mak | 3 +
> tests/ref/fate/sub-webvttenc | 1 +
> 7 files changed, 227 insertions(+), 1 deletion(-)
> create mode 100644 libavcodec/webvttenc.c
> create mode 100644 tests/ref/fate/sub-webvttenc
>
Applied with a few modifications:
- updated doc/general.texi
- alphabetical order in libavcodec/Makefile
- bump libavcodec/version.h
- space typo nt in libavcodec/allcodec.c
- \n as return line instead of \r\n (and updated FATE test)
Thank you for the patch
--
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/20140525/9c755e58/attachment.asc>
More information about the ffmpeg-devel
mailing list