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.
Source: http://sourceforge.net/projects/gpac/files/
Download MP4Box and Libraries
#cd /root
#wget http://nchc.dl.sourceforge.net/project/gpac/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz
# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz
Installing Zlib
#yast install zlib*
or
#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
#./configure
#make lib
#make apps
#make install lib
#make install
#cp bin/gcc/libgpac.so /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
/usr/local/bin/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]#
====
This comment has been removed by the author.
ReplyDeleteFantastic! Thanks.
ReplyDeleteBTW 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
TMPDIR1=/usr/local/src
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!
Damilola, thanks for your feedback :) Yes that can be done. We usually do this using command prompt like :
ReplyDelete-----
[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 :)