[FFmpeg-devel] [PATCH]Support linebreaks in onCaption subtitles
nfxjfg at googlemail.com
Mon May 4 14:53:32 CEST 2015
On Mon, 4 May 2015 10:15:54 +0000 (UTC)
Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Clément Bœsch <u <at> pkh.me> writes:
> > > Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
> > >
> > > > Clément Bœsch <u <at> pkh.me> writes:
> > > >
> > > > > > + text->linebreaks = "<br/>";
> > > > >
> > > > > i'm afraid this won't be enough to support
> > > > > "<br>", "<BR>", "<br />", ...
> > > >
> > > > I only looked at the sample we have, are they
> > > > all valid line breaks?
> > >
> > > Ping, I don't understand your comment.
> > There is nothing to understand: is it explicit in a
> > specs somewhere that the only markup is a line return
> > expressed by the specific string "<br/>", or it's
> > just another HTML-based markup, where "<br>", "<BR>",
> > "<br />" can happen?
> Why do you assume that any other tags than <br/> exist?
> For how many codecs did we see specifications at the
> time they were implemented? I was testing a sample and
> this is the only feature missing that I can see.
> > You are the one implementing this, don't ask me about
> > the details. I'm just wondering about the amount of
> > work it will require to remove that code before
> > implementing it correctly if necessary.
> I am just testing existing samples, if you have more
> samples or know where I can find more samples, please
> tell me.
> > The main point being that I'm wondering how we are
> > going to explain to our users that we support
> > subtitles with "<br/>", but supporting "<br />" will
> > require large changes.
> While I don't understand this argument at all, I
> don't think speculating about samples that we don't
> have any reason to believe they exist makes much sense.
Because someone has to cleanup your one-shot hack later.
More information about the ffmpeg-devel