首先下载:ffmpeg6-php54-win32-vc9

Windows Server 2008 PHP环境配置如下:
php_ffmpeg.dll拷贝到php-5.4.45\ext下
打开php.ini在尾部添加
[FFmpeg]
extension=php_ffmpeg.dll
注意:php-5.4.x要求线程安全模式
请将ffmpeg6-php54-win32-vc9下除了php_ffmpeg.dll之外的所有dll文件放到System32目录下
phpinfo()下显示如图:
php5.4 ffmpeg微信录音amr格式转mp3格式
将当前目录加入系统环境变量path中,音频格式转换:
将手机录音amr格式转换为mp3格式
shell_exec("ffmpeg -i a.amr b.mp3");


相关文章:

  • 2021-05-15
  • 2021-04-20
  • 2022-12-23
  • 2022-01-23
  • 2021-08-08
  • 2022-01-29
  • 2021-05-01
  • 2021-09-20
猜你喜欢
  • 2021-11-05
  • 2022-02-10
  • 2021-10-02
  • 2022-02-02
  • 2021-12-10
  • 2021-12-26
  • 2022-01-15
相关资源
相似解决方案