Home>Article>Backend Development> How to convert php WeChat amr to mp3

How to convert php WeChat amr to mp3

藏色散人
藏色散人 Original
2020-09-30 09:25:35 2691browse

How to convert php WeChat amr to mp3: first download "ffmpeg6-php54-win32-vc9"; then copy "php_ffmpeg.dll" to "php-5.4.45\ext"; finally change the current directory Just add it to the system environment variable path and convert the audio format.

How to convert php WeChat amr to mp3

Recommended: "PHP Video Tutorial"

php5.4 ffmpeg WeChat recording amr format to mp3 Format

First download: ffmpeg6-php54-win32-vc9

Windows Server 2008 PHP environment configuration is as follows:

Copy php_ffmpeg.dll to php-5.4. Under 45\ext

Open php.ini and add

[FFmpeg] extension=php_ffmpeg.dll

at the end. Note: php-5.4.x requires thread-safe mode

Please change ffmpeg6-php54-win32-vc9 Place all dll files except php_ffmpeg.dll in the System32 directory

phpinfo() as shown below:

How to convert php WeChat amr to mp3

Add the current directory to the system In the environment variable path, audio format conversion:

Convert mobile phone recording amr format to mp3 format

shell_exec("ffmpeg -i a.amr b.mp3");

The above is the detailed content of How to convert php WeChat amr to mp3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn