My environment:
Os:windows 7 64-bit
Wamp:2.1a
php:5.3.3 (previously 5.3.13)
Projects need to use ffmpeg-php to implement the upload video transcoding functions, but found a lot of information did not put ffmpeg-php configuration. Therefore, write a blog to help people solve the problem.
Preface: I also looked for the data under Windows configuration ffmpeg-php, the results are not configured. Later, the main thing was that the PHP version and the ffmpeg-php version were inconsistent. For example http://sergey89.ru/files/ffmpeg-php/this site published ffmpeg-php for the php5.2.x version, but the top of the PHP5.3.1 version. Originally mine is 5.3.13 version, at the beginning thought that the next ffmpeg-php-5.3-win32-all.zip will not have the problem. The result is still a problem, phpinfo () no ffmpeg information. Pondering for a long time, finally solved.
Solution:
I believe most of them are wamp, and the PHP version is 5.3.x. So the high version of ffmpeg-php is not found, and the compiled version is also divided into VC6 and VC9. The PHP5.3.13 used before is VC9, and now the 5.3.3 is VC6. Configuration is not primarily a PHP version of the problem. Therefore, it is recommended to downgrade Wamp or PHP version (ffmpeg-php is not good for high-version PHP).
Recommended Wamp2.1a (PHP is 5.3.3): Http://pan.baidu.com/s/1i3wybAH
Ffmpeg-php:http://pan.baidu.com/s/1vqxzc
Wamp installation is not much to say, go directly to the next step. Ffmpeg-php after decompression there are 9 DLL files, put the Php_ffmpeg.dll into the PHP ext (such as: E:\wamp\bin\php\php5.3.3\ext), the remaining 8 DLLs placed under the Windows\System32. Then open php.ini (E:\wamp\bin\apache\Apache2.2.17\bin\php.ini), ctril+f find extension= Find the location of the extended configuration, and then add extension=php_ at the bottom Ffmpeg.dll, and then put the extension=php_gettext.dll in front of the '; ' Semicolon, save PHP.ini (under E:\wamp\bin\php\php5.3.3 also have php.ini, I have changed here). Re-open the Wamp. Phpinfo () has ffmpeg information stating that the installation configuration was successful! Specifically how to use please Baidu.
Welcome Reprint ~
Troubleshoot ffmpeg installation configuration issues under php5.3.x