[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bino-list] Subtitles
From: |
Martin Lambers |
Subject: |
Re: [Bino-list] Subtitles |
Date: |
Fri, 22 Apr 2011 17:10:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 |
On 22/04/11 16:45, Joe wrote:
>> On 20/04/11 12:45, Robert Pliszko wrote:
>>> I've noticed that when I used "<i>", "</i>" or "/" tags in srt/txt/sub
>>> subtitles, bino didn't show subtitle as italic, only display these tags
>>> on screen.
>>
>> Hm, I'm unsure about this. Can you give some more information? There are
>> two cases:
>>
>> 1. Plain text subtitles (such as those in your sample). Are such tags
>> supposed to be supported in plain text subtitles? Is this documented
>> somewhere?
>
> Plain text should be really "plain", however I also have one example of plain
> text subs with html tags - they are in matroska container. Maybe we could
> reuse srt_to_ass from ffmpeg to convert these tags to ASS format. Is it
> possible to call srt_to_ass function from ffmpeg public API?
No, it is not part of the public API.
If a small number of HTML tags often occurs in plain text subtitles, we
could add our own crude conversion (e.g. simply always replace "<i>"
with "{\i}" etc). But is this really necessary, or can we say that plain
text subtitles with tags are just wrong? Is there some documentation on
Matroska plain text subtitles?
>> 2. SRT subtitles. SRT is translated to ASS by FFmpeg for us, so Bino
>> never sees SRT. This conversion from SRT to ASS is done here:
>> <http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/srtdec.c;h=aa73f4
>> c7bf45a74f6dd7ec0789bfe12fea756237;hb=HEAD> line 48-184. This function
>> converts several SRT tags to ASS tags, but not <i>. If <i> is supposed to
>> be supported by SRT, then FFmpeg needs to be fixed.
>
> I believe support for <i> and other HTML tags is there - just look at line
> 151:
> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/srtdec.c;h=aa73f4c7bf45a74f6dd7ec0789bfe12fea756237;hb=HEAD#l151
You are right, I did not see this.
Martin
- [Bino-list] Subtitles - Thank-You!!, Jack Metal, 2011/04/11
- Re: [Bino-list] Subtitles - Thank-You!!, Martin Lambers, 2011/04/12
- Re: [Bino-list] Subtitles, Robert Pliszko, 2011/04/12
- Re: [Bino-list] Subtitles, Martin Lambers, 2011/04/12
- Re: [Bino-list] Subtitles, Robert Pliszko, 2011/04/13
- Re: [Bino-list] Subtitles, Robert Pliszko, 2011/04/20
- Re: [Bino-list] Subtitles, Martin Lambers, 2011/04/20
- Re: [Bino-list] Subtitles, Robert Pliszko, 2011/04/20
- Re: [Bino-list] Subtitles, Martin Lambers, 2011/04/22
- Re: [Bino-list] Subtitles, Joe, 2011/04/22
- Re: [Bino-list] Subtitles,
Martin Lambers <=
- Re: [Bino-list] Subtitles, Martin Lambers, 2011/04/24
- Re: [Bino-list] Subtitles, Martin Lambers, 2011/04/24
- Re: [Bino-list] Subtitles, Martin Lambers, 2011/04/22
Re: [Bino-list] Subtitles - Thank-You!!, Jack Metal, 2011/04/12