How to install FFMpeg in WampServer 2.0 (Windows XP) [closed]

时间秒杀一切 提交于 2019-11-27 18:38:18

add this line to your php.ini file

[PHP_ffmpeg]
extension=php_ffmpeg.dll

http://sergey89.ru/files/ffmpeg-php-win32-all.zip

  1. unpack ffmpeg-php-win32-all.zip
  2. Copying php_ffmpeg.dll to the \wamp\php4\extension\ (for php5 it's \wamp\bin\php\ext)
  3. Copying avcodec.dll & avformat.dll and any other in package to the \windows\system32\
  4. Editing \wamp\apache\apache2.xx\bin\php.ini - adding line extension=php_ffmpeg.dll
  5. Restarting Apache.
  1. Download ffmpeg_new
  2. Copy php_ffmpeg.dll from the php5 folder to the wamp/php/ext folder
  3. Copy files from common to the windows/system32 folder

Doesn't look like the problem is with ffmpeg... the warning is about the use of the dl function. Multi-threaded PHP does not support dynamic loading of any PHP extension, so you'll need to make sure the .dll file for it is placed wherever the rest of your php modules live.

What you really need to figure out is why the extension doesn't load despite the fact you've got the "extension=php_ffmpeg.dll" directive in your php.ini. Usually you can see any startup errors in your apache error log (such as PHP saying it can't load a library). Also, have you taken a look at a phpinfo() and verified ffmpeg isn't present (shouldn't be since the extension_loaded returns false), but perhaps it's there under a different name (you could also use get_loaded_extensions() I suppose).

Payal
; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off

These are the lines in php.ini. Make sure that enable_dl is turned off. After that you will not get error.

shen

Editing \wamp\apache\apache2.xx\bin\php.ini - adding line extension=php_ffmpeg.dll

INSTEAD OF

Editing \wamp\bin\php\php5.2.9\php.ini - adding line extension=php_ffmpeg.dll

MirKo is correct but i'll like to add that

after

  1. Download compiled dlls from here: http://sergey89.ru/files/ffmpeg-php-win32-all.zip
  2. Extract and put php_ffmpeg.dll to you php ext folder
  3. Put the rest of dlls to you windows/system32 folder
  4. Restart apache and run phpinfo() - you should see the ffmpeg extension (btw you have to check php not apache error log if you are looking for errors wamp->php->php error log)

there is another step

  1. Open php.ini file and find ; extension=msql.dll
    add after it
    extension=php_ffmpeg.dll
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!