php - ffmpeg响度不返回任何文件

标签 php ffmpeg

我正在使用由 Aruba.it 管理的共享服务器
它用

ffmpeg version 4.1
built with gcc 4.8.5
(GCC) 20150623
(Red Hat 4.8.5-36)

我需要使用 ffmpeg 将任何上传的 MP3 的响度修复为 -12 dB LUFS -1 dB TP

我在互联网上找到了以下命令,但没有生成任何 output.mp3

PHP
exec("/usr/bin/ffmpeg -i Temp.mp3 -af loudnorm=I=-12:LRA=7:tp=-2:measured_I=-30:measured_LRA=1.1:measured_tp=-11 04:measured_thresh=-40.21:offset=-0.47 -y output.mp3");

请问我哪里错了?

编辑
不返回任何错误。

最佳答案

如果您手动运行它,在终端中未编写脚本,您将收到错误消息:

Unable to find a suitable output format for '04:measured_thresh=-40.21:offset=-0.47'
04:measured_thresh=-40.21:offset=-0.47: Invalid argument

您的命令中有一个错误的空格,所以更改 measured_tp=-11 04measured_tp=-11.04 .

关于php - ffmpeg响度不返回任何文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54949893/

相关文章:

python - YouTube 没有从我的 FFmpeg 流向 RTMP 服务器接收任何数据

java - 告诉 java servlet 何时从外部命令行调用返回

php - 在 laravel 5.6 中重置密码时从所有浏览器注销用户

php - APC __PHP_Incomplete_Class_Name

php - 如何在 PHP/MySQL 中替换重复项?

php - 从数组中获取特定值

video - FFMPEG 视频转换为 MP4 可以在除 iOS Safari/Chrome 之外的任何地方使用

ffmpeg - 如何在ts中编辑或添加 “rotation”的视频元数据?

php - 如何在 Laravel 中获取双请求名称到数组?

python - ffmpeg 在后台运行时挂起