Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch update addons/ffmpeg.sh remove failed ffmpeg-php extension install .i…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 31, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    35,105
    7,751
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,953
    Local Time:
    7:29 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  2. eva2000

    eva2000 Administrator Staff Member

    35,105
    7,751
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,953
    Local Time:
    7:29 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
    
     
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    35,105
    7,751
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,953
    Local Time:
    7:29 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  4. worksmarter

    worksmarter New Member

    3
    4
    3
    Jan 10, 2018
    Ratings:
    +5
    Local Time:
    5:29 PM
    Apache
    Ver 15.1 Distrib 5.5.56-MariaDB
    eva2000, although I am not part of the CENTMINMOD project at the moment I thought I would offer up at least a partial solution for ffmpeg-php. I have forked and fixed a new fork of tony2001's repo and have it functioning. Feel free to re-include it in your project if you desire. I say a partial fix in that I have fixed the errors that were causing the 'make' build failure along with changing some constants that were causing deprecation warnings and it compiles properly now, but it still does have a handful of deprecated functions in it that I am looking for solutions for.

    Anyone out there that wishes to contribute to the project, feel welcome. At least in its current form it is working and in better shape (less deprecation warnings..) than the now as well abandoned and broken tony2001 fork.

    Here you can clone the repo from GitHub:

    GitHub - worksmarter/ffmpeg-php: PHP extension for video editing, wrapping ffmpeg
     
    Last edited: Jan 10, 2018
    • Winner Winner x 1
  5. eva2000

    eva2000 Administrator Staff Member

    35,105
    7,751
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,953
    Local Time:
    7:29 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Totally awesome @worksmarter you just made my day :)

    Will check out your fork as soon as I have some free time. Very much appreciate your sharing your fork :D
     
  6. eva2000

    eva2000 Administrator Staff Member

    35,105
    7,751
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,953
    Local Time:
    7:29 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    @worksmarter confirmed the fixes work for php 5.5/5.6 though as expected not support php 7.x
    Code (Text):
    php --ri ffmpeg
    
    ffmpeg
    
    ffmpeg-php version => 0.7.0
    ffmpeg-php built on => Jan 10 2018 19:24:23
    ffmpeg-php gd support  => disabled
    ffmpeg libavcodec version => Lavc58.9.100
    ffmpeg libavcodec license => nonfree and unredistributable
    ffmpeg libavformat version => Lavf58.3.100
    ffmpeg libavformat license => nonfree and unredistributable
    ffmpeg swscaler version => SwS5.0.101
    ffmpeg swscaler license => nonfree and unredistributable
    ffmpeg codec_list => a64multi(v), a64multi5(v), aasc(v), aic(v), alias_pix(v), alias_pix(v), amv(v), amv(v), anm(v), ansi(v), apng(v), apng(v), asv1(v), asv1(v), asv2(v), asv2(v), aura(v), aura2(v), avrp(v), avrp(v), avrn(v), avs(v), avui(v), avui(v), ayuv(v), ayuv(v), bethsoftvid(v), bfi(v), binkvideo(v), bmp(v), bmp(v), bmv_video(v), brender_pix(v), c93(v), cavs(v), cdgraphics(v), cdxl(v), cfhd(v), cinepak(v), cinepak(v), clearvideo(v), cljr(v), cljr(v), cllc(v), comfortnoise(a), comfortnoise(a), cpia(v), camstudio(v), cyuv(v), dds(v), dfa(v), dirac(v), dnxhd(v), dnxhd(v), dpx(v), dpx(v), dsicinvideo(v), dvaudio(a), dvvideo(v), dvvideo(v), dxa(v), dxtory(v), dxv(v), eacmv(v), eamad(v), eatgq(v), eatgv(v), eatqi(v), 8bps(v), 8svx_exp(a), 8svx_fib(a), escape124(v), escape130(v), exr(v), ffv1(v), ffv1(v), ffvhuff(v), ffvhuff(v), fic(v), fits(v), fits(v), flashsv(v), flashsv(v), flashsv2(v), flashsv2(v), flic(v), flv(v), flv(v), fmvc(v), 4xm(v), fraps(v), frwu(v), g2m(v), gdv(v), gif(v), gif(v), h261(v), h261(v), h263(v), h263(v), h263i(v), h263p(v), h263p(v), h264(v), hap(v), hevc(v), hnm4video(v), hq_hqa(v), hqx(v), huffyuv(v), huffyuv(v), idcinvideo(v), iff(v), indeo2(v), indeo3(v), indeo4(v), indeo5(v), interplayvideo(v), jpeg2000(v), jpeg2000(v), jpegls(v), jpegls(v), jv(v), kgv1(v), kmvc(v), lagarith(v), ljpeg(v), loco(v), m101(v), magicyuv(v), magicyuv(v), mdec(v), mimic(v), mjpeg(v), mjpeg(v), mjpegb(v), mmvideo(v), motionpixels(v), mpeg1video(v), mpeg1video(v), mpeg2video(v), mpeg2video(v), mpeg4(v), mpeg4(v), mpegvideo(v), msa1(v), mscc(v), msmpeg4v1(v), msmpeg4v2(v), msmpeg4v2(v), msmpeg4(v), msmpeg4(v), msrle(v), mss1(v), mss2(v), msvideo1(v), msvideo1(v), mszh(v), mts2(v), mvc1(v), mvc2(v), mxpeg(v), nuv(v), paf_video(v), pam(v), pam(v), pbm(v), pbm(v), pcx(v), pcx(v), pgm(v), pgm(v), pgmyuv(v), pgmyuv(v), pictor(v), pixlet(v), png(v), png(v), ppm(v), ppm(v), prores(v), prores(v), prores_aw(v), prores_ks(v), prores_lgpl(v), psd(v), ptx(v), qdraw(v), qpeg(v), qtrle(v), qtrle(v), r10k(v), r10k(v), r210(v), r210(v), rawvideo(v), rawvideo(v), rl2(v), roqvideo(v), roqvideo(v), rpza(v), rscc(v), rv10(v), rv10(v), rv20(v), rv20(v), rv30(v), rv40(v), s302m(a), s302m(a), sanm(v), scpr(v), screenpresso(v), sdx2_dpcm(a), sgi(v), sgi(v), sgirle(v), sheervideo(v), smackvid(v), smc(v), smvjpeg(v), snow(v), snow(v), sp5x(v), speedhq(v), srgc(v), sunrast(v), sunrast(v), svq1(v), svq1(v), svq3(v), targa(v), targa(v), targa_y216(v), tdsc(v), theora(v), thp(v), tiertexseqvideo(v), tiff(v), tiff(v), tmv(v), truemotion1(v), truemotion2(v), truemotion2rt(v), camtasia(v), tscc2(v), txd(v), ultimotion(v), utvideo(v), utvideo(v), v210(v), v210(v), v210x(v), v308(v), v308(v), v408(v), v408(v), v410(v), v410(v), vb(v), vble(v), vc1(v), vc1image(v), vc2(v), vcr1(v), vmdvideo(v), vmnc(v), vp3(v), vp5(v), vp6(v), vp6a(v), vp6f(v), vp7(v), vp8(v), vp9(v), vqavideo(v), bitpacked(v), webp(v), wrapped_avframe(v), wrapped_avframe(v), wmv1(v), wmv1(v), wmv2(v), wmv2(v), wmv3(v), wmv3image(v), wnv1(v), xan_wc3(v), xan_wc4(v), xbm(v), xbm(v), xface(v), xface(v), xl(v), xpm(v), xwd(v), xwd(v), y41p(v), y41p(v), ylc(v), yop(v), yuv4(v), yuv4(v), 012v(v), zerocodec(v), zlib(v), zlib(v), zmbv(v), zmbv(v), aac(a), aac(a), aac_fixed(a), aac_latm(a), ac3(a), ac3(a), ac3_fixed(a), ac3_fixed(a), alac(a), alac(a), als(a), amrnb(a), amrwb(a), ape(a), aptx(a), aptx(a), atrac1(a), atrac3(a), atrac3al(a), atrac3plus(a), atrac3plusal(a), binkaudio_dct(a), binkaudio_rdft(a), bmv_audio(a), cook(a), dca(a), dca(a), dolby_e(a), dsd_lsbf(a), dsd_msbf(a), dsd_lsbf_planar(a), dsd_msbf_planar(a), dsicinaudio(a), dss_sp(a), dst(a), eac3(a), eac3(a), evrc(a), wavesynth(a), flac(a), flac(a), g723_1(a), g723_1(a), g729(a), gsm(a), gsm_ms(a), iac(a), imc(a), interplayacm(a), mace3(a), mace6(a), metasound(a), mlp(a), mlp(a), mp1(a), mp1float(a), mp2(a), mp2(a), mp2float(a), mp2fixed(a), mp3(a), mp3float(a), mp3adu(a), mp3adufloat(a), mp3on4(a), mp3on4float(a), mpc7(a), mpc8(a), nellymoser(a), nellymoser(a), on2avc(a), opus(a), opus(a), paf_audio(a), qcelp(a), qdm2(a), qdmc(a), real_144(a), real_144(a), real_288(a), ralf(a), shorten(a), sipr(a), smackaud(a), sonic(a), sonic(a), sonicls(a), tak(a), truehd(a), truehd(a), truespeech(a), tta(a), tta(a), twinvq(a), vmdaudio(a), vorbis(a), vorbis(a), wavpack(a), wavpack(a), wmalossless(a), wmapro(a), wmav1(a), wmav1(a), wmav2(a), wmav2(a), wmavoice(a), ws_snd1(a), xma1(a), xma2(a), pcm_alaw(a), pcm_alaw(a), pcm_bluray(a), pcm_dvd(a), pcm_f16le(a), pcm_f24le(a), pcm_f32be(a), pcm_f32be(a), pcm_f32le(a), pcm_f32le(a), pcm_f64be(a), pcm_f64be(a), pcm_f64le(a), pcm_f64le(a), pcm_lxf(a), pcm_mulaw(a), pcm_mulaw(a), pcm_s8(a), pcm_s8(a), pcm_s8_planar(a), pcm_s8_planar(a), pcm_s16be(a), pcm_s16be(a), pcm_s16be_planar(a), pcm_s16be_planar(a), pcm_s16le(a), pcm_s16le(a), pcm_s16le_planar(a), pcm_s16le_planar(a), pcm_s24be(a), pcm_s24be(a), pcm_s24daud(a), pcm_s24daud(a), pcm_s24le(a), pcm_s24le(a), pcm_s24le_planar(a), pcm_s24le_planar(a), pcm_s32be(a), pcm_s32be(a), pcm_s32le(a), pcm_s32le(a), pcm_s32le_planar(a), pcm_s32le_planar(a), pcm_s64be(a), pcm_s64be(a), pcm_s64le(a), pcm_s64le(a), pcm_u8(a), pcm_u8(a), pcm_u16be(a), pcm_u16be(a), pcm_u16le(a), pcm_u16le(a), pcm_u24be(a), pcm_u24be(a), pcm_u24le(a), pcm_u24le(a), pcm_u32be(a), pcm_u32be(a), pcm_u32le(a), pcm_u32le(a), pcm_zork(a), gremlin_dpcm(a), interplay_dpcm(a), roq_dpcm(a), roq_dpcm(a), sol_dpcm(a), xan_dpcm(a), adpcm_4xm(a), adpcm_adx(a), adpcm_adx(a), adpcm_afc(a), adpcm_aica(a), adpcm_ct(a), adpcm_dtk(a), adpcm_ea(a), adpcm_ea_maxis_xa(a), adpcm_ea_r1(a), adpcm_ea_r2(a), adpcm_ea_r3(a), adpcm_ea_xas(a), g722(a), g722(a), g726(a), g726(a), g726le(a), g726le(a), adpcm_ima_amv(a), adpcm_ima_apc(a), adpcm_ima_dat4(a), adpcm_ima_dk3(a), adpcm_ima_dk4(a), adpcm_ima_ea_eacs(a), adpcm_ima_ea_sead(a), adpcm_ima_iss(a), adpcm_ima_oki(a), adpcm_ima_qt(a), adpcm_ima_qt(a), adpcm_ima_rad(a), adpcm_ima_smjpeg(a), adpcm_ima_wav(a), adpcm_ima_wav(a), adpcm_ima_ws(a), adpcm_ms(a), adpcm_ms(a), adpcm_mtaf(a), adpcm_psx(a), adpcm_sbpro_2(a), adpcm_sbpro_3(a), adpcm_sbpro_4(a), adpcm_swf(a), adpcm_swf(a), adpcm_thp(a), adpcm_thp_le(a), adpcm_vima(a), adpcm_xa(a), adpcm_yamaha(a), adpcm_yamaha(a), ssa(s), ssa(s), ass(s), ass(s), cc_dec(s), dvbsub(s), dvbsub(s), dvdsub(s), dvdsub(s), jacosub(s), microdvd(s), mov_text(s), mov_text(s), mpl2(s), pgssub(s), pjs(s), realtext(s), sami(s), srt(s), srt(s), stl(s), subrip(s), subrip(s), subviewer(s), subviewer1(s), text(s), text(s), vplayer(s), webvtt(s), webvtt(s), xsub(s), xsub(s), libfdk_aac(a), libfdk_aac(a), libmp3lame(a), libopus(a), libopus(a), libvorbis(a), libvorbis(a), libvpx(v), libvpx(v), libvpx-vp9(v), libvpx-vp9(v), libx264(v), libx264rgb(v), libx265(v), bintext(v), xbin(v), idf(v), h264_cuvid(v), h264_nvenc(v), nvenc(v), nvenc_h264(v), nvenc_hevc(v), hevc_cuvid(v), hevc_nvenc(v), mjpeg_cuvid(v), mpeg1_cuvid(v), mpeg2_cuvid(v), mpeg4_cuvid(v), vc1_cuvid(v), vp8_cuvid(v), vp9_cuvid(v),
    
    Directive => Local Value => Master Value
    ffmpeg.allow_persistent => 0 => 0
    ffmpeg.show_warnings => 0 => 0
     
  7. worksmarter

    worksmarter New Member

    3
    4
    3
    Jan 10, 2018
    Ratings:
    +5
    Local Time:
    5:29 PM
    Apache
    Ver 15.1 Distrib 5.5.56-MariaDB
    @eva2000 I have committed a new fix to the ffmpeg-php repo, so if you are cloning it you will get the fix, if not ffmpeg-php will fail.

    GitHub - worksmarter/ffmpeg-php: PHP extension for video editing, wrapping ffmpeg

    Enjoy! I hope I am able to continue to keep this repo of ffmpeg-php working for all to benefit...

    Oh incidentally this is still only relevant to php5.5/5.6 - sorry I can't do anything with php7 and higher, although when I switch over I might try, but for now I am running only 5.6 due to lack of development of the suhosin php security patch.

    Woops! - I messed up the pull on github. Here is the code change:
    -#define av_frame_alloc avcodec_alloc_frame
    +#define avcodec_alloc_frame av_frame_alloc
    and an added comment...

    Sorry, this is my first project using VS2017 to commit to GitHub repos... ;)
     
    Last edited: Jan 24, 2018
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    35,105
    7,751
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,953
    Local Time:
    7:29 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    thanks for the heads up @worksmarter (y)

    appreciate the work and understand about PHP7
     
..