Skip to main content

:: 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

Comments

Popular posts from this blog

:: wordpress theme reset to default

:: whatis wordpress WordPress is an open source CMS, often used as a blog publishing application powered by PHP and MySQL. It has many features including a plugin architecture and a templating system. -[ http://en.wikipedia.org/wiki/Wordpress ]- :: reset themes wordpress to default # with cli [ linux: ~ ]$ mysql -u user -p mysql> use dbwordpress; mysql> UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; mysql> UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; # share hosting / cpanel / phpmyadmin 0. login on cpanel / phpmyadmin 1. select db for wordpress 2. select SQL tabs and run this command: UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; 3. click GO 4. open your site, if you still get blank screen, you can login on admin page ...

:: install postfix, cyrus, courier, mysql, postfixadmin, squirrelmail on opensuse

:: what is please take a look this. :: install dependency + installing berkeleyDB + installing MySQL + installing Apache + installing PHP :: remove sendmail [ root:~ ]# rpm -e sendmail --nodeps :: build cyrus-sasl [ root: ~ ]# wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# tar -xzf cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# groupadd mail [ root: ~ ]# useradd -u 96 -d /usr/cyrus -g mail cyrus [ root: ~ ]# passwd cyrus [ root: ~ ]# cd cyrus-sasl-2.1.23/ [ root: cyrus-sasl-2.1.23 ]# export CPPFLAGS="-I/usr/local/mysql/include/mysql" [ root: cyrus-sasl-2.1.23 ]# ./configure --enable-anon --enable-plain --enable-login --enable-sql --disable-krb4 --disable-otp --disable-cram --disable-digest --with-mysql=/usr/local/mysql --with-plugindir=/usr/lib/sasl2 --without-pam --without-saslauthd --without-pwcheck [ root: cyrus-sasl-2.1.23 ]# make && make install :: installing Postfix + download postfix [ root:~ ]# wget http://mirror.postfix.jp/...

:: How to Recompile Nginx in Ubuntu

  Recompiling Nginx on Ubuntu can be a crucial task for those who need to customize their web server to meet specific requirements. Whether you need to add new modules, optimize performance, or apply patches, recompiling Nginx allows you to tailor the server to your needs. This guide will walk you through the process step-by-step, ensuring you have a smooth and successful recompilation.   Understanding the Need for Recompilation Why Recompile Nginx? Recompiling Nginx is often necessary when you need to add or remove modules that are not included in the default package. For instance, if you need to integrate a third-party module for enhanced security or performance, recompilation is the way to go. Additionally, recompiling allows you to apply custom patches or optimizations that can significantly improve your server's efficiency. Benefits of Custom Compilation Custom compiling Nginx offers several advantages. Firstly, it provides greater control over the server'...