gpt4 book ai didi

FFMPEG 未执行

转载 作者:行者123 更新时间:2023-12-04 23:12:35 31 4
gpt4 key购买 nike

我已经在我的 Centos7 专用服务器中安装了 FFMPEG,现在我想运行 FFMPEG,但它没有执行,任何人都可以帮忙解决可能是什么原因。

注意:我也安装了 Cpanel。
我的代码如下:

    <!DOCTYPE html>
<html>
<head>
<title>My FFMPEG</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="video">
<input type="submit" name="submit">
</form>
</body>
</html>
<?php
if (isset($_POST['submit'])){
$currentPath=$_FILES['video']['tmp_name'];
$ffmpeg = "/usr/bin/ffmpeg";
exec("$ffmpeg -i ".$currentPath." -an output/video.mp4");
echo "OK";
}
?>

最佳答案

如果“action”中没有任何内容(本例中为当前文件的名称),我不确定系统是否默认使用当前文件。尝试填写此字段
enctype 不是必需的,因为您不传输文件

关于FFMPEG 未执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62370610/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com