You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avfilter/vf_drawtext: implement text alignment
Text can now be aligned vertically (top, middle, bottom) and horizontally (left, center, right) relative to the background box.
This commit is contained in:
@@ -12384,6 +12384,12 @@ The default value of @var{boxcolor} is "white".
|
||||
@item line_spacing
|
||||
Set the line spacing in pixels. The default value of @var{line_spacing} is 0.
|
||||
|
||||
@item text_align
|
||||
Set the vertical and horizontal alignment of the text with respect to the box boundaries.
|
||||
The value must contain exactly two letters, one for the vertical alignment (T=top,
|
||||
M=middle, B=bottom) and one for the horizontal alignment (L=left, C=center, R=right).
|
||||
Please note that tab characters are only supported with the left horizontal alignment.
|
||||
|
||||
@item borderw
|
||||
Set the width of the border to be drawn around the text using @var{bordercolor}.
|
||||
The default value of @var{borderw} is 0.
|
||||
|
||||
Reference in New Issue
Block a user