转载  Install MP4Box on CentOS(一键安装,亲测可用)

分类:运维 2019-02-08T12:00:25    22人阅读   

转载于:https://gist.github.com/helpsquad/48ee2baf2eb5ee655e8755618b4c8c75

保存代码为mp4_install_script.sh,上传服务器,使用:sh mp4_install_script.sh 运行(下载有点卡)

安装好后使用 :MP4Box -hint tt3.mp4 是文件可以流式播放

#script used on serversquad servers -> www.serversquad.eu

yum -y install freetype-devel SDL-devel freeglut-devel ugcc gcc-c++ git libtool make zlib-devel

cd /usr/local/src/
wget http://serversquad.eu/source/gpac/gpac-0.5.0.tar.gz
wget http://serversquad.eu/source/gpac/gpac_extra_libs-0.5.0.zip
tar -zxvf gpac-0.5.0.tar.gz
unzip gpac_extra_libs-0.5.0.zip
cd extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod 755 configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib 
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig


分享到: