FFMPEG utf-8 special character not working in video watermark text [closed]

我只是一个虾纸丫 提交于 2020-01-06 15:17:11

问题


$input = "input.flv";
$output = "output.mp4";
$font = "arial.ttf";
$text = "ମୋ ପ୍ରତିଭା";

$command = "ffmpeg -i $input -vf \"format=yuv444p, drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=max, drawtext=fontfile=$font:text='$text':fontcolor=white:fontsize=24:x=w-tw:y=(h/PHI)+th, format=yuv420p\" -c:v libx264 -c:a copy -movflags +faststart $output";

Result:

Here I want to put utf-8 character. But I am anable to get proper text in my video output. Please help me.


回答1:


The Arial font file with the Unicode characters is called arialuni.ttf. Odia characters print correctly here with that font.



来源:https://stackoverflow.com/questions/38266469/ffmpeg-utf-8-special-character-not-working-in-video-watermark-text

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