FFMPEG and PHP on mac does`t work

后端 未结 1 1901
走了就别回头了
走了就别回头了 2021-01-14 22:32

I need your help. Currently I use Mac OS X 10.9.4 and xampp apache 1.8.3-3. I need to use ffmpeg (version 3.2) to convert video files via php exec() but I canno

相关标签:
1条回答
  • 2021-01-14 23:26

    problem is linked to DYLD_LIBRARY_PATH being set to xampp libraries folder

    try unsetting this before exec any one of these before exec will work

    exec('unset DYLD_LIBRARY_PATH ;');
    putenv('DYLD_LIBRARY_PATH');
    putenv('DYLD_LIBRARY_PATH=/usr/bin');
    
    0 讨论(0)
提交回复
热议问题