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?
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... :)
I did the same as Manjeet Barnala but copied ffmpeg.exe, ffprobe.exe, and ffplay.exe into the Windows/System32 and my application worked then.
I think it has something to do with where your application might be pointing # the use of the exec command.
Running: PHP 7.4.0
PHP Extension gd2 confirmed initialised via going to WAMP icon and left-clicking..
WAMP > PHP > Extensions.
..and the command I was trying to execute in PHP was:
$cmd = "$ffmpeg -ss $Second -i $Filename -frames:v 1 -f mjpeg -map 0:v:0 $Thumbnail";
$return = `$cmd`;
Related
UPDATE: I realized I need to install ImageMagick on the same server that PHP is running on, in addition to using the php_imagick.dll library. I've tried a series of different combinations of versions of the ImageMagick installer and the php_imagick.dll library to no avail. How do I know which version number of each I should use?
I'm running PHP 5.6.40 (non-thread-safe) on a Windows Server 2019 machine.
My PHP website seems to be working for the most part except when I run php -m in the command line I get the warning that the php_imagick.dll module could not be found.
When I run a test PHP file that calls phpinfo(), the ImageMagick - php_imagick.dll extension is not listed anywhere.
In my php.ini file I have the full path for my extensions directory:
I also have the extension for ImageMagick (php_imagick.dll) listed in the php.ini:
ImageMagick (php_imagick.dll) is definitely in the extensions folder listed above:
Why am I receiving the warning it was unable to load that library when I run php -m from the command line?
Probably, your server uses another *.ini file to load or some permissions are incorrect.
Try to search other configuration files such as php.ini-development and uncomment the line containing your extension in each file.
Make sure your php_imagick.dll library is visible by your PHP-server.
Restart your PHP-server after any changes in configuration files.
refer to this doc, it helps me and solves. As, I am using Php 7.4
https://www.geeksforgeeks.org/how-to-install-imagick-for-php-in-windows/
Please help me to install librdkafka on windows xampp for php development.
PHP : 7.1.12, x86, Thread Safe, MSVC14
I downloaded compatible package from https://pecl.php.net/package/rdkafka/3.0.5/windows
Copied php_rdkafka.dll to ext folder of my php xampp and librdkafka.dll to System32 folder (also to ext folder).
But the extension is not working. I am getting following error:
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\xampp\php\ext\php_rdkafka.dll' - The specified module could not be
found. in Unknown on line 0
I suspect that librdkafka is not properly installed.
I managed to make it work by doing below steps.
Copy librdkafka.dll to C:\Windows\SysWOW64 if x86 otherwise copy to C:\Windows\System32. Don't copy to both folders.
Then run regsvr32 librdkafka.dll in command prompt.
Then copy php_rdkafka.dll to ext folder of your php.
Then add extension=php_rdkafka.dll to your php.ini file
Restart PHP, DONE!!!
The accepted answer did not work for me, instead I installed the dependency as following:
Download the library from https://pecl.php.net/package/rdkafka
Extract the file librdkafka.dll to the the root PHP directory (same level as php.exe for example C:\xampp\php).
Extract the file php_rdkfaka.dll to the ext folder: C:\xampp\php\ext
Add the line extension=php_rdkafka.dll to the php.ini.
Restart the server.
Note: within the library you will download, you will find a README.md with a link to the official documentation.
I know this is one of those questions that is as old as Internet and I have looked everywhere and followed the steps that majority of previous answers point to, but still number of supported formats by imagick in phpinfo() is zero for Windows 10.
Let me list the steps that I carried out:
Install Apache 2.4.25-win64-vc14 built by Apache lounge.
Install PHP 7.1 thread safe version VC14 x64
So far so good. I see everything I want to see sans Imagick. I think my problem starts from below:
Install ImageMagick-7.0.5-2Q16-X64-dll.exe from
"Link"
Copy everything from "C:\Program Files\ImageMagick-7.0.5-Q16\coders" to "C:\Program Files\ImageMagick-7.0.5-Q16"
Copy everything from "C:\Program Files\ImageMagick-7.0.5-Q16\filters" to "C:\Program Files\ImageMagick-7.0.5-Q16"
Copy everything from "C:\Program Files\ImageMagick-7.0.5-Q16\coders" to "C:\Apache24\bin"
Copy everything from "C:\Program Files\ImageMagick-7.0.5-Q16\filters" to "C:\Apache24\bin"
Set the environment variable MAGICK_HOME to "C:\Program Files\ImageMagick-7.0.5-Q16"
Download PHP 7.1 Thread Safe x64 version of Imagick dll for php extension from https://pecl.php.net/package/imagick/3.4.3/windows
Copy php_imagick.dll from the package to "C:\php7\ext", the PHP folder
Copy all the "CORE_RL_xxx.dll" to "C:\Apache24\bin", the Apache bin folder
Change the php.ini in the PHP folder to include "extension = php_imagick.dll". Save the file.
Restart Apache, no luck.
Restart PC and then start Apache, no luck.
What am I missing?
Please download the latest stable versions of both ImageMagick and Imagick from:
http://windows.php.net/downloads/pecl/deps/
http://windows.php.net/downloads/pecl/releases/imagick/
Installing versions that are downloaded from different places isn't likely to work.
Download php_imagick from
http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.0-ts-vc14-x64.zip - for PHP 7.0 or http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x64.zip - for PHP 7.1
Download imagemagick from: http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc14-x64.zip instead of ImageMagick-7.0.5-Q16
Extract from php_imagick-3.4.3-7.0-ts-vc14-x64.zip to the ext directory only the php_imagick.dll file of your PHP installation
Extract ImageMagick-6.9.3-7-vc14-x64.zip to the directory c:\ImageMagick- for example
add to environmental PATH to c:\ImageMagick\bin. Attention: bin!!!
Add this line to your php.ini file: extension=php_imagick.dll
Restart Apache
Result <?php phpinfo(); ?>:
I have installed xampp 1.7.4 with php version 5.3.5 on windows xp.
How to install ffmpeg in xampp with php 5.3.5 on windows xp?
Sodobni-mediji.si's method worked, but some things need to be clarified.
Download: https://rapidshare.com/#!download|934l34|422916798|php_ffmpeg_v0.6.0_for_PHP_5.3.1.rar
unzip
copy ffmpeg.exe somewhere and remember the path for later use
move php_ffmpeg.dll to php extension dir (usually c:\xampp\php\ext)
move all other files to Windows\System32 (except COPYING.GPLv3.txt, readme.txt)
add extension=php_ffmpeg.dll to php.ini (usually c:\xampp\php\php.ini)
restart apache with fingers crossed
questions/answers http://www.apachefriends.org/f/viewtopic.php?f=16&t=41913
If you are using windows 64bit, you will also need to to copy all of those dll files to C:\Windows\SysWOW64 along with C:\Windows\System32.
You will probably have problems with toGdImage(), I have no idea how to fix this...
If above solution not working, one thing you can do is as below:
Go to this url: http://ffmpeg.zeranoe.com/builds/
Download 32 or 64 bit (as per your system) static FFMPEG.
After download you can see "ffmpeg.exe' file, copy and paste this file in your xampp directory. (e.g. C:\xampp)
Then, set "C:\xampp" this path in your application.
Enjoy..
Go to apachefriends.org You will find a link to ffmpeg 0.6.0 for php 5.3.1 there.
Copy php_ffmpeg.dll to xampp\php\ext.
Copy ffmpeg.exe into root of your site or anywhere else as long you know where (you will have to define path to it in your php file)...
Copy everything else to windows/system32.
Add "extension=php_ffmpeg.dll" or remove ";" on the beginning of that line in php.ini file (xampp\php\php.ini )
Restart apache server... and voila :)
It worked for me on PHP 5.3.1 and 5.3.5 :)
I found this on apachefriends.org
Good luck :)
You can follow steps from here or do the following steps.
Download ffmpeg from here: https://ffmpeg.org/download.html
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 ( \apache...php.ini )
Restarted all services (Apache, PHP...)
And enable "extension=php_ffmpeg.dll" directive in your php.ini.
I have installed xampp 1.7.4 with php version 5.3.5 on windows xp.
How to install ffmpeg in xampp with php 5.3.5 on windows xp?
Sodobni-mediji.si's method worked, but some things need to be clarified.
Download: https://rapidshare.com/#!download|934l34|422916798|php_ffmpeg_v0.6.0_for_PHP_5.3.1.rar
unzip
copy ffmpeg.exe somewhere and remember the path for later use
move php_ffmpeg.dll to php extension dir (usually c:\xampp\php\ext)
move all other files to Windows\System32 (except COPYING.GPLv3.txt, readme.txt)
add extension=php_ffmpeg.dll to php.ini (usually c:\xampp\php\php.ini)
restart apache with fingers crossed
questions/answers http://www.apachefriends.org/f/viewtopic.php?f=16&t=41913
If you are using windows 64bit, you will also need to to copy all of those dll files to C:\Windows\SysWOW64 along with C:\Windows\System32.
You will probably have problems with toGdImage(), I have no idea how to fix this...
If above solution not working, one thing you can do is as below:
Go to this url: http://ffmpeg.zeranoe.com/builds/
Download 32 or 64 bit (as per your system) static FFMPEG.
After download you can see "ffmpeg.exe' file, copy and paste this file in your xampp directory. (e.g. C:\xampp)
Then, set "C:\xampp" this path in your application.
Enjoy..
Go to apachefriends.org You will find a link to ffmpeg 0.6.0 for php 5.3.1 there.
Copy php_ffmpeg.dll to xampp\php\ext.
Copy ffmpeg.exe into root of your site or anywhere else as long you know where (you will have to define path to it in your php file)...
Copy everything else to windows/system32.
Add "extension=php_ffmpeg.dll" or remove ";" on the beginning of that line in php.ini file (xampp\php\php.ini )
Restart apache server... and voila :)
It worked for me on PHP 5.3.1 and 5.3.5 :)
I found this on apachefriends.org
Good luck :)
You can follow steps from here or do the following steps.
Download ffmpeg from here: https://ffmpeg.org/download.html
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 ( \apache...php.ini )
Restarted all services (Apache, PHP...)
And enable "extension=php_ffmpeg.dll" directive in your php.ini.