yumからインストールしたffmpegでffmpeg-phpを利用する
phpizeはphpをyum経由でインストールするとphp-develがインストールしてないと使えないので
yum –enablerepo=rpmforge install ffmpeg-devel
とやって
無事インストールされたら再度ffmpeg-phpをインストールする
コンパイル環境がなければインストールしておく。
yum install gcc gcc-c++
yum install automake libtool
cd ffmpeg-php-0.X.X
phpize
./configure
make
make install
/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] エラー 1
これを解決するには
viでffmpeg_frame.cを開いて「RGBA32」を全部「RGBA」に置換してもう一度
./configure
make
make install
とインストールしてください。
全部無事に終わったら
php.iniに
extension=ffmpeg.so
を追加したらapache再起動で完了。