8

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?

user750477
  • 83
  • 1
  • 1
  • 5
  • Have you tried simply downloading and extracting a [ffmpeg binary](http://ffmpeg.zeranoe.com/builds/)? – mario May 12 '11 at 11:50

4 Answers4

6

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

  1. unzip
  2. copy ffmpeg.exe somewhere and remember the path for later use
  3. move php_ffmpeg.dll to php extension dir (usually c:\xampp\php\ext)
  4. move all other files to Windows\System32 (except COPYING.GPLv3.txt, readme.txt)
  5. add extension=php_ffmpeg.dll to php.ini (usually c:\xampp\php\php.ini)
  6. restart apache with fingers crossed
  7. 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...

Jake
  • 2,058
  • 2
  • 24
  • 33
  • 1
    confirmed on Windows 7 64 bit, xampp 1.7.4, php version 5.3.5, ffmpeg 0.6.0 – Jake Nov 02 '11 at 15:26
  • 3
    https://rapidshare.com/#!download|934l34|422916798|php_ffmpeg_v0.6.0_for_PHP_5.3.1.rar the link doesn't work – Paul Ledger Mar 01 '14 at 22:22
  • I guess that doesn't surprise me. I am out of sync with this topic over the past two years. I would imagine (hope) that things have changed a bit in that time... but who knows. It is so much easier to get working on linux which is where I am now... – Jake Mar 02 '14 at 04:51
4

If above solution not working, one thing you can do is as below:

  1. Go to this url: http://ffmpeg.zeranoe.com/builds/
  2. Download 32 or 64 bit (as per your system) static FFMPEG.
  3. After download you can see "ffmpeg.exe' file, copy and paste this file in your xampp directory. (e.g. C:\xampp)
  4. Then, set "C:\xampp" this path in your application.
  5. Enjoy..
Ashu
  • 41
  • 3
3

Go to apachefriends.org You will find a link to ffmpeg 0.6.0 for php 5.3.1 there.

  1. Copy php_ffmpeg.dll to xampp\php\ext.
  2. 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)...
  3. Copy everything else to windows/system32.
  4. Add "extension=php_ffmpeg.dll" or remove ";" on the beginning of that line in php.ini file (xampp\php\php.ini )
  5. 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 :)

2

You can follow steps from here or do the following steps.

  1. Download ffmpeg from here: https://ffmpeg.org/download.html
  2. Copy php_ffmpeg.dll from the php5 folder to the C:\wamp\bin\php\php5.2.9-2\ext
  3. Copy files from common to the windows/system32 folder
  4. Add extension=php_ffmpeg.dll to php.ini file ( \apache...php.ini )
  5. Restarted all services (Apache, PHP...)

And enable "extension=php_ffmpeg.dll" directive in your php.ini.

Imran Khan
  • 2,373
  • 2
  • 22
  • 35