简体   繁体   中英

How to fix PHP warning: PHP Startup: Unable to load dynamic library 'php_ffmpeg.dll'

I am trying to install the ffmpeg extension in WampServer for Windows. I have copied all files in particular folders as described here https://www.jaypan.com/tutorial/installing-ffmpeg-wamp .

But I am getting the following errors in Apache error log and library is not loading in phpinfo()

PHP Warning: PHP Startup: Unable to load dynamic library 'ext/php_ffmpeg.dll' - The specified module could not be found.\\r\\n in Unknown on line 0
: PHP Startup: Unable to load dynamic library 'ext/php_ffmpeg.dll' - The specified module could not be found. :PHP启动:无法加载动态库'ext / php_ffmpeg.dll'-找不到指定的模块。 in on line 行的

Why am I getting this error? I tried upgrading PHP version but it has no effect on it.

How can I fix this PHP startup issue?

You are getting that error because the path to the dll is wrong. Without looking at your file system we can't provide the correct path. Check the path ext/php_ffmpeg.dll against the path of your other dll s that are loading. It has been awhile since I ran PHP on Windows but you could try something like dependencywalker to find the complete path that is attempting to be loaded. You might also have an issue if you are on a 64bit system (sysWOW64 I think). Also, double check you renamed php_ffmpeg_20050618.dll.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM