Purpose of this document is provide detail steps to install and set up FFMPEG for using upload feature of phpFox Videos app on server Centos 6/7.

Install FFMPEG

Please follow below steps to install FFMPEG on your Centos server:

Install Library Gcc

Run the command:

yum install gcc gcc-c++ git autoconf automake libtool wget -y

Install Yasm x264

yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
yum install yasm x264 x264-devel -y

Install AAC

Run all below commands, one by one:

mkdir temp
cd temp
git clone https://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
./autogen.sh
./configure --enable-shared --enable-static
make
make install
cd ..

Install latest version of FFMPEG from https://ffmpeg.org

For example, will install version 3.3.1.

wget https://ffmpeg.org/releases/ffmpeg-3.3.1.tar.gz
tar -zxvf ffmpeg-3.3.1.tar.gz
cd ffmpeg-3.3.1
yum install ffmpeg ffmpeg-devel -y
export LD_LIBRARY_PATH=/usr/local/lib/
echo /usr/local/lib > /etc/ld.so.conf.d/custom-libs.conf
ldconfig

Configure Video FFMPEG path for the app

which ffmpeg