[Libav-user] what is the relationship between fontsize and image resolution in drawtext filter

qw applemax82 at 163.com
Tue Apr 26 14:09:43 CEST 2016


 
text

The text string to be drawn. The text must be a sequence of UTF-8 encoded characters. This parameter is mandatory if no file is specified with the parametertextfile.

 
In the description of drawtext filtergraph, text must be of UTF-8 encoded characters.

How to calculate the number of UTF-8 encoded characters? Does ffmpeg have some functions to support it?





At 2016-04-26 19:56:51, "Nicolas George" <george at nsup.org> wrote:
>L'octidi 8 floréal, an CCXXIV, qw a écrit :
>> libfreetype is used to draw text on video stream.
>
>Yes, I know.
>
>> http://ffmpeg.org/ffmpeg-filters.html#drawtext-1
>> There are 3 important syntaxes in the filter of drawtext.
>
>"syntaxes"? These are variables that you can use to compute the coordinates of
>the text.
>
>> However, text_h and text_w can only be used in filtergraph description. I
>> want to know the height and width of the rendered text that corresponds to
>> some fondsize, such as fondsize=20. It means, how to calculate the pixel
>> number of rendered text in width and height?
>
>I have already answered that question.
>
>> At 2016-04-26 17:20:13, "Nicolas George" <george at nsup.org> wrote:
>
>Do not top-post on this list; if you do not know what it means, look it up.
>
>Regards,
>
>-- 
>  Nicolas George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160426/e4c4f140/attachment.html>


More information about the Libav-user mailing list