ffmpeg drawtext how to set direction right to left

雨燕双飞 提交于 2019-12-21 17:14:24

问题


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

来源:https://stackoverflow.com/questions/47931448/ffmpeg-drawtext-how-to-set-direction-right-to-left

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!