[FFmpeg-devel] [PATCH 0/2] Initial support for fragmented TTML muxing

Jan Ekström jeebjp at gmail.com
Fri Dec 23 14:51:55 EET 2022


This enables pushing TTML together with another track (usually video)
as part of CMAF Ingest, as defined by the DASH-IF Live Media Ingest
Protocol.

Currently does not function well with just the subtitle track unless
the API user explicitly requests fragmentation with a nullptr packet,
as the generic fragmentation decision logic is based on tracks which
do not require squashing.

Currently does support overlapping subtitles, but the implementation
utilizes another packet queue for it, which is probably not optimal.
Recommendations on how to improve things are welcome.

Jan Ekström (2):
  avcodec/avpacket: add functionality to prepend to AVPacketLists
  avformat/movenc: add support for fragmented TTML muxing

 libavcodec/avpacket.c        |  20 +++--
 libavcodec/packet_internal.h |   2 +
 libavformat/movenc.c         |   9 --
 libavformat/movenc_ttml.c    | 163 ++++++++++++++++++++++++++++++++++-
 4 files changed, 176 insertions(+), 18 deletions(-)

-- 
2.38.1



More information about the ffmpeg-devel mailing list