如何在 WampServer 2.0 (Windows XP) 中安装 FFMpeg

发布于 2024-07-27 15:32:55 字数 1460 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

梦过后 2024-08-03 15:32:55

将此行添加到您的 php.ini 文件中

[PHP_ffmpeg]
extension=php_ffmpeg.dll

add this line to your php.ini file

[PHP_ffmpeg]
extension=php_ffmpeg.dll
没企图 2024-08-03 15:32:55

http://sergey89.ru/files/ffmpeg-php-win32-all。 zip

  1. 解压 ffmpeg-php-win32-all.zip
  2. 将 php_ffmpeg.dll 复制到 \wamp\php4\extension\ (对于 php5,它是
    \wamp\bin\php\ext)
  3. 复制 avcodec.dll & avformat.dll 和包中的任何其他文件到 \windows\system32\
  4. 编辑 \wamp\apache\apache2.xx\bin\php.ini - 添加行 extension=php_ffmpeg.dll
  5. 重新启动 Apache。

http://sergey89.ru/files/ffmpeg-php-win32-all.zip

  1. unpack ffmpeg-php-win32-all.zip
  2. Copying php_ffmpeg.dll to the \wamp\php4\extension\ (for php5 it's
    \wamp\bin\php\ext)
  3. Copying avcodec.dll & avformat.dll and any other in package to the \windows\system32\
  4. Editing \wamp\apache\apache2.xx\bin\php.ini - adding line extension=php_ffmpeg.dll
  5. Restarting Apache.
谁许谁一生繁华 2024-08-03 15:32:55
  1. 下载ffmpeg_new
  2. 将php5文件夹中的php_ffmpeg.dll复制到wamp/php/ext文件夹中
  3. 将common中的文件复制到windows/system32文件夹中
  1. Download ffmpeg_new
  2. Copy php_ffmpeg.dll from the php5 folder to the wamp/php/ext folder
  3. Copy files from common to the windows/system32 folder
请远离我 2024-08-03 15:32:55

看起来问题不在于 ffmpeg...警告是关于 dl 函数的使用。 多线程 PHP 不支持动态加载任何 PHP 扩展,因此您需要确保将其 .dll 文件放置在其余 php 模块所在的位置。

您真正需要弄清楚的是,尽管您的 php.ini 中有“extension=php_ffmpeg.dll”指令,但为什么扩展程序无法加载。 通常您可以在 apache 错误日志中看到任何启动错误(例如 PHP 表示无法加载库)。 另外,您是否查看过 phpinfo() 并验证了 ffmpeg 不存在(不应该存在,因为 extension_loaded 返回 false),但也许它以不同的名称存在(我想您也可以使用 get_loaded_extensions() ) 。

Doesn't look like the problem is with ffmpeg... the warning is about the use of the dl function. Multi-threaded PHP does not support dynamic loading of any PHP extension, so you'll need to make sure the .dll file for it is placed wherever the rest of your php modules live.

What you really need to figure out is why the extension doesn't load despite the fact you've got the "extension=php_ffmpeg.dll" directive in your php.ini. Usually you can see any startup errors in your apache error log (such as PHP saying it can't load a library). Also, have you taken a look at a phpinfo() and verified ffmpeg isn't present (shouldn't be since the extension_loaded returns false), but perhaps it's there under a different name (you could also use get_loaded_extensions() I suppose).

甜味拾荒者 2024-08-03 15:32:55
; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off

这些是 php.ini 中的行。 确保 enable_dl 已关闭。 之后您将不会收到错误。

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off

These are the lines in php.ini. Make sure that enable_dl is turned off. After that you will not get error.

塔塔猫 2024-08-03 15:32:55

编辑 \wamp\apache\apache2.xx\bin\php.ini - 添加行 extension=php_ffmpeg.dll

而不是

编辑 \wamp\bin\php\ php5.2.9\php.ini - 添加行 extension=php_ffmpeg.dll

Editing \wamp\apache\apache2.xx\bin\php.ini - adding line extension=php_ffmpeg.dll

INSTEAD OF

Editing \wamp\bin\php\php5.2.9\php.ini - adding line extension=php_ffmpeg.dll

万劫不复 2024-08-03 15:32:55

MirKo 是正确的,但我想

在从这里下载编译的 dll之后

  1. 添加:http://sergey89.ru/files/ffmpeg-php-win32-all.zip
  2. 提取并将 php_ffmpeg.dll 放入您的 php ext 文件夹
  3. 中其余的 dll 到你的 windows/system32 文件夹
  4. 重新启动 apache 并运行 phpinfo() - 你应该看到 ffmpeg 扩展(顺便说一句,如果你正在寻找错误 wamp->php->php 错误,你必须检查 php 而不是 apache 错误日志日志)

还有一步

  1. 打开php.ini文件并找到
    ; 扩展名=msql.dll
    在其后面添加
    扩展名=php_ffmpeg.dll

MirKo is correct but i'll like to add that

after

  1. Download compiled dlls from here: http://sergey89.ru/files/ffmpeg-php-win32-all.zip
  2. Extract and put php_ffmpeg.dll to you php ext folder
  3. Put the rest of dlls to you windows/system32 folder
  4. Restart apache and run phpinfo() - you should see the ffmpeg extension (btw you have to check php not apache error log if you are looking for errors wamp->php->php error log)

there is another step

  1. Open php.ini file and find
    ; extension=msql.dll
    add after it
    extension=php_ffmpeg.dll
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文