Wednesday, August 4, 2010

How to install Mp4Box on 64 bit linux machine ?

What is Mp4Box ?

MP4Box is a MP4 multiplexer. It 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.

What is zlib ?

zlib is a software library used for data compression. zlib was written by Jean-Loup Gailly and Mark Adler and is an abstraction of the DEFLATE compression algorithm used in their gzip file compression program.


Download MP4Box and Libraries

#cd /root
# wget

Installing Zlib

#yast install zlib*
#yum install zlib*

Extract and Compiling MP4Box

#tar -zxf gpac-0.4.5.tar.gz
#tar -zxf gpac_extra_libs-0.4.5.tar.gz
#cd gpac_extra_libs
#cp -r * ../gpac/extra_lib
#cd ../gpac
#chmod +x configure
#make lib
#make apps
#make install lib
#make install
#cp bin/gcc/ /usr/lib

If everything goes smoothly.
You can verify it with the command below :

#/usr/bin/MP4Box -version

Try :)

Note : I got following error message during executing ./configure

./configure: line 1286: /tmp/gpac-conf-14648-9347-16837.o: Permission denied

I had setup another tmp directory for this installation. Just do following :

TEMP_DIR=/home/tmp or any other tmp directory.

O/P :
root@starslite [~/gpac]# which MP4Box
root@starslite [~/gpac]# /usr/local/bin/MP4Box -version
MP4Box - GPAC version 0.4.5 (build 33)
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X
root@starslite [~/gpac]#


  1. This comment has been removed by the author.

  2. Fantastic! Thanks.
    BTW you guys should know that setting the TMP directory will be done by
    vi configure
    press o to edit the line
    edit the file and add
    this should be on the 7th line or so just before the "fi" line
    press escape and type :wq
    i.e. write and quit
    You're done!

  3. Damilola, thanks for your feedback :) Yes that can be done. We usually do this using command prompt like :

    [root@kmaiti ~]# TEMP_DIR=/home/tmp
    [root@kmaiti ~]#

    The setting that I did is for temporary purpose and it'll be vanished once I reboot the machine. Some OS doesn't allow to do the same and throws the error messages. You'll not get the error on all the machine.

    Thanks and carry on :)