How to install FFMpeg in WampServer 2.0 (Windows XP)
- by Richard Knop
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: http://sourceforge.net/projects/ffmpeg-php/files/
But I don't know which one to download and what to do with files.
EDITED:
What I have done so far:
Download ffmpeg_new
Copy php_ffmpeg.dll from the php5 folder to the C:\wamp\bin\php\php5.2.9-2\ext
Copy files from common to the windows/system32 folder
Add extension=php_ffmpeg.dll to php.ini file
Restarted all services (Apache, PHP...)
I am gettings an error after using this 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");
}
The error:
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
Plus I also get the exception from above.