bytedeco/javacv

drawtext issue when apply hindi language font file or other language font file.

Open

#1,635 opened on Apr 26, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

We are trying to use ffmpeg drawtext to support hindi fonts. but some characters are not rendering properly.

Used Hindi Language Font file :- https://fonts.google.com/specimen/Khula

ffmpeg -i myvideo.mp4 -i image.png -filter_complex [0:v][1:v]overlay=5:5,drawtext=text=hindi.txt:fontfile=Khula-Regular.ttf:fontcolor=orange@1.0:fontsize=30:x=30:y=200 -c:a copy output.mp4

Input string :- जिन्दगी सिर्फ हकीक़त है हकीक़त समझो,

But output renders as .

hindi

I want some perfect solution to apply assets font on FFmpeg.

Thank you in Advance.

Contributor guide