I'm trying to use ffmpeg drawtext filter to render Tibetan text to videos. But some characters aren't rendered correctly.
for example:
སྤྱི་སྟེགས
some characters which is.. vertically too long, are not rendered correctly:
and this is my command line for generating the output:
ffmpeg -i input.mp4 -filter_complex "drawtext=fontsize=80:fontcolor=black:fontfile=himalaya.ttf:shadowx=1:shadowy=1:text='སྤྱི་སྟེགས':x=0:y=0" -c:v libx264 -b:v 400k -c:a copy output.mp4
The font himalaya.ttf (Microsoft Himalaya) is the default built-in font for Tibetan on Windows 10. (See https://learn.microsoft.com/en-us/typography/font-list/microsoft-himalaya )
I tried text_shaping=1
and text_shaping=0
, neither one is working.
I've also tried other Tibetan fonts, problem is the same.
But all of those fonts are rendered correctly in other places such as web browser.