---
title: "mplayer+mp4box安装备忘"
author: "gqf2008"
date: "2009-10-20T15:08:59Z"
tags: [".net", "GCC", "SVN"]
slug: "mplayer-mp4box"
draft: false
lastmod: "2009-10-20T16:08:45Z"
id: 496405
url: "https://gqf2008.iteye.com/blog/496405"
---

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