久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      linux怎么安裝ffmpeg-php擴(kuò)展

      安裝方法:1、下載ffmpeg安裝包,使用tar命令進(jìn)行解壓;2、使用make命令編譯安裝ffmpeg;3、3、載ffmpeg-php安裝包,使用tar命令進(jìn)行解壓;4、使用make命令編譯安裝ffmpeg-php即可。

      linux怎么安裝ffmpeg-php擴(kuò)展

      本教程操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

      1、安裝ffmpeg

      (1)獲取安裝包

      wget -c wget http://down1.chinaunix.net/distfiles/ffmpeg-0.4.9-p20051120.tar.bz2

      (2)解壓

      tar -xvf ffmpeg-0.4.9-p20051120.tar.bz2

      (3)編譯安裝

      ./configure --prefix=/usr/local/ffmpeg --enable-shared make make install

      (4)測試

      直接輸入:ffmpeg

      ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard configuration: --prefix=/usr/local/ffmpeg --enable-shared built on Oct 16 2013 17:05:16, gcc: 4.4.7 20120313 (Red Hat 4.4.7-3) usage: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}... Hyper fast Audio and Video encoder Main options: -L show license -h show help ................................省略

      如果編譯報(bào)如下錯(cuò)誤

      yasm not found, use –disable-yasm for a crippled build的錯(cuò)誤,需要先編譯安裝yasm

      yasm下載地址:http://yasm.tortall.net/Download.html

      下載源碼包解壓后,編譯安裝

      ./configure make make install

      如果測試時(shí)報(bào)如下錯(cuò)誤

      ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory”

      解決辦法

      vi /etc/ld.so.conf

      加入

      /usr/local/ffmpeg/lib

      然后執(zhí)行

      ldconfig

      2、安裝ffmpeg-php

      (1)下載安裝包

      wget http://jaist.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.5.3.1/ffmpeg-php-0.5.3.1.tbz2

      (2)解壓

      tar -xvf ffmpeg-php-0.5.3.1.tbz2

      (3)編譯安裝

      cd ffmpeg-php-0.5.3.1 ./configure --with-php-config=/usr/local/php/bin/php-config --with-ffmpeg=/usr/local/ffmpeg make make install

      (4)測試

      在php的配置php.ini文件,添加如下內(nèi)容

      extension=ffmpeg.so

      重啟apache或php-fpm,用php測試

      /usr/local/php/bin/php -r 'phpinfo();' | grep ffmpeg ffmpeg ffmpeg support (ffmpeg-php) => enabled ffmpeg-php version => 0.5.3.1 ffmpeg-php gd support => enabled ffmpeg.allow_persistent => 0 => 0 ffmpeg.show_warnings => 0 => 0 ............................省略

      3、遇到的錯(cuò)誤解決如下

      (1)如果在make 時(shí)發(fā)現(xiàn)錯(cuò)誤提示:make: *** [ffmpeg_frame.lo] Error 1 則:

      mv ffmpeg_frame.loT ffmpeg_frame.lo

      然后重新make;make install

      (2)如果調(diào)用ffmepg-php模塊錯(cuò)誤提示:

      php: symbol lookup error: /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: undefined symbol: register_ffmpeg_frame_class

      則修改ffmpeg_frame.c,將3處的PIX_FMT_RGBA32 更改為PIX_FMT_RGB32即可。

      vi ffmpeg_frame.c :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32 :wq!

      然后重新configure;make;make install

      (3)如果make 時(shí)報(bào)

      make: *** [ffmpeg-php.lo] Error 1

      需要在編譯時(shí),加上./configure –with-php-config=/usr/local/php/bin/php-config

      如果還是不行,請更換ffmpeg和ffmpeg-php的版本試試,也可能是版本間不兼容。

      推薦學(xué)習(xí):《PHP視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號