$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.
The Arial font file with the Unicode characters is called
arialuni.ttf
. Odia characters print correctly here with that font.