[FFmpeg-devel] [PATCH 0/8] improve text subtitles muxing/demuxing

Aurelien Jacobs aurel
Wed Jul 21 11:52:43 CEST 2010


The following series improve text subtitles muxing/demuxing support.

It first share and improve the get_line() function from assdec so that
if can be re-used by the SRT demuxer.

It then implements a SubRip (SRT) muxer and demuxer.

It also add seeking support in the ASS demuxer.

Finally, it implements support for subtitles in AVI demuxer. It does so
by calling av_open_input_stream(), av_read_packet() and avformat_seek_file()
on the buffer containing the whole text subtitle.
I have tested this successfully with SRT and ASS embedded in AVI, including
correct seeking without outputing more packets than needed.

---

Aurelien Jacobs (8):
      rename get_line to ff_get_line
      move ff_get_line to aviobuf.c
      improve get_line to return line length
      document ff_get_line()
      use return value of ff_get_line()
      add SRT muxer and demuxer
      add seeking support in ASS demuxer
      avidec: demux ASS and SRT tracks


 Changelog                |    1 
 doc/general.texi         |    1 
 libavcodec/avcodec.h     |    1 
 libavformat/Makefile     |    2 +
 libavformat/allformats.c |    1 
 libavformat/assdec.c     |   60 ++++++++++++++++-------
 libavformat/avformat.h   |    2 -
 libavformat/avidec.c     |  119 +++++++++++++++++++++++++++++++++++++++++++++-
 libavformat/aviobuf.c    |   15 ++++++
 libavformat/internal.h   |   13 +++++
 libavformat/raw.c        |   12 +++++
 libavformat/srtdec.c     |  102 +++++++++++++++++++++++++++++++++++++++
 12 files changed, 307 insertions(+), 22 deletions(-)
 create mode 100644 libavformat/srtdec.c

-- 
Aurel



More information about the ffmpeg-devel mailing list