Posted on

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/

3) Extract gpac tar files

tar -zxvf gpac-0.5.0.tar.gz

4) Install gpac

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

And it’s done.

[root@server ~]# which 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:

Or simple way:
sudo yum install gpac