Tuesday, January 11, 2011

How to install mp4box on centos

:: what is
please take a look this.

:: installing dependency

[ me: ~ ]# yum install zlib*

:: installing mp4box on linux
+[ download mp4box ]
[ me: ~ ]# wget http://sourceforge.net/projects/gpac/files/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz/download
[ me: ~ ]# wget http://sourceforge.net/projects/gpac/files/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz/download
+[ extract and installing mp4box ]
[ me: ~ ]# tar -xzf gpac-0.4.5.tar.gz 
[ me: ~ ]# tar -xzf gpac_extra_libs-0.4.5.tar.gz 
[ me: ~ ]# cd gpac_extra_libs
[ me: gpac_extra_libs ]# cp -rf * ../gpac/extra_lib/
[ me: gpac_extra_libs ]# cd ../gpac
[ me: gpac ]# chmod +x configure 
[ me: gpac ]# ./configure 
[ me: gpac ]# make lib
[ me: gpac ]# make apps
[ me: gpac ]# make install lib
[ me: gpac ]# make install
[ me: gpac ]# cp bin/gcc/libgpac.so /usr/lib/

:: testing mp4box on the web
[ me: htdocs ]$ mkdir video
[ me: htdocs ]$ cd video/
[ me: video ]$ MP4Box -add video.mpg video.mp4
MPEG-1 Video import - Resolution 352 x 240 @ 29.9700 FPS
MPEG-1 Audio import - sample rate 44100 - 2 channels           
Saving to video.mp4: 0.500 secs Interleaving  

2 comments:

  1. ah.. why not yum install gpac?

    http://rahul-ghose.blogspot.com/2017/05/install-mp4-box-on-centos.html

    ReplyDelete