Opened 5 years ago

Last modified 5 years ago

#9200 reopened defect

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

Reported by: jaydip nathani Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by jaydip nathani)

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=textfile=hindi.txt:fontfile=Khula-Regular.ttf:fontsize=30:x=30:y=200 -c:a copy output.mp4

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

But output renders as
https://drive.google.com/file/d/1ZjZQB4Hq0Xxfrjjp1EC60e3tHhmw353X/view

Attachments (3)

hindi.txt​ (93 bytes ) - added by jaydip nathani 5 years ago.
Hindi Input text file
Khula-Regular.ttf​ (147.7 KB ) - added by jaydip nathani 5 years ago.
Hindi Language Font file
ouput_hindi.PNG​ (236.4 KB ) - added by jaydip nathani 5 years ago.
Output of code

Download all attachments as: .zip

Change History (16)

comment:1 by Carl Eugen Hoyos, 5 years ago

Component: ffmpeg → undetermined
Description: modified (diff)
Priority: critical → normal

comment:2 by Balling, 5 years ago

Is this due to ligartures in Hindi? Also, Notepad++ does not use DirectWrite on your screenshot?

in reply to:  2 ; comment:3 by jaydip nathani, 5 years ago

Replying to Balling:

Yes this due to ligatures in Hindi.

Last edited 5 years ago by jaydip nathani (previous) (diff)

in reply to:  3 comment:4 by jaydip nathani, 5 years ago

Version 1, edited 5 years ago by jaydip nathani (previous) (next) (diff)

comment:5 by Carl Eugen Hoyos, 5 years ago

Resolution: → duplicate
Status: new → closed

Feel free to attach hindi.txt and reopen this ticket if it is neither a duplicate of ticket #8738 nor #3165.

in reply to:  5 comment:6 by jaydip nathani, 5 years ago

Resolution: duplicate
Status: closed → reopened

Replying to Carl Eugen Hoyos:

We do not use subtitles filter , use drawtext

comment:7 by jaydip nathani, 5 years ago

Resolution: → invalid
Status: reopened → closed

comment:8 by jaydip nathani, 5 years ago

Resolution: invalid
Status: closed → reopened

comment:9 by jaydip nathani, 5 years ago

Priority: normal → critical

comment:10 by Carl Eugen Hoyos, 5 years ago

Priority: critical → normal

comment:11 by Carl Eugen Hoyos, 5 years ago

Please don’t forget to attach hindi.txt

by jaydip nathani, 5 years ago

Attachment: hindi.txt​ added

Hindi Input text file

by jaydip nathani, 5 years ago

Attachment: Khula-Regular.ttf​ added

Hindi Language Font file

comment:12 by jaydip nathani, 5 years ago

Description: modified (diff)

by jaydip nathani, 5 years ago

Attachment: ouput_hindi.PNG​ added

Output of code

comment:13 by jaydip nathani, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.