Home Technical Articles FFMPEG installation Latest

FFMPEG installation Latest

by SupportPRO Admin

This is the latest steps for installing ffmpeg
wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg5/ffmpeginstaller.5.1.tar.gz
tar zxf ffmpeginstaller.5.1.tar.gz
cd ffmpeginstaller.5.1
./install.sh

###Error 1: installation of mplayer failed..cause cannot stat the conf file.
run the steps below
cd /usr/local/cpffmpeg
mkdir -p etc/mplayer
cd /usr/src/ffmpegscript/mplayer

cp -f etc/codecs.conf /usr/local/cpffmpeg/etc/mplayer/codecs.conf
ln -sf /usr/local/cpffmpeg/bin/mplayer /usr/local/bin/mplayer
ln -sf /usr/local/cpffmpeg/bin/mplayer /usr/bin/mplayer
ln -sf /usr/local/cpffmpeg/bin/mencoder /usr/bin/mencoder
ln -sf /usr/local/cpffmpeg/bin/mencoder /usr/local/bin/mencoder
cd back to ffmpeg installer directory
####
./ffmpeg.sh
you will encounter the error below
cp: cannot stat `tools/qt-faststart’: No such file or directory
./ffmpeg.sh: line 55: /usr/bin/ffmpeg: No such file or directory
on scrolling to the top you can see the exact cause
“Checked out revision 23591.
ERROR: libx264 version must be >= 0.98.”
so we need to remove the current x264 and install the latest
cd /usr/src/ffmpegscript/
git clone git://git.videolan.org/x264.git
cd x264
export cpu=`cat “/proc/cpuinfo” | grep “processor”|wc -l`
export TMPDIR=$HOME/tmp
ldconfig
./configure –prefix=/usr/local/cpffmpeg –enable-shared –disable-asm
make -j$cpu
make install
cd back to ffmpeg installer directory
./ffmpeg.sh
ffmpeg should be installed with this command
## REBUILD MPLAYER ##
./mplayer.sh
./mp4box
###FFMpEG PHP INSTALLATION
cd /usr/src/ffmpeginstaller
wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2?use_mirror=space
tar jxf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0
export cpu=`cat “/proc/cpuinfo” | grep “processor”|wc -l`
export TMPDIR=$HOME/tmp
export LD_LIBRARY_PATH=/usr/local/cpffmpeg/lib:/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/local/cpffmpeg/lib:/usr/lib:/usr/local/lib:$LIBRARY_PATH
export CPATH=/usr/local/cpffmpeg/include:/usr/include/:usr/local/include:$CPATH
ldconfig
phpize
./configure –enable-shared –with-ffmpeg=/usr/local/cpffmpeg
make -j$cpu
make install

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

Leave a Comment

CONTACT US

Sales and Support

Phone: 1-(847) 607-6123
Fax: 1-(847)-620-0626
Sales: sales@supportpro.com
Support: clients@supportpro.com
Skype ID: sales_supportpro

Postal Address

1020 Milwaukee Ave, #245,
Deerfield, IL-60015
USA

©2022  SupportPRO.com. All Rights Reserved