[FFmpeg-user] Unwanted <font> tags in srt
David Nguyen
david2456 at gmail.com
Wed Dec 16 10:18:24 CET 2015
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
More information about the ffmpeg-user
mailing list