i write arabic text to videos and it works fine but the issue is that the arabic language is written from right to left
so the text must align right not left
i get the text like this
and it should be like this
my code
ffmpeg -y -i input.mp4 -vf "drawtext=text_shaping=1:fontfile=C\/:/Windows/Fonts/tradbdo.ttf:\
textfile=text-new.txt:fontcolor=white:fontsize=40:x=w-tw:y=h-50*t:" -c:v libx264 output.mp4
subtitles
centers the text by default, which is good, but it still doesn't set the right-to-left mode. In HTML, you would do this with<div dir="rtl">
. The most obvious error resulting from this bug is that the full stop at the end of sentences is put all the way to the right, instead of all the way to the left. – Respiratory