[FFmpeg-user] Unwanted <font> tags in srt

David Nguyen david2456 at gmail.com
Wed Dec 16 21:23:15 CET 2015


Good one :p
No but seriously, as in the previous versions there were no style tags,
this is breaking my use case :(
Does ffmpeg provide a way to disable them ?

On 16 December 2015 at 11:22, yzf.zisun <yzf.zisun at 163.com> wrote:

> You can use notpad++ find and replace use a regexp.
>
> <[^>]*>
>
>
>
>
>
>
>
>
>
>
>
>
>
> At 2015-12-16 17:18:24, "David Nguyen" <david2456 at gmail.com> wrote:
> >Hi,
> >
> >I have recently updated ffmpeg to use the latest version 2.8.3 and when
> >extracting subtitles from an MP4, I get new <font> tags which I would like
> >to remove. Is it possible to somehow not get them ?
> >
> >Here's an example:
> >
>
> >---------------------------------------------------------------------------------------------------------------
> >$ cat foo.srt
> >1
> >00:00:00,000 --> 00:00:00,000
> >Mary has a little
> >
> >2
> >00:00:00,038 --> 00:00:00,038
> >lamb.
> >
> >$ ffmpeg -i audio.mp3 -i foo.srt -c:s mov_text -c:a copy output.mp4
> >...
> >
> >$ ffmpeg -i output.mp4 -vn -an -codec:s:0.1 srt foo_extracted.srt
> >...
> >
> >$ cat foo_extracted.srt
> >1
> >00:00:00,000 --> 00:00:00,000
> ><font face="Serif" size="18">Mary has a little</font>
> >
> >2
> >00:00:00,038 --> 00:00:00,038
> ><font face="Serif" size="18">lamb.</font>
> >
>
> >---------------------------------------------------------------------------------------------------------------
> >
> >Thank you,
> >
> >David
> >_______________________________________________
> >ffmpeg-user mailing list
> >ffmpeg-user at ffmpeg.org
> >http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list