FFMPEG utf-8 special character not working in vide

2019-09-10 12:09发布

$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:

enter image description here

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

1条回答
何必那么认真
2楼-- · 2019-09-10 12:32

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

查看更多
登录 后发表回答