Michael Lange [2019-06-21 17:44:08+02:00] wrote: > sure, because I want to be able to control the subtitle's appearance. The > player in question displays text subtitles, however with a tiny, almost > unreadable font and doesn't have any option to change this.
The "ass" subtitle format contains data about text's appearance, for example: Style: Default,Arial,16,&Hffffff,&Hffffff, [...] So you can at least suggest a font and font size as well as colours. Maybe your player can read such subtitles. Or if not, you can "burn" your subtitles to the moving picture with ffmpeg's "subtitles" video filter. Edit a subtitle file like "subtitles.ass" so that it has "Style" line (see above) with your preferred font, font size, maybe location coordinates etc. Then something like this: ffmpeg -i original.mp4 -map 0:v:0 -map 0:a:0 \ -vf subtitles=filename=subtitles.ass \ -c:v libx264 -crf 22 -c:a copy output.mp4 -- /// Teemu Likonen <https://github.com/tlikonen> // // PGP: 4E1055DC84E9DFF613D78557719D69D324539450 ///
signature.asc
Description: PGP signature