今天就跟大家聊聊有關如何在Centos 6.5中安裝ffmpeg擴展,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結了以下內容,希望大家根據(jù)這篇文章可以有所收獲。
安裝步驟如下:
安裝必須的環(huán)境yasm
wget /tupian/20230522/yasm-0.7.0.tar.gz tar zxvf yasm-0.7.0.tar.gz cd yasm-0.7.0 ./configure make && make install
安裝ffmpeg
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg cd ffmpeg ./configure --enable-shared make make install
安裝ffmpeg-php
下載地址:http://ffmpeg-php.sourceforge.net/
tar jxvf ffmpeg-php-0.6.0.tbz2 cd ffmpeg-php-0.6.0 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config
重要:排錯?。?!
vi ffmpeg_frame.c :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32 #替換PIX_FMT_RGBA32為/PIX_FMT_RGB32 make &&make install vi /usr/local/php/etc/php.ini 加入: extension=ffmpeg.so service httpd restart #重啟apache生效
看完上述內容,你們對如何在Centos 6.5中安裝ffmpeg擴展有進一步的了解嗎?如果還想了解更多知識或者相關內容,請關注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝大家的支持。