MP4BOX——用于给3GP、MP4加hint,合并视频等
yum -y install freeglut
yum -y install freeglut-devel(freeglut没安装成功也可以?)
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