欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Install FFMPEG on XAMPP


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?


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?




 

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?

shareimprove this question
 
   
Have you tried simply downloading and extracting a ffmpeg binary? – mario May 12 '11 at 11:50

4 Answers   正确答案

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.

shareimprove this answer
 
   
I have tried it, but it does not work for me. However I am not using wampp. Istead i m using xampp. So directory structure is not same as you mentioned. – user750477 May 13 '11 at 12:58
   
I have downloaded files from sergey89.ru/files/ffmpeg-php-win32-all.zip. I add four files in c:\\windows\system32\ folder these files are : avcodec-51.dll, avformat-51.dll, avutil-49.dll and pthreadGC2.dll. And one file php_ffmpeg.dll i add in \xampp\php\ext\ folder. After restarting system and server i get following error: --------------------------- Warning --------------------------- PHP Startup: ffmpeg: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match --------------------------- – user750477 May 13 '11 at 13:04
   
it's ffmpeg_php, could you tell me how install ffmpeg.org? – Reza Amya Sep 10 '14 at 14:13
   
Hi, I'm also getting this error please help me link is stackoverflow.com/questions/40608309/… – user3833682Nov 16 '16 at 9:39
 

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...


来自  http://stackoverflow.com/questions/5977448/install-ffmpeg-on-xampp


普通分类: