1.安装 ffmpeg
./configure –enable-shared –prefix=/usr/local/ffmpeg
sh convert.sh 33921FF3774A773BB193B6FD4AD7C33E.slk mp3
php调用注意事项:
convert.sh 绝对路径 ffmpeg
PHP 执行 system、exec 等函数发生错误
php报错shell_exec() has been disabled for security reasons
一些需要禁用的PHP危险函数(disable_functions)
开启exec()
https://baijunyao.com/article/130
https://kn007.net/topics/decoding-qq-wechat-silk-v3-encoded-audio-to-mp3-or-other-formats/
https://github.com/kn007/silk-v3-decoder
http://blog.youkuaiyun.com/hejjunlin/article/details/52402759
本文介绍如何安装FFmpeg并使用PHP进行调用,包括配置共享库、转换音频文件格式的具体步骤及注意事项。同时解决PHP执行system、exec等函数时出现的问题,并提供禁用危险函数的方法。
1127

被折叠的 条评论
为什么被折叠?



