Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install the ffmpeg PHP extension on my localhost so I can test few of my scripts but I am having troubles figuring out how to do that.

I have WampServer 2.0 with PHP 5.2.9-2, my OS is Windows XP. Please somebody give me step by step instructions.

I have found some Windows builds here:

What I have done so far:

  1. Download ffmpeg_new from here:
  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
  5. Restarted all services (Apache, PHP...)

But I am getting this error when trying to use ffmpeg (plus ffmpeg is not even listed in phpinfo()):

Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=ffmpeg.dll in your php.ini in C:\wamp\www\hunnyhive\application\modules\default\controllers\MyAccountController.php on line 314
share|improve this question

closed as off-topic by Falcon Momot, Andrew Schulman, kasperd, Michael Hampton Sep 28 '14 at 12:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Falcon Momot, Andrew Schulman, kasperd, Michael Hampton
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

Answering your question here as well (since you've posted it on stack overflow as well)...

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.

share|improve this answer
Thanks, I have commented your answer on stackoverflow. – Richard Knop Jul 24 '09 at 14:10

hey use extension_loaded() instead of dl

share|improve this answer

  1. unpack
  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.
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.