[FFmpeg-devel] [updated PATCH] Make srtenc accept text-only (type SUBTITLE_TEXT) subtitles
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.
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 490 bytes
Desc: not available
More information about the ffmpeg-devel