<i id='eCT51'><tr id='eCT51'><dt id='eCT51'><q id='eCT51'><span id='eCT51'><b id='eCT51'><form id='eCT51'><ins id='eCT51'></ins><ul id='eCT51'></ul><sub id='eCT51'></sub></form><legend id='eCT51'></legend><bdo id='eCT51'><pre id='eCT51'><center id='eCT51'></center></pre></bdo></b><th id='eCT51'></th></span></q></dt></tr></i><div id='eCT51'><tfoot id='eCT51'></tfoot><dl id='eCT51'><fieldset id='eCT51'></fieldset></dl></div>

    <legend id='eCT51'><style id='eCT51'><dir id='eCT51'><q id='eCT51'></q></dir></style></legend><tfoot id='eCT51'></tfoot>
  1. <small id='eCT51'></small><noframes id='eCT51'>

    • <bdo id='eCT51'></bdo><ul id='eCT51'></ul>
    1. ffmpeg MAMP“dyld:库未加载"错误

      时间:2023-09-20

                <bdo id='sJ9fQ'></bdo><ul id='sJ9fQ'></ul>

                <tfoot id='sJ9fQ'></tfoot>
                  <tbody id='sJ9fQ'></tbody>
                <i id='sJ9fQ'><tr id='sJ9fQ'><dt id='sJ9fQ'><q id='sJ9fQ'><span id='sJ9fQ'><b id='sJ9fQ'><form id='sJ9fQ'><ins id='sJ9fQ'></ins><ul id='sJ9fQ'></ul><sub id='sJ9fQ'></sub></form><legend id='sJ9fQ'></legend><bdo id='sJ9fQ'><pre id='sJ9fQ'><center id='sJ9fQ'></center></pre></bdo></b><th id='sJ9fQ'></th></span></q></dt></tr></i><div id='sJ9fQ'><tfoot id='sJ9fQ'></tfoot><dl id='sJ9fQ'><fieldset id='sJ9fQ'></fieldset></dl></div>
              • <small id='sJ9fQ'></small><noframes id='sJ9fQ'>

              • <legend id='sJ9fQ'><style id='sJ9fQ'><dir id='sJ9fQ'><q id='sJ9fQ'></q></dir></style></legend>
              • 本文介绍了ffmpeg MAMP“dyld:库未加载"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我在 Mac OSX 10.7.3 上通过 PHP 的 exec() 命令在 MAMP 中使用 ffmpeg,我设置了一个绝对路径来调用 ffmpeg,例如

                I am using ffmpeg on Mac OSX 10.7.3 in MAMP through PHP's exec() command, I have an absolute path set to call ffmpeg, e.g.

                /opt/local/bin/ffmpeg -i "/sample.avi"
                

                但我收到以下错误 -

                dyld: Library not loaded: /opt/local/lib/libjpeg.8.dylib  Referenced from: /opt/local/lib/libopenjpeg.1.dylib  Reason: Incompatible library version: libopenjpeg.1.dylib requires version 13.0.0 or later, but libJPEG.dylib provides version 12.0.0
                

                注意ffmpeg 是通过 Macports 安装的.

                N.B. ffmpeg was installed through Macports.

                它从命令行工作.

                怎么办?

                编辑

                我重新打开了这个 - 最初认为 shell_exec() 解决了这个问题,但实际上它应该以不同的方式调用 - 我直到今天进一步调查才意识到.这是我使用 shell_exec 的代码,但仍然出现上述错误:

                I've reopened this - originally thought shell_exec() solved the issue, but infact it should be called differently - and I didn't realise until investigating further today. Here is my code using shell_exec and still giving the error above:

                 $cmd = '/opt/local/bin/ffmpeg -h';
                 $cmd = escapeshellcmd($cmd) . ' 2>&1';
                 $output = shell_exec($cmd);
                 var_dump($output);
                

                推荐答案

                问题是 DYLD_LIBRARY_PATH 是在 MAMP 中设置的,我已经通过 macports 安装了 ffmpeg.

                The problem is that the DYLD_LIBRARY_PATH is set in MAMP and I've installed ffmpeg via macports.

                这可能不是最好的解决方法,但它让我现在就开始运行:

                This might not be the best fix but it has me up and running for now:

                /Applications/MAMP/Library/bin/envvars 文件中,注释以下几行:

                In the /Applications/MAMP/Library/bin/envvars file and comment the following lines as below:

                #DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
                #export DYLD_LIBRARY_PATH
                

                并重启Apache

                这篇关于ffmpeg MAMP“dyld:库未加载"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何在 WampServer 2.0 (Windows XP) 中安装 FFMpeg 下一篇:PHP - 如何让 Shell 错误回显到屏幕上

                相关文章

                最新文章

                    • <bdo id='UjhVl'></bdo><ul id='UjhVl'></ul>
                    <tfoot id='UjhVl'></tfoot>

                    <small id='UjhVl'></small><noframes id='UjhVl'>

                    <i id='UjhVl'><tr id='UjhVl'><dt id='UjhVl'><q id='UjhVl'><span id='UjhVl'><b id='UjhVl'><form id='UjhVl'><ins id='UjhVl'></ins><ul id='UjhVl'></ul><sub id='UjhVl'></sub></form><legend id='UjhVl'></legend><bdo id='UjhVl'><pre id='UjhVl'><center id='UjhVl'></center></pre></bdo></b><th id='UjhVl'></th></span></q></dt></tr></i><div id='UjhVl'><tfoot id='UjhVl'></tfoot><dl id='UjhVl'><fieldset id='UjhVl'></fieldset></dl></div>
                    <legend id='UjhVl'><style id='UjhVl'><dir id='UjhVl'><q id='UjhVl'></q></dir></style></legend>