[FFmpeg-devel] [PATCH] avfilter/drawtext - implement fix_bounds

Kyle Swanson k at ylo.ph
Fri Jan 12 10:31:40 EET 2018


On Thu, Jan 11, 2018 at 5:42 AM, Gyan Doshi <gyandoshi at gmail.com> wrote:

> The no-op commit e496c45 from Libav introduced an option which allowed the
> user to relocate text to fit within the frame if it was going out of bounds.
> For some reason, when the merge commit b479e01 was applied, the option was
> added but the code fragment which implemented it, was not. So the option
> was dead on arrival, and has remained impotent (since Feb 2012).
> Attached patch implements option. Text styling elements like shadow or box
> are also kept within bounds. Default value changed to false so that filter
> outcome doesn't change in existing scripts.
> Regards,
> Gyan
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Just read through the patch, but actually didn't try it yet. I wonder if we
should also scale the size of the text in cases where it's wider than the


More information about the ffmpeg-devel mailing list