ffmpeg- drawtext style- bold, italics, underline -
how can specify style in drawtext filter. example, draw 'hello' in regular font, should bold, in italics , underlined. possible?
maybe answer late, but, ffmpeg documentation: http://ffmpeg.org/ffmpeg-all.html
use fontconfig set font. note colons need escaped.
drawtext='fontfile=linux libertine o-40\:style=semibold:text=ffmpeg' you have configure fontconfig file of course, set desired fonts (be careful have styles need) in fonts location , run drawtext font family name followed ':style='.
example:
-vf "drawtext='fontfile=dejavusans\:style=extralight:text=ffmpeg'" this worked me in console , php shell exec command. can use whatever font style, long (for style , font family chose), there's font file in font directory follows rule: fontfamilyname-stylename . hope helps!
Comments
Post a Comment