暑假实习要用到MP4Box这个东西,网上找了很多别人的教程,感觉都不怎么好,自己在官网上看到的编译过程

1.获取gpac的源代码

sudo apt-get install subversion
svn co svn://svn.code.sf.net/p/gpac/code/trunk/gpac gpac

2.安装gpac依赖的一些库比如zlib这些

sudo apt-get install make pkg-config g++ zlib1g-dev firefox-dev libfreetype6-dev libjpeg62-dev libpng12-dev libopenjpeg-dev libmad0-dev libfaad-dev libogg-dev libvorbis-dev libtheora-dev liba52-0.7.4-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libxv-dev x11proto-video-dev libgl1-mesa-dev x11proto-gl-dev linux-sound-base libxvidcore-dev libssl-dev libjack-dev libasound2-dev libpulse-dev libsdl1.2-dev dvb-apps libavcodec-extra-53 libavdevice-dev libmozjs185-dev

3.编译gpac

cd gpac
./configure
make
sudo make install

4.检测

如果安装成功的话 MP4Box -version

会出现如下:

long@ubuntu:~$ MP4Box -version
MP4Box - GPAC version 0.5.1-DEV-rev4656
GPAC Copyright (c) Telecom ParisTech 2000-2012
GPAC Configuration:
Features: GPAC_HAS_SSL GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG

Logo

更多推荐