How to install MP4Box on CentOS

MP4Box is a MP4 multiplexer. So let see How TO Install MP4Box on CentOS.  MP4Box can import MPEG-4 video, DivX, XviD, 3ivx, h264 etc, audio streams and subtitles into the .mp4 container. The end result is a compliant MP4 stream. It can also extract streams from a .mp4. MP4Box is a command line tool, but can be used with graphical user interfaces such as YAMB or my MP4box GUI.

1) Install some dependencies packages with yum command

 yum -y install freetype-devel SDL-devel freeglut-devel

2) Download and install gpac

cd /usr/local/src/
wget http://mirror.ffmpeginstaller.com/source/gpac/gpac-0.5.0.tar.gz
wget http://mirror.ffmpeginstaller.com/source/gpac/gpac_extra_libs-0.5.0.zip

3) Extract gpac tar files

tar -zxvf gpac-0.5.0.tar.gz
unzip gpac_extra_libs-0.5.0.zip

4) Install gpac

cd extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod 755 configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib 
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig

And it’s done.

[root@server ~]# which MP4Box
/usr/local/bin/MP4Box
[root@server ~]# /usr/local/bin/MP4Box -version
MP4Box - GPAC version 0.5.0-rev4065
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
 (c) ENST 2005-200X
GPAC Configuration:
Features: GPAC_HAS_SSL GPAC_HAS_JPEG GPAC_HAS_PNG