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:
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
yum install gcc gcc-c++ git autoconf automake libtool wget -y
|
Install Yasm x264
- On Centos 6, run the command:
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
|
- On Centos 7, run the commands:
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
|
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
yum install yasm x264 x264-devel -y
|
Install AAC
Run all below commands, one by one:
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
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.
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
wget https://ffmpeg.org/releases/ffmpeg-3.3.1.tar.gz
|
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
tar -zxvf ffmpeg-3.3.1.tar.gz
|
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
cd ffmpeg-3.3.1
yum install ffmpeg ffmpeg-devel -y
|
- Finish with some configuration for the library
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
export LD_LIBRARY_PATH=/usr/local/lib/
echo /usr/local/lib > /etc/ld.so.conf.d/custom-libs.conf
ldconfig
|
- Run below command to get FFMPEG path
Code Block |
---|
| actionscript3 |
---|
| actionscript3 |
---|
|
which ffmpeg
|
- Copy the FFMPEG path then add it to
Path to FFMPEG
setting in Admin > Apps > Videos > Settings - Check FFMPEG version and supported video formats in Admin > Apps > Video > FFMPEG Video Utilities