[FFmpeg-devel] [PATCH v4 2/4] avcodec/{ass, webvttdec}: fix handling of backslashes
Stefano Sabatini
stefasab at gmail.com
Fri Apr 5 00:53:35 EEST 2024
On date Thursday 2024-04-04 20:36:50 +0200, Oneric wrote:
> On Thu, Apr 04, 2024 at 13:26:55 -0500, Marth64 wrote:
> > > Is \N a special sequence in ASS-speak
> > \N is the special line break sequence in ASS
> >
> > I’m not sure of other special sequences following the \ character, I yield
> > to Oneric on this question.
>
> Standard ASS(2) and SSAv4 have
> \N (forced linebreak)
> \n (linebreak hint)
> \h (nonbreaking space)
>
> libass further has \{ and \} dealt with by the following commit.
> Afaik no ASS renderer ever supported \\.
>
> The added escaping happens for non-ASS format (in which those sequences
> are just normal text) which get encoded into ASS by ffmpeg. If it weren’t
> escaped we’d get sudden linebreaks, spaces etc and missing text.
> It doesn’t affect ASS->ASS remuxing.
Thanks for the clarification.
I think the patcheset should be good, but I'll wait a few days for
letting more comments.
I can fix the typos before pushing, or feel free to send an update.
More information about the ffmpeg-devel
mailing list