[FFmpeg-devel] [PATCH 0/4] Implement timing-less srt encoder/decoder

Philip Langdale philipl at overt.org
Sun Aug 12 23:26:25 CEST 2012


In the last discussion no how to fix extraction of text subtitles
from matroska containers, we concluded that it was generally
desirable to have a subrip decoder that didn't rely on in-band
timing, and that this would be the right decoder to map to
matroska text subtitles.

This patch accordingly introduces that decoder, and a matching
encoder (currently unused), as well as switching matroska to
decoding S_TEXT/UTF-8 with the new decoder.

I also threw in a fix for the movtext decoder after noticing
a bug while transcoding to mkv.

Philip Langdale (4):
  srtdec: Add timing-less "subrip" decoder.
  matroska: Mark S_TEXT/UTF-8 as Subrip encoded subtitles.
  srtenc: Add timing-less "subrip" encoder.
  movtextdec: Don't emit errors for normal duration-end packets.

 libavcodec/Makefile     |    1 +
 libavcodec/allcodecs.c  |    1 +
 libavcodec/avcodec.h    |    1 +
 libavcodec/movtextdec.c |    2 +-
 libavcodec/srtdec.c     |   31 +++++++++++++++++++++++++++----
 libavcodec/srtenc.c     |   39 ++++++++++++++++++++++++++++-----------
 libavcodec/version.h    |    2 +-
 libavformat/matroska.c  |    2 +-
 8 files changed, 61 insertions(+), 18 deletions(-)

-- 
1.7.9.5



More information about the ffmpeg-devel mailing list