25.9.10

:: how to fix error: failed to convert frame to gd image

:: error gd image on ffmpeg-php
Fatal error: failed to convert frame to gd image in blahblabhblah

:: how to fix failed to convert frame to gd
- make sure your php supported gd (compiled with gd)
[ linux: ~ ]# php -i | grep gd

- install re2c
[ linux: ~ ]# zypper in re2c

- download and install ffmpeg lasted version
[ linux: ~ ]# svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
[ linux: ~ ]# cd ffmpeg
[ linux: ffmpeg ]# ./configure --disable-mmx --enable-shared --enable-gpl --enable-pthreads --disable-static --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libx264 --enable-gpl --enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-version3 --enable-swscale
[ linux: ffmpeg ]# make && make install
you can get more detail on this

- download and install ffmpeg-php to lasted version
[ linux: ~ ]# svn co https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php ffmpeg-php
[ linux: ~ ]# cp -rf ffmpeg-php/trunk/ffmpeg-php /usr/local
[ linux: ~ ]# cd /usr/local/ffmpeg-php/
[ linux: ffmpeg-php ]# phpize
[ linux: ffmpeg-php ]# ./configure && make && make install

- setup ffmpeg-php on php.ini
[ linux: ~ ]# vi /usr/local/lib/php.ini
; add this line:
extension="ffmpeg.so"

- restart httpd
[ linux: ~ ]# /usr/local/apache2/bin/apachectl stop
[ linux: ~ ]# /usr/local/apache2/bin/apachectl start

:: links
+ googlelinux
+ ffmpeg-php