Home > Backend Development > PHP Problem > How to convert php WeChat amr to mp3

How to convert php WeChat amr to mp3

藏色散人
Release: 2023-03-06 10:34:02
Original
2818 people have browsed it

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
Copy after login

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");
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template