mbox series

[FFmpeg-devel,v7,0/5] Initial implementation of TTML encoding/muxing

Message ID 20210304174830.53798-1-jeebjp@gmail.com
Headers show
Series Initial implementation of TTML encoding/muxing
Related show

Message

Jan Ekström March 4, 2021, 5:48 p.m. UTC
I've intentionally kept this initial version simple (no styling etc) to focus
on the basics. As this goes through review, additional features can be added
(I had initial PoC for styling implemented some time around previous VDD), and
there is another patch set in my queue which would then add support for muxing
TTML into MP4.

Changes from the sixth version:
  - Split the lavc and lavf bits.

Jan

Jan Ekström (4):
  ffprobe: switch to av_bprint_escape for XML escaping
  avcodec: enable usage of err_recognition for encoders
  avcodec: add TTML encoder
  avformat: add TTML muxer

Stefano Sabatini (1):
  avutil/{avstring,bprint}: add XML escaping from ffprobe to avutil

 Changelog                  |   1 +
 doc/APIchanges             |   3 +
 doc/general_contents.texi  |   1 +
 fftools/ffprobe.c          |  32 ++----
 libavcodec/Makefile        |   1 +
 libavcodec/allcodecs.c     |   1 +
 libavcodec/avcodec.h       |   2 +-
 libavcodec/options_table.h |  18 ++--
 libavcodec/ttmlenc.c       | 210 +++++++++++++++++++++++++++++++++++++
 libavcodec/ttmlenc.h       |  28 +++++
 libavcodec/version.h       |   2 +-
 libavformat/Makefile       |   1 +
 libavformat/allformats.c   |   1 +
 libavformat/ttmlenc.c      | 174 ++++++++++++++++++++++++++++++
 libavformat/version.h      |   2 +-
 libavutil/avstring.h       |  14 +++
 libavutil/bprint.c         |  29 +++++
 libavutil/version.h        |   2 +-
 tests/fate/subtitles.mak   |   3 +
 tests/ref/fate/ffprobe_xml |   2 +-
 tests/ref/fate/sub-ttmlenc | 122 +++++++++++++++++++++
 tools/ffescape.c           |   7 +-
 22 files changed, 619 insertions(+), 37 deletions(-)
 create mode 100644 libavcodec/ttmlenc.c
 create mode 100644 libavcodec/ttmlenc.h
 create mode 100644 libavformat/ttmlenc.c
 create mode 100644 tests/ref/fate/sub-ttmlenc

Comments

Jan Ekström March 5, 2021, 6:50 p.m. UTC | #1
On Thu, Mar 4, 2021 at 7:48 PM Jan Ekström <jeebjp@gmail.com> wrote:
>
> I've intentionally kept this initial version simple (no styling etc) to focus
> on the basics. As this goes through review, additional features can be added
> (I had initial PoC for styling implemented some time around previous VDD), and
> there is another patch set in my queue which would then add support for muxing
> TTML into MP4.
>
> Changes from the sixth version:
>   - Split the lavc and lavf bits.
>
> Jan

As there were no further comments, applied the set as:

0f6bf94eb71c2d5e996c89c290f1a53660c46c2e
c8c6c9f5d96789001ea628f44cc5602bdc41d5f3
a0eec776b6212b0126f04bbac6bd6af0f6530b76
18713d22a2001321f9917fa4c7735f62563ec0a1
64af14555be2c9e522109e55160e0cb3f65c4690

Jan