MP4BOX——用於給3GP、MP4加hint
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
ldconfig
MP4Box -version
如果出現MP4Box: error while loading shared libraries: /usr/local/lib/libgpac.so: cannot restore segment prot after reloc: Permission denied,則需要修改/etc/sysconfig/selinux文件把SELINUX=enforcing改成SELINUX=disabled
vi /etc/sysconfig/selinux
#SELINUX=enforcing
SELINUX=disabled
保存退出後執行
chcon -t texrel_shlib_t /usr/local/lib/libgpac.so
再執行應該就沒問題了
MP4Box -version
MENCODER——用於視頻轉碼和封裝
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer
./configure
make
make install