L'octidi 8 floréal, an CCXXIV, qw a écrit :
> I want to use drawtext filter to put some string on video stream. What is
> the relationship between fontsize and image resolution in drawtext filter?

The size is the body height of the font in pixels, nothing fancy.

> If fontsize is set to 20, what is the height and width of rendered text?

It depends on the font.

For the height, the rule of thumb is that the body size is the distance
between the top of the tallest glyph (except sometimes accented ones) and
the bottom of the deepest one, typically something like the top of a
parenthesis and the bottom of a p or q.

For the width, it depends completely, because not all glyphs have the same
width, and you need to take kerning into account too.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to