[FFmpeg-devel] suggested patch: avfilter/vf_subtitles: add support for subtitles font scaling

wm4 nfxjfg at googlemail.com
Thu Sep 11 21:21:03 CEST 2014


On Thu, 11 Sep 2014 03:58:07 +0400
Sergey <sergemp at mail.ru> wrote:

> Hello.
> 
> Recently I used ffmpeg to embed subtitles, and I needed to scale them.
> 
> I thought "original_size" option scales subtitles, but it does not.
> So I wrote a short patch for it to do that (attached)
> 
> If that is considered too complex/bad idea I've also attached another patch
> that adds a "font_scale" option instead.
> 
> I hope you like one of these.
> -- 

The first patch looks very wrong. You can't just set the font scale to
something other than 1, because that might break .ass subtitles (though
it might be ok with other subtitles).

The second patch (font_scale option) looks acceptable.


More information about the ffmpeg-devel mailing list