[FFmpeg-devel] [updated PATCH] Make srtenc accept text-only (type SUBTITLE_TEXT) subtitles

Clément Bœsch ubitux at gmail.com
Thu Aug 30 19:44:27 CEST 2012

On Thu, Aug 30, 2012 at 03:08:51PM +0200, Wolfram Gloger wrote:
> After 80days, a rebase to current git.
> Please apply or comment.
> Thanks,
> Wolfram
> Wolfram Gloger <wmglo at dent.med.uni-muenchen.de> writes:
> >> Make srtenc accept text-only (type SUBTITLE_TEXT) subtitles.
> >
> > Any comments?
> >
> > Even in the light of recent discussion, this makes srtenc more generic
> > and is a prerequisite for my teletext decoder (which can also optionally
> > generate bitmaps, but plain UTF-8 text seems much more attractive when
> > transcoding to a suitable format such as mkv).

Currently, we make all the text decoders output to SUBTITLE_ASS (the
common internal format), and actually it seems no subtitles text encoder
will deal very well with SUBTITLE_TEXT (no git grep match all over the
code base). Is it too much pain to make the decoder output ASS? See
lavc/subviewerdec.c for a simple example using the ASS helpers.

A more correct solution IMO would be to add some SUBTITLE_TEXT <->
SUBTITLE_ASS conversion code before sending them to the encoder depending
on its capabilities, since I'm not very happy about requiring the encoders
to support multiple types of input just for encoding "text" subtitles. We
have encoders helper to split ASS subtitles; not sure about getting a
non-markup version of them.


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/20120830/7a2a61fa/attachment.asc>

More information about the ffmpeg-devel mailing list