[FFmpeg-devel] [PATCH 2/2] refactored semidec

Yayoi Ukai yayoi.ukai at gmail.com
Fri Apr 10 19:49:51 CEST 2015


>
>> Sorry I should have written that out. It adds the color etc support when
>> you convert semi format subtitles to ass format.
>> The code was already there from src to ass. So it is refactored to extend
>> the support for semi format subtitles to convert ass format.
>> I tested with these files.  (Attached..)
>
> So, as I understand, both use HTML-like syntax for formatting, and they
> are compatible (the syntax doesn't conflict between the 2 formats)?


After parsed by srtdec.c or samide.c, yes, they are the mostly
compatible. If you look at the test files,

this one is from in.srt file:

<font size="8">This text should be small</font>

and

and this one is from inr.srt file.

<font color="#B3E4FF">Мосимо накитай токи га ару нара,</font><br>Если
вдруг тебе плохо и хочется плакать

It looks quite the same right? (Both inline styling of html markup)

So each original files (srtdec.c and samidec.c) take care of
parsing/converting to the point that these above texts are needed to
convert to ass format.

The original function (that is extracted to be htmlsubtitle.c,) which
takes care of these html-style text to ass format, was not quite 100%
compatible with sami format tags..(but almost).  For example, it
didn't have <br> support. (which I need more proper fix now. and
that's the goal of this patch!) So I guess sami format has more html
tag used.






> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list