[FFmpeg-devel] [PATCH] lavf: WebVTT demuxer and decoder.

Clément Bœsch ubitux at gmail.com
Thu Sep 20 18:30:01 CEST 2012


On Mon, Sep 17, 2012 at 12:25:27AM +0200, Clément Bœsch wrote:
> On Thu, Sep 06, 2012 at 04:48:11AM +0200, Clément Bœsch wrote:
> > TODO:
> >  - demuxer: export cue settings through side_data
> >  - decoder: honor at least the basic tags
> >  - lavf/lavc micro bump
> >  - Changelog entry
> > ---
> > Here we go, another WIP (sorry for the spam). I'm still not sure on how to
> > factorize the tags parsing between lavc/webvttdec and lavc/srtdec, so for now
> > I'm just skipping every markup (and also because we are still in meditation
> > about a way to store the styles...).
> > 
> > Maybe this WIP is good enough for a first version with an experimental bit, but
> > there is nothing urgent for such support anyway.
> > ---
> 
> The new attached version should be good enough for most of the common
> cases. I'd like to push in a few days if there is no objection.
> 
> The decoder is pretty simple (it supports the common tags with a basic
> search & replace with ASS tags), but it should be enough until we write
> the new subtitles API.
> 
> Best regards,
> 
> -- 
> Clément B.

> From 862b55dedf482c6a8eeaac2c52245501624a2987 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <ubitux at gmail.com>
> Date: Sat, 1 Sep 2012 14:34:24 +0200
> Subject: [PATCH] lavf: WebVTT demuxer and decoder.
> 
> TODO:
>  - lavf/lavc micro bump
>  - Changelog entry
> ---
>  doc/general.texi          |   1 +
>  libavcodec/Makefile       |   1 +
>  libavcodec/allcodecs.c    |   1 +
>  libavcodec/avcodec.h      |   1 +
>  libavcodec/codec_desc.c   |   6 ++
>  libavcodec/webvttdec.c    | 100 ++++++++++++++++++++++++
>  libavformat/Makefile      |   1 +
>  libavformat/allformats.c  |   1 +
>  libavformat/webvttdec.c   | 188 ++++++++++++++++++++++++++++++++++++++++++++++
>  tests/fate/subtitles.mak  |   3 +
>  tests/ref/fate/sub-webvtt |   1 +
>  11 files changed, 304 insertions(+)
>  create mode 100644 libavcodec/webvttdec.c
>  create mode 100644 libavformat/webvttdec.c
>  create mode 100644 tests/ref/fate/sub-webvtt
[...]

I'll push this between saturday or sunday if I see no comment.

-- 
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: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120920/9a075f54/attachment.asc>


More information about the ffmpeg-devel mailing list