I have installed xam开发者_开发百科pp 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.
精彩评论