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:
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.
add this line to your php.ini file
[PHP_ffmpeg]
extension=php_ffmpeg.dll
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With