title: How to install FFMpeg in WampServer 2.0 (Windows XP)
body: <p>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.</p>
  
  <p>I have WampServer 2.0 with PHP 5.2.9-2, my OS is Windows XP. Please somebody give me step by step instructions.</p>
  
  <p>I have found some Windows builds here: <a href="http://sourceforge.net/projects/ffmpeg-php/files/" rel="noreferrer">http://sourceforge.net/projects/ffmpeg-php/files/</a></p>
  
  <p>But I don't know which one to download and what to do with files.</p>
  
  <p>EDITED:</p>
  
  <p>What I have done so far:</p>
  
  <ol>
  <li>Download ffmpeg_new</li>
  <li>Copy php_ffmpeg.dll from the php5 folder to the C:\wamp\bin\php\php5.2.9-2\ext</li>
  <li>Copy files from common to the windows/system32 folder</li>
  <li>Add extension=php_ffmpeg.dll to php.ini file</li>
  <li>Restarted all services (Apache, PHP...)</li>
  </ol>
  
  <p>I am gettings an error after using this code:</p>
  
  <pre><code>            $extension = 'ffmpeg';
              $extension_soname = 'php_ffmpeg.dll';
              $extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;
  
              // load extension
              if(false === extension_loaded($extension)) {
                  if (false === dl($extension_soname))
                      throw new Exception("Can't load extension $extension_fullname\n");
              }
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Plus I also get the exception from above.</p>