GPAC&MP4BOX编译过程

//安装ZLIB

axel  http://www.zlib.net/zlib-1.2.3.tar.gz

tar -xvzf zlib-1.2.3.tar.gz

cd zlib-1.2.3.tar.gz

./configure

make

sudo make install

 

//下载0.4.5版本的GPAC

axel  http://nchc.dl.sourceforge.net/sourceforge/gpac/gpac-0.4.5.tar.gz

axel  http://internap.dl.sourceforge.net/sourceforge/gpac/gpac_extra_libs-0.4.5.tar.gz

tar -zxvf gpac-0.4.5.tar.gz

tar -zxvf 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

sudo make install-lib

sudo make install

手工安装最新版MP4BOX的过程,因为只有0.4.5版本的支持最新的流媒体HINT~~~
 
ZLIB是一定要的,所以要先编译ZLIB。

AXEL是多线程下载,可用WGET替代,gpac_extra_libs人家官方网站上有下载,就是第二个包。

其余的就不多解释了,这是在UBUNTU 9.04下完成编译过程后记录的命令行。

起码我编译得颇为顺利~~
---------------------------------------------------------------------------------------------------------------------------

yum -y install freeglut
yum -y install freeglut-devel
wget http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz
wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.4.5.tar.gz
tar zxvf gpac-0.4.5.tar.gz
tar zxvf gpac_extra_libs-0.4.5.tar.gz

cd gpac

cp -r ../gpac_extra_libs/* extra_lib/
chmod +x configure
./configure
make lib
make apps
make install
cp bin/gcc/libgpac.so /usr/lib

再安装完MP4Box之后同样要执行一次ldconfig命令,然后执行MP4Box -version命令后可以看到如下内容

# MP4Box -version
MP4Box - GPAC version 0.4.5 (build 33)
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X

这样一来所有的工作就都做完了,剩下的就是按照自己的需要写ffmpeg的转码脚本了

问题解决:

在安装MP4Box的时候可能会出现下面的问题

/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL/usr/bin/ld: cannot find -lGLcollect2: ld returned 1 exit statusmake[1]: *** [libgpac.so] Error 1make[1]: Leaving directory `/root/gpac/src’make: *** [lib] Error 2

原因是mesa-libGL-devel这个包可能不完整,直接使用yum -y install mesa-libGL-devel命令把这个包安装一下,然后在make的时候就正常了。


你可能感兴趣的:(多媒体相关)