Finding a windows distribution of the main FFMPEG project was fairly easy. This site distributes binaries and also provides a very good guide on compiling it for yourself.
However, the PHP module is much harder. Especially since you have to find a module that is compatible with your version of PHP. Most of the available instructions point to PHP 4 modules, if you need a PHP 4 module, here is one good set of instructions. After much digging, I finally found a PHP 5 module
UPDATED: This link is now broken, we're currently hosting the PHP 5 module on our website here.
A complete set of instructions for completing this installation is below. My environment was Windows 2003, IIS 6, Plesk 8.2 and PHP 5.2.6:
- If you plan to use the FFMPEG command-line tool, download the binary package from arrozcru.org. Use a tool such as 7-zip to decompress it and expand the tar file where you want to place it.
- Download the zip file that includes the ffmpeg-php extension
hereand uncompress it. It includes several other software packages, you can ignore them, the files that we are interested in are in the ffmpeg-php-win32-all directory. UPDATED: This link is now broken, we're currently hosting the PHP 5 module on our website here. - Copy the avcodec-51.dll, avformat-51.dll, avutil-49.dll and pthreadGC2.dll files to the c:\windows\system32 directory.
- Copy the php_ffmpeg.dll file to your PHP extensions directory. For me, this was "C:\Program Files\SWsoft\Plesk\Additional\PleskPHP5\ext"
- Edit your php.ini file and add the following bit. For me this was located at "C:\Program Files\SWsoft\Plesk\Additional\PleskPHP5\php.ini"
extension=php_ffmpeg.dll - If you are running PHP as an ISAPI filter, you'll probably need to restart IIS. I was running it as a CGI and I didn't need to restart.
10 comments:
please could you help in ffmpeg-php installation on wamp
Hey,
Seems that you were able to install ffmpeg-php on windows. The links you provided no longer work.
Could you help me by emailing the ffmpeg-php dll's to me? Instructions how to compile on mingw would also be great.
Thank You!
Hey everyone,
I'm the owner of the site that use to host the files in the last link which use to be located at www.imgoingtoreportyou.com. My server isn't online anymore, which is why the link is broken. My current focus and site is http://www.myownserver.info and I'm working on re-assembling another package including the ffmpeg-php files.
The only problem right now is there's not a version that's been compiled for PHP5.3 and I have no idea how to do it nor where to begin when it comes to compiling stuff.
So for now I can only help those with PHP version 5.2.
I'll probably be posting the new files as a torrent to save server bandwidth since I no longer self-host it and bandwidth costs money.
If you want to be contacted when I finish this, go to the contact form, which you can find in the website's top menu, and send me a message and I'll send you a reply when it's up. Otherwise just keep an eye on my blog and I'll make a post about it there as well.
Enjoy!
hi
does anyone know if the ffmpeg-php is available again online?
im desperate for a php 5.2 compatible copy as the version i have is very old and seems not to work.
Oops sorry everyone, took a break from blogging for a while. I couldn't find any other place where this module was available for download, so we're now hosting the PHP5 module for FFMPEG on our website. Enjoy!
download ffmpeg PHP5 module
Thanks buddy that worked for me..
I tried a lot before but your solutions has made it for me..
Thanks a lot,
:)
I tried the steps but when I put that in it doesn't load any of my websites.
I looked at the log and this is the error:
Faulting application php-cgi.exe, version 5.2.6.6, time stamp 0x481b8f5f, faulting module php-cgi.exe, version 5.2.6.6, time stamp 0x481b8f5f, exception code 0xc0000005, fault offset 0x0000183a, process id 0xebc, application start time 0x01caab6a23ef1ed2.
Thank you! After 3 days of searching I found your blog. Now ffmpeg working with Apache2, PHP5.2.5.5 windows7 in 32 bits. Thanks!
Is there a PECL extention available for php5.2.17 NTS?
Post a Comment