php - FFMPEG utf-8 特殊字符在视频水印文本中不起作用

标签 php video utf-8 ffmpeg

关闭。这个问题需要details or clarity .它目前不接受答案。












想改进这个问题?通过 editing this post 添加详细信息并澄清问题.


6年前关闭。







Improve this question



$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";

结果:

enter image description here

这里我想放 utf-8 字符。但我能够在我的视频输出中获得正确的文本。请帮我。

最佳答案

带有 Unicode 字符的 Arial 字体文件称为 arialuni.ttf . Odia 字符在此处使用该字体正确打印。

关于php - FFMPEG utf-8 特殊字符在视频水印文本中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38266469/

相关文章:

php - Laravel 邮件中的 "Reply-to"字段不起作用

java - 如何在TableView中设置编码

file - JVM 属性 -Dfile.encoding=UTF8 还是 UTF-8?

utf-8 - 文本文件中的特殊字符(表情符号)

php - 如何在 php 中使用用户和管理员创建登录名

php - 显示来自 MySQL 的多个图像

javascript - 如何上传 xml 文件并发送到 php 服务器

android - 即时解密音频/视频到 MediaPlayer

安卓奇巧 4.4.2 : Adaptive Playback impact on SurfaceFlinger

linux - 如何在 Linux 中访问 "tee"/dev/video?