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

Gyan Doshi gyandoshi at gmail.com
Fri Jan 19 06:48:53 EET 2018

On 1/11/2018 7:12 PM, Gyan Doshi 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

Ping. Unless text needs to be rescaled as well, this patch is ready for 


More information about the ffmpeg-devel mailing list