Jump to content

Can't install ffmpeg??


truongpm

Recommended Posts

Hello,

When i try to install php_ffmpeg.dll into my apache server following step:

- ffmpeg.exe file from this URL http://ffmpeg.arrozcru.org/builds/ (successfully with test: c:/ffmpeg/ffmpeg.exe –i d:/myfile.mpg d:/myfile.flv /y)

- download ffmpeg-php extension and API documentation from this URL http://sourceforge.net/projects/ffmpeg-php

- fmpeg-php dll files into PHP "ext" (extensions) folder or System32,

Where the extensions are located.

- Make this entry in php.ini

[php_ffmpeg]

extension=php_ffmpeg.dll

- Restart my apache

But php_ffmpeg does not display in phpinfo

And i try with:

 

$extension = "ffmpeg";

$extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;

$extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;

 

// load extension

if(!extension_loaded($extension)) {

    dl($extension_soname) or die("Can't load extension $extension_fullname\n");

}

 

the result is:

Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=ffmpeg.dll in your php.ini in E:\AppServ\www\testffmpeg.php on line 9

...

Can't load extension C:\php5/ffmpeg.dll

 

In apache error log:

PHP Warning:  PHP Startup: Unable to load dynamic library 'E:/AppServ\\php5\\ext\\php_ffmpeg.dll' - The specified module could not be found.\r\n in Unknown on line 0

 

I had spend for long time to find the solution but i not yet.

 

Please help me!

Link to comment
https://forums.phpfreaks.com/topic/173308-cant-install-ffmpeg/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.