Topic: [Solved ]Install ffmpeg-php 0.6.1 along with ffmpeginstaller 6.3 +
Here is a tutorial that will help you to install ffmpeg-php along with ffmpeginsaller version 6.3
1) Download the ffmpeg installer version 6.3 to your server and replace ffmpeg.sh with the following code.
---------------
#!/bin/bash
#FFMPEG installation script
# Copyright (C) 2007-2010 Sherin.co.in. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
RED='\033[01;31m'
RESET='\033[0m'
INSTALL_SDIR='/usr/src/ffmpegscript'
SOURCE_URL='http://mirror.ffmpeginstaller.com/source/ffmpeg'
INSTALL_DDIR='/usr/local/cpffmpeg'
export cpu=`cat "/proc/cpuinfo" | grep "processor"|wc -l`
export TMPDIR=$HOME/tmp
_package='ffmpeg.tar.gz'
clear
sleep 2
ffmpeg_source=$_package
ldconfig
echo -e $RED"Installation of $_package ....... started"$RESET
cd $INSTALL_SDIR
echo "Removing old source"
rm -vrf ffmpeg*
#wget $SOURCE_URL/$ffmpeg_source
#tar -xvzf $ffmpeg_source
# /usr/local/cpffmpeg/bin/svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
wget -c http://www.ffmpeg.org/releases/ffmpeg-0.5.3.tar.gz
tar -xzf ffmpeg-0.5.3.tar.gz
cd ffmpeg-0.5.3/
ldconfig
./configure --prefix=$INSTALL_DDIR --enable-shared --enable-nonfree \
--enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 \
--enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame \
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid \
--extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib \
--enable-version3 --enable-swscale
make -j$cpu
make tools/qt-faststart
make install
cp -vf tools/qt-faststart /usr/local/cpffmpeg/bin/
ln -sf /usr/local/cpffmpeg/bin/ffmpeg /usr/local/bin/ffmpeg
ln -sf /usr/local/cpffmpeg/bin/ffmpeg /usr/bin/ffmpeg
ln -sf /usr/local/cpffmpeg/bin/qt-faststart /usr/local/bin/qt-faststart
ln -sf /usr/local/cpffmpeg/bin/qt-faststart /usr/bin/qt-faststart
ldconfig
/usr/bin/ffmpeg -formats
echo -e $RED"Installation of $_package ....... Completed"$RESET
sleep 2
-----------------------
2) Install all the packages using ./install
3) Download ffmpeg-php as follows,
# svn co https://ffmpeg-php.svn.sourceforge.net/ … ffmpeg-php ffmpeg-php
4) Install ffmpeg-php as follows,
# cd ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.1/
# replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- *
# phpize
# ./configure --with-ffmpeg=/usr/local/cpffmpeg
# make
# make install
5) Sometimes you need to add extension = "ffmpeg.so" to the php.ini file and set the extension_dir path.
Hope this will help some one.