php - ffmpeg 输出文件在哪里?
问题描述
我正在关注该链接http://adnan-tech.com/add-or-extract-audio-from-video-php-ffmpeg/
,并根据该代码在 php 中创建文件
<form action="post_audio.php" method="POST" enctype="multipart/form-data">
<div class="form-group">
<label>Select video</label>
<input type="file" name="video" class="form-control" required>
</div>
<div class="form-group">
<label>Select audio</label>
<input type="file" name="audio" class="form-control" required>
</div>
<input type="submit" class="btn btn-success" value="Add Audio">
</form>
和我的 post_audio.php 文件
$video = $_FILES["video"]["tmp_name"];
$audio = $_FILES["audio"]["tmp_name"];
$command = "C:\ffmpeg\bin\ffmpeg.exe -i " . $video . " -i " . $audio . " -c:v copy -map 0:v:0 -map 1:a:0 output.mp4";
system($command);
$command = "C:\ffmpeg\bin\ffmpeg.exe -i " . $video . " original-audio.mp3";
system($command);
但它什么也不返回,我不知道更新的输出文件在哪里
解决方案
推荐阅读
- coldfusion - CFLint - 全局变量警告
- android - 从备份到具有不同配置的新设备上安装与应用程序包一起上传的应用程序会发生什么?
- python - 我应该如何通过 TF2.1 将图像放入张量中?
- java - Java 线程减慢 Postgres 数据库更新
- ruby-on-rails - Rails 6 和 React 作为前端的 500 内部服务器错误
- javascript - Nodemailer 不尊重 rateDelta 和 rateLimit
- c# - 如何告诉 Unity 对象沿其父对象的每个轴的方向向前移动?
- wordpress - 获取 CPT 的父类别
- java - 带有身份验证的 okhttp 发布请求
- javascript - 能够在选择一个元素的值时更新另一个选择元素的值,反之亦然,使用 selectize