Learn about Centmin Mod LEMP Stack today
Become a Member

[Solved] Unable to install FFMPEG PHP extension

Discussion in 'Bug Reports' started by Guneyd, Sep 30, 2014.

  1. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:43 PM
    Mainline
    10.2
    Got this error with CentOS 7.4 and PHP 5.6
    Code:
    NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0


     
  2. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haven't tested routine in ages so who knows

    should have ffmpeg install log in /root/centminlogs you can gist/pastebin
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, ffmpeg-php extension is broken again.. probably without fix.

    in Centmin Mod 123.09beta01 latest updated code managed to fix ffmpeg binary install routine but ffmpeg-php extension is no more it seems it fails to compile with latest ffmpeg binary as ffmpeg-php developer has abandoned updates :(

    relevant updates
    so update to latest 123.09beta01 before re-running centmin.sh menu option 19 submenu option 1

    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches or you can run cmupdate command that was recently added.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to. You can easily update within a Centmin Mod version branch or switch version branches via centmin.sh menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
    FYI, here's actual ffmpeg-php extension compilation errors if anyone was curious and/or has the coding chops to fork the ffmpeg-php extension code at tony2001 (Antony Dovgal) · GitHub and code fixes/updates to work with latest ffmpeg binaries.
    Code (Text):
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_stream_index’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:146:17: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
                     GET_CODEC_FIELD(fmt_ctx->streams[i]->codec, codec_type) == type) {
                     ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_decoder_context’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:479:9: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
             decoder = avcodec_find_decoder(GET_CODEC_FIELD(
             ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:490:13: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
                 GET_CODEC_PTR(ffmovie_ctx->fmt_ctx->streams[stream_index]->codec);
                 ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_framerate’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:638:5: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
         if (GET_CODEC_FIELD(st->codec, codec_type) == AVMEDIA_TYPE_VIDEO){
         ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:642:13: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
                 rate = 1 / av_q2d(GET_CODEC_FIELD(st->codec, time_base));
                 ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_framewidth’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:718:5: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
         return GET_CODEC_FIELD(st->codec, width);
         ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_frameheight’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:746:5: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
         return GET_CODEC_FIELD(st->codec, height);
         ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_codec_name’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:921:27: error: ‘AVCodecContext’ has no member named ‘codec_name’
         } else if (decoder_ctx->codec_name[0] != '\0') {
                               ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:922:33: error: ‘AVCodecContext’ has no member named ‘codec_name’
             codec_name = decoder_ctx->codec_name;
                                     ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_read_av_frame’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1171:11: warning: assignment makes pointer from integer without a cast [enabled by default]
         frame = avcodec_alloc_frame();
               ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1177:13: warning: ‘avcodec_decode_video2’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4664) [-Wdeprecated-declarations]
                 avcodec_decode_video2(decoder_ctx, frame, &got_frame, &packet);
                 ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1182:17: warning: ‘av_free_packet’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4336) [-Wdeprecated-declarations]
                     av_free_packet(&packet);
                     ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1188:9: warning: ‘av_free_packet’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4336) [-Wdeprecated-declarations]
             av_free_packet(&packet);
             ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_ff_frame’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1294:28: warning: assignment makes pointer from integer without a cast [enabled by default]
             ff_frame->av_frame = avcodec_alloc_frame();
                                ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1295:9: warning: ‘avpicture_alloc’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5303) [-Wdeprecated-declarations]
             avpicture_alloc((AVPicture*)ff_frame->av_frame, ff_frame->pixel_format,
             ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1301:9: warning: ‘av_picture_copy’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5336) [-Wdeprecated-declarations]
             av_picture_copy((AVPicture*)ff_frame->av_frame,
             ^
    /svr-setup/ffmpeg-php-git/ffmpeg_frame.c: In function ‘_php_convert_frame’:
    /svr-setup/ffmpeg-php-git/ffmpeg_frame.c:215:5: warning: ‘avpicture_alloc’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5303) [-Wdeprecated-declarations]
         avpicture_alloc((AVPicture*)dst_frame, dst_fmt, ff_frame->width,
         ^
    /svr-setup/ffmpeg-php-git/ffmpeg_frame.c: In function ‘_php_resample_frame’:
    /svr-setup/ffmpeg-php-git/ffmpeg_frame.c:515:5: warning: ‘avpicture_alloc’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5303) [-Wdeprecated-declarations]
         avpicture_alloc((AVPicture*)resampled_frame, AV_PIX_FMT_YUV420P,
         ^
    make: *** [ffmpeg_movie.lo] Error 1
    make: *** Waiting for unfinished jobs....
    /bin/sh /svr-setup/ffmpeg-php-git/libtool --mode=compile ccache gcc  -I. -I/svr-setup/ffmpeg-php-git -DPHP_ATOM_INC -I/svr-setup/ffmpeg-php-git/include -I/svr-setup/ffmpeg-php-git/main -I/svr-setup/ffmpeg-php-git -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -I/opt/ffmpeg/include -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/ffmpeg-php-git/ffmpeg_movie.c -o ffmpeg_movie.lo 
     ccache gcc -I. -I/svr-setup/ffmpeg-php-git -DPHP_ATOM_INC -I/svr-setup/ffmpeg-php-git/include -I/svr-setup/ffmpeg-php-git/main -I/svr-setup/ffmpeg-php-git -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/opt/ffmpeg/include -DHAVE_CONFIG_H -g -O2 -c /svr-setup/ffmpeg-php-git/ffmpeg_movie.c  -fPIC -DPIC -o .libs/ffmpeg_movie.o
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_stream_index’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:146:17: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
                     GET_CODEC_FIELD(fmt_ctx->streams[i]->codec, codec_type) == type) {
                     ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_decoder_context’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:479:9: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
             decoder = avcodec_find_decoder(GET_CODEC_FIELD(
             ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:490:13: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
                 GET_CODEC_PTR(ffmovie_ctx->fmt_ctx->streams[stream_index]->codec);
                 ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_framerate’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:638:5: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
         if (GET_CODEC_FIELD(st->codec, codec_type) == AVMEDIA_TYPE_VIDEO){
         ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:642:13: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
                 rate = 1 / av_q2d(GET_CODEC_FIELD(st->codec, time_base));
                 ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_framewidth’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:718:5: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
         return GET_CODEC_FIELD(st->codec, width);
         ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_frameheight’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:746:5: warning: ‘codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:876) [-Wdeprecated-declarations]
         return GET_CODEC_FIELD(st->codec, height);
         ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_codec_name’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:921:27: error: ‘AVCodecContext’ has no member named ‘codec_name’
         } else if (decoder_ctx->codec_name[0] != '\0') {
                               ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:922:33: error: ‘AVCodecContext’ has no member named ‘codec_name’
             codec_name = decoder_ctx->codec_name;
                                     ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_read_av_frame’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1171:11: warning: assignment makes pointer from integer without a cast [enabled by default]
         frame = avcodec_alloc_frame();
               ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1177:13: warning: ‘avcodec_decode_video2’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4664) [-Wdeprecated-declarations]
                 avcodec_decode_video2(decoder_ctx, frame, &got_frame, &packet);
                 ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1182:17: warning: ‘av_free_packet’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4336) [-Wdeprecated-declarations]
                     av_free_packet(&packet);
                     ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1188:9: warning: ‘av_free_packet’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4336) [-Wdeprecated-declarations]
             av_free_packet(&packet);
             ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c: In function ‘_php_get_ff_frame’:
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1294:28: warning: assignment makes pointer from integer without a cast [enabled by default]
             ff_frame->av_frame = avcodec_alloc_frame();
                                ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1295:9: warning: ‘avpicture_alloc’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5303) [-Wdeprecated-declarations]
             avpicture_alloc((AVPicture*)ff_frame->av_frame, ff_frame->pixel_format,
             ^
    /svr-setup/ffmpeg-php-git/ffmpeg_movie.c:1301:9: warning: ‘av_picture_copy’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5336) [-Wdeprecated-declarations]
             av_picture_copy((AVPicture*)ff_frame->av_frame,
             ^
    make: *** [ffmpeg_movie.lo] Error 1
    grep: /etc/centminmod/php.d/ffmpeg.ini: No such file or directory
    
     
  4. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    4:43 PM
    1.11.3
    10.1.13 (?)
    Aloha, been away awhile, glad to be back.

    George : I am again installing Centminmod. It is for an older vBulletin install using older 5.x PHP versions, as it was in 2016 when I last got it working on CentOS 7 and I am again (actually still!) in need of a link to the full zip file of the build/"commit" that worked for you (currently page 7 of this thread). Please link me to the page with the last full centminmod package that includes the last working FFMPEG-PHP installer so I can try a reinstall. (Ref.: https://community.centminmod.com/threads/unable-to-install-ffmpeg-php-extension.1519/page-7#post-34709 )
     
    Last edited: Nov 5, 2019
  5. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    using the commit won't work newer PHP versions won't work with it and it's not recommended using older insecure PHP versions considering how many security flaws and exploits are out there for vBulletin right now
     
  6. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    4:43 PM
    1.11.3
    10.1.13 (?)
    Again, I will not be using newer PHP versions. Unfortunately I again have to fit the Centminmod / ffmpeg.sh script build to match the vBulletin product version / older PHP version rather than the other way around so I don't have the choice available to choose more secure versions ( at least until more money flows in for an upgrade ... Which I am not expecting any time soon.) I linked you back to the original thread of 2016 so you would know which build/commit I am talking about. I am not asking for guarantees or warrantees, or your well- taken security advice at this point but am only interested in doing that reinstall : simple logic : same build of CentOS + Same older version of PHP selected during install + correct build of Centminmod from that time it worked = success. Please help me locate that commit zip!
     
    Last edited: Nov 5, 2019
  7. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    rolling back to those old commits also means rolling back Centmin Mod security and bug fixes and new features added since and pretty sure that will break alot of things in Centmin Mod and your sites operation right now. You'll probably end up with non-working nginx, php configuration if you rolled back now. FYI, php download routines changed too so rolling back, will render any PHP upgrade/downgrade or download/compile inoperable - initial Centmin Mod installs on rollback will probably fail to install any version of PHP.

    Can't you use static ffmpeg binary ?
     
  8. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    4:43 PM
    1.11.3
    10.1.13 (?)
    No, my software requires ffmpeg-php ... Thanks for the warnings, please link me to that build ...
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    link is already linked to and links to Beta Branch - update addons/ffmpeg.sh with notice in 123.09beta01 which links to update addons/ffmpeg.sh with notice in 123.09beta01 · centminmod/centminmod@a4f53e9

    and history of addons/ffmpeg.sh commits at centminmod/centminmod

    but note pretty sure you're end up with broken Centmin Mod nginx and php-fpm if you rollback 3+ yrs of 123.09beta01 updates.
     
  10. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    4:43 PM
    1.11.3
    10.1.13 (?)
    No... The links you gave me go to the current
    123.09beta01 page ... I cannot seem to find the zip files for earlier commits on 123.09beta01 ... Please link me ... Unless this link has the correct older version of ffmpeg.sh ?? : update AMD EPYC 7451 and EPYC 7501 detection in 123.09beta01 · centminmod/centminmod@70c42f3

    If I am not mistaken, the above link contains ffmpeg.sh as it existed then ? And if so, would I just replace the current ffmpeg.sh with this older one or would I need to get the whole Centminmod install script package from that time?
     
    Last edited: Nov 6, 2019
  11. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    each github commit has it's own link to browse the commit and get zip download link

    browse files link in top right

    upload_2019-11-6_0-49-26.png

    then when browsing files download link to git clone or zip is in right side

    upload_2019-11-6_0-50-13.png

    again no support is provided by me for this as I am 100% sure you'll end up with broken Centmin Mod using 3+ yrs old 123.09beta01 code and you'll have a boat load of security flaws and critical bug fixes missing in Nginx (and OpenSSL for Nginx) and PHP-FPM to deal with
     
  12. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    4:43 PM
    1.11.3
    10.1.13 (?)
    Sorry George, my bad, I am using Android Firefox browser and was in Mobile mode which does not display the Browse Files button.

    In theory, if ALL files on my box are identical to the last successful (translation : ffmpeg-php installed successfully at final step), then it MUST work. Hardest part now may be finding the exact same build of CentOS 7. .... Thanks for all your help, I'll keep you posted.
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    problem is 123.0beta01 has had 3+ yrs of updates since including total rework of php install/update routines - on 3 yr old 123.09beta01, centmin.sh menu option 5 and initial install of php won't work as you wont even be able to download PHP in the first place. So you won't be able to install PHP even
     
  14. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    4:43 PM
    1.11.3
    10.1.13 (?)
    Great, well what do you suggest doing? My software is ffmpeg-php based ... How much trouble would it be to simply change the repository links in whatever scripts to point to the right URL to download the right PHP version? One quick Replace with PowerGREP and that commit could work perfectly ... Please help
     
  15. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    won't be a quick URL replacement unfortunately hence why I wouldn't provide support for it as they're extensive changes. If you really need ffmpeg functionality probably need to hire a developer to update ffmpeg php repo code at tony2001/ffmpeg-php to do update to support latest PHP versions 5.6 to 7.4
     
  16. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    4:43 PM
    1.11.3
    10.1.13 (?)
    Nah, I have decided to take your advice and upgrade my vBulletin software instead.

    Thanks again my friend.

    I will post back here when I get it all working. :)
     
  17. Meirami

    Meirami Active Member

    154
    28
    28
    Dec 21, 2017
    Ratings:
    +63
    Local Time:
    4:43 PM
    Is this now totally outdated?

    Code:
    # cat centminmod_ffmpeg_phpext_install_170220-220632.log
    
    The ffmpeg php extension is no longer supported due to developer support ending
    If you have ran centmin.sh menu option 19 submenu option 1, then you have installed
    ffmpeg binary at /opt/bin/ffmpeg and can use that with some web apps only requiring
    pointing to the full path of ffmpeg binary at /opt/bin/ffmpeg
    
    
    Total FFMPEG PHP Extension Install Time: .002166358 seconds
    Code:
    .
    .
    .
    Cloning into 'ffmpeg'...
    ERROR: libmp3lame >= 3.98.3 not found
    
    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "ffbuild/config.log" produced by configure as this will help
    solve the problem.
    Makefile:2: ffbuild/config.mak: No such file or directory
    Makefile:40: /tools/Makefile: No such file or directory
    Makefile:41: /ffbuild/common.mak: No such file or directory
    Makefile:97: /libavutil/Makefile: No such file or directory
    Makefile:97: /ffbuild/library.mak: No such file or directory
    Makefile:99: /fftools/Makefile: No such file or directory
    Makefile:100: /doc/Makefile: No such file or directory
    Makefile:101: /doc/examples/Makefile: No such file or directory
    Makefile:166: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    Makefile:2: ffbuild/config.mak: No such file or directory
    Makefile:40: /tools/Makefile: No such file or directory
    Makefile:41: /ffbuild/common.mak: No such file or directory
    Makefile:97: /libavutil/Makefile: No such file or directory
    Makefile:97: /ffbuild/library.mak: No such file or directory
    Makefile:99: /fftools/Makefile: No such file or directory
    Makefile:100: /doc/Makefile: No such file or directory
    Makefile:101: /doc/examples/Makefile: No such file or directory
    Makefile:166: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    Makefile:2: ffbuild/config.mak: No such file or directory
    Makefile:40: /tools/Makefile: No such file or directory
    Makefile:41: /ffbuild/common.mak: No such file or directory
    Makefile:97: /libavutil/Makefile: No such file or directory
    Makefile:97: /ffbuild/library.mak: No such file or directory
    Makefile:99: /fftools/Makefile: No such file or directory
    Makefile:100: /doc/Makefile: No such file or directory
    Makefile:101: /doc/examples/Makefile: No such file or directory
    Makefile:166: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    /opt/ffmpeg/lib
    
    Installed FFMPEG binary at /opt/bin/ffmpeg
    
    /usr/local/src/centminmod/addons/ffmpeg.sh: line 515: /opt/bin/ffmpeg: No such file or directory
    
    /usr/local/src/centminmod/addons/ffmpeg.sh: line 518: /opt/bin/ffmpeg: No such file or directory
    
    Binaries installed at /opt/bin
    
    Total FFMPEG Source Compile Install Time: 550.266588924 seconds
    There's no ffmpeg
    Code:
    # ls -la /opt/bin
    total 9924
    drwxr-xr-x  2 root root    4096 Feb 17 22:00 .
    drwxr-xr-x. 7 root root    4096 Feb 17 21:59 ..
    -rwxr-xr-x  1 root root 2549568 Feb 17 21:59 vsyasm
    -rwxr-xr-x  1 root root 2520032 Feb 17 22:00 x264
    -rwxr-xr-x  1 root root 2546880 Feb 17 21:59 yasm
    -rwxr-xr-x  1 root root 2528040 Feb 17 21:59 ytasm
    I have installed centmin just a few days ago with betainstaller74.sh script.

    If it's not possible to install ffmpeg anymore, how to remove files which were installed when I tryed to install ffmpeg + ffmpeg php extension?
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I updated addons/ffmpeg.sh on Feb 6 2020 with fixes for lame version 3.100 centminmod/centminmod so just run cmupdate command before running addons/ffmpeg.sh

    if still has errors post output of the /root/centminlogs for ffmpeg log filename listed via command to a pastebin.com or gist.github.com entry and provide link here
    Code (Text):
    ls -lahrt /root/centminlogs | grep ffmpeg | tail -1

    which would list the file of most recent ffmpeg log for centmin.sh menu option 19

    Code (Text):
    /opt/bin/ffmpeg -version
    ffmpeg version git-2020-02-18-ebee808 Copyright (c) 2000-2020 the FFmpeg developers
    built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
    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. 41.100 / 56. 41.100
    libavcodec     58. 70.100 / 58. 70.100
    libavformat    58. 38.101 / 58. 38.101
    libavdevice    58.  9.103 / 58.  9.103
    libavfilter     7. 76.100 /  7. 76.100
    libswscale      5.  6.100 /  5.  6.100
    libswresample   3.  6.100 /  3.  6.100
    libpostproc    55.  6.100 / 55.  6.100
    
     
  19. Meirami

    Meirami Active Member

    154
    28
    28
    Dec 21, 2017
    Ratings:
    +63
    Local Time:
    4:43 PM
    Thank You! Feels like working now.