如何使用 php 和 ffmpeg 向视频添加文本叠加?

问题描述

这是代码,我找不到错误。基本上它不会给我任何错误只是不做它的工作。

<?PHP

$video = $_FILES["video"]["tmp_name"];

$command = " ffmpeg -i " . $video;

$command .= " -vf drawtext=text='My text starting at 
640x360':x=640:y=360:fontsize=24:fontcolor=white";
$command .= " -c:a copy output2.mp4";

system($command);

echo "Overlay is complete";
?>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)