Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM FFMPEG php extension

Discussion in 'Bug Reports' started by KinderOvO, Oct 1, 2018.

  1. KinderOvO

    KinderOvO Member

    92
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    2:43 PM
    1.4
    10
    I try again install fmpeg but didnt work again. :(
    php 5.3.29



    make: *** [ffmpeg_frame.lo] Error 1
    grep: /etc/centminmod/php.d/ffmpeg.ini: No such file or directory

    FFMPEG PHP Extension installed
    restarting php-fpm service ...

    Redirecting to /bin/systemctl restart php-fpm.service

    check phpinfo for FFMPEG PHP Extension...

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Extension 'ffmpeg' not present.
    Redirecting to /bin/systemctl restart php-fpm.service

    ----------------------------------------------------------------
    FAILED...
    failed to install FFMPEG PHP Extension
    FFMPEG PHP Extension has a high change of install failure
    due to developer abandoning the project so if failed
    the FFMPEG PHP Extension is not installable
    ----------------------------------------------------------------


    -------------------------------------------------------------------------
    Installing ffmpeg-php extension relies on the ffmpeg-php developer
    to keep ffmpeg-php updated for ffmpeg compatibility and that has
    been flaky with various compatibility issues. There have been work
    arounds like https://community.centminmod.com/posts/24018/ but
    there are no guarantees due to issues outlined in this thread post
    at [Solved] - Unable to install FFMPEG PHP extension

    if ffmpeg-php fails to compile, you can unload it by removing the
    settings file at /etc/centminmod/php.d/ffmpeg.ini and restarting
    php-fpm service
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,808
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    2:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah as the info message states
     
  3. KinderOvO

    KinderOvO Member

    92
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    2:43 PM
    1.4
    10
    Is there any way to copy fffmpeg-php I need to migrate an old site using ffmpeg-php?

    When I am typing in terminal ffmpeg
    [root]# ffmpeg
    -bash: ffmpeg: command not found
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,808
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    2:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    if you don't need php extension and only need ffmpeg binary then use static binary versions https://johnvansickle.com/ffmpeg/

    if you ran centmin.sh menu option 19 to install FFMPEG it installs binary to /opt/bin/ffmpeg while php extension is separate and as you see fails to install.

    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 19
    --------------------------------------------------------
    

    Code (Text):
    --------------------------------------------------------
                 FFMPEG Sub-Menu            
    --------------------------------------------------------
    1). Install FFMPEG Binary + FFMPEG PHP extension
    2). Update FFMPEG Binary + FFMPEG PHP extension
    3). Reinstall FFMPEG PHP extension
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 1
    --------------------------------------------------------
    
    -------------------------------------------------------------------------
    Installing ffmpeg-php extension relies on the ffmpeg-php developer
    to keep ffmpeg-php updated for ffmpeg compatibility and that has
    been flaky with various compatibility issues. There have been work
    arounds like https://community.centminmod.com/posts/24018/ but
    there are no guarantees due to issues outlined in this thread post
    at https://community.centminmod.com/posts/7078/
    
    if ffmpeg-php fails to compile, you can unload it by removing the
    settings file at /etc/centminmod/php.d/ffmpeg.ini and restarting
    php-fpm service
    -------------------------------------------------------------------------
    
    Do you want to continue with ffmpeg-php + ffmpeg install ? [y/n] y
    

    Code (Text):
    /opt/bin/ffmpeg -version
    ffmpeg version git-2019-05-28-819ed1d Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
    configuration: --prefix=/opt/ffmpeg --extra-cflags=' -I/opt/ffmpeg/include' --extra-ldflags=-L/opt/ffmpeg/lib --bindir=/opt/bin --pkg-config-flags=--static --extra-libs=-lpthread --extra-libs=-lm --enable-gpl --disable-debug --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libass --enable-libzimg --enable-swscale --enable-shared
    libavutil      56. 28.100 / 56. 28.100
    libavcodec     58. 52.102 / 58. 52.102
    libavformat    58. 27.103 / 58. 27.103
    libavdevice    58.  7.100 / 58.  7.100
    libavfilter     7. 54.101 /  7. 54.101
    libswscale      5.  4.101 /  5.  4.101
    libswresample   3.  4.100 /  3.  4.100
    libpostproc    55.  4.100 / 55.  4.100