[FFmpeg-devel] [PATCH] Decoding of raw UTF-8 text from Ogg streams

ogg.k.ogg.k at googlemail.com ogg.k.ogg.k
Sun Jul 26 15:58:52 CEST 2009


> If Kate allows for formatting above raw UTF-8, I think that the idea
> of ffmpeg's subtitle system is to pass the raw data, and have a
> decoder convert it to plain utf-8 or ass, with the renderer being a

I've started to build upon the previous patch to make the decoding
a separate decoder in libavcodec.
However, the way text is passed to the caller is different. While UTF-8
text is passed as the packet when done in libavformat, libavcodec
fills a AVSubtitle structure, which has a format field, and a comment
saying 0 is for graphics. No enum/define that I can see. No decoder
assigns anything else than 0 to it, and the text and ass fields do not
seem to be used at all (I've checked by commenting them out, in case
there was some weird macro magic, but it all builds fine with these out).
ASS/SSA seems to be just demuxed, with no decoder.

Is this old code ? Preliminary code to be extended later ?
Or am I looking at the wrong code ?

Thanks



More information about the ffmpeg-devel mailing list