在WAMP上安装FFMPEG
I've probably spent over 12 hours trying to install FFMPEG on WAMP. I'm aware that other people have had this question answered on this site, however it does not work for my setup.
I have tried the below:
Download ffmpeg_new
Copy php_ffmpeg.dll from the php5 folder to the C:\wamp\bin\php\php5.2.9-2\ext
Copy files from common to the windows/system32 folder
Add extension=php_ffmpeg.dll to php.ini file
Restarted all services (Apache, PHP...)
My current setup is PHP 5.2.1, Apache 2.0.63. I have a Windows 7 64bit computer.
I get the following error in my PHP error log:
[22-Jun-2012 01:39:31] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.2.1/ext/php_ffmpeg.dll' - The specified module could not be found. in Unknown on line 0
Obviously I have placed the module in the ext folder.
Phpinfo.php verifies that the FFMPEG module is not being loaded. I have tried installing PHP 5.3 (with a later FFMPEG version), 5.2.6 and 5.2.9-2, but the module still fails to load. Is there anything else I should try? Does having a 64bit Windows 7 computer make any difference?
我可能花了12个多小时尝试在WAMP上安装FFMPEG。 我知道其他人已经在这个网站上回答了这个问题,但它对我的设置不起作用。 p>
我试过以下内容: p>
从php5文件夹下载ffmpeg_new
Copy php_ffmpeg.dll到C:\ wamp \ bin \ php \ php5.2.9-2 \ ext
复制文件从common / windows / system32文件夹
Add extension = php_ffmpeg.dll到php.ini文件
Restarted所有服务(Apache,PHP ...)
code > pre>
我目前的设置是PHP 5.2.1,Apache 2.0.63。 我有一台Windows 7 64位计算机。 p>
我的PHP错误日志中出现以下错误: p>
[22-Jun-2012 01:39 :31] PHP警告:PHP启动:无法加载动态库'c:/wamp/bin/php/php5.2.1/ext/php_ffmpeg.dll' - 找不到指定的模块。
在第0行的未知中 p>
显然我已将模块放在ext文件夹中。 p>
Phpinfo.php验证是否未加载FFMPEG模块。 我已经尝试安装PHP 5.3(后来的FFMPEG版本),5.2.6和5.2.9-2,但模块仍然无法加载。 还有什么我应该尝试的吗? 拥有64位Windows 7计算机会有什么不同吗? p>
div>
Yes, having a 64-bit computer may make a difference. Try putting the "common" files in C:\Windows\SysWow64
instead of system32
.
If that doesn't work, try using DependencyWalker to check the missing DLLs (open php_ffmpeg.dll with it)
Steps to install ffmpeg:
activate GD2 Php Extension
Download ffmpeg.exe (www.ffmpeg.org)
Unpack the downloaded zip file. There will be three files inside: ffmpeg.exe, ffplay.exe, and pthreadGC2.dll
Download the FFMPEG windows dll files from
Unpack the downloaded zip file. You will need three files: php_ffmpeg.dll, avcodec.dll and avformat.dll.
Copy php_ffmpeg.dll in your wamp php extension folder: bin\php\php5.2.16\ext
Add the line "extension=php_ffmpeg.dll" (without the quotes) into php.ini right on the end of the extension= section
Copy avcodec.dll and avformat.dll and pthreadGC2.dll to C:\windows\system32
Click on the WAMP icon and click restart all services. Wait for WAMP to restart.
Copy ffmpeg.exe to C:\wamp\bin (Note: If you have installed WAMP to a different directory, copy the file to the /bin folder in your WAMP directory).
-
The path to FFMPEG is now: C:\wamp\bin\ffmpeg.exe
thanxxx... :)