ubuntu下搭建转码平台

sudo apt-get -y install bzr  build-essential automake libboost-dev libxml2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev ftgl-dev libglew-dev bison pkg-config autoconf autotools-dev libprotobuf-dev libtool
sudo apt-get -y install libtool




mkdir video_convert
cd video_convert
1. 安装faad2


wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz


tar xvfz faad2-2.6.1.tar.gz


cd faad2 


vi configure.in
add AC_PROG_CXX after  AC_PROG_CPP


./bootstrap 


./configure 


make 


sudo make install


cd ~/video_convert


2. 安装liba52


wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz


tar xvfz a52dec-0.7.4.tar.gz


cd a52dec-0.7.4 


./configure 


make 


sudo make install


cd ~/video_convert


3.安装libdirac


wget http://downloads.sourceforge.net/dirac/dirac-0.10.0.tar.gz


tar xvfz dirac-0.10.0.tar.gz


cd dirac-0.10.0 


./configure 


make 


sudo make install


cd ~/video_convert
4. 安装faac2


wget http://downloads.sourceforge.net/faac/faac-1.26.tar.gz


tar xvfz faac-1.26.tar.gz


cd faac 


./bootstrap 


./configure 


make 


make install


5. 安装libamrnb


wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2


tar xvfj amrnb-7.0.0.2.tar.bz2


cd amrnb-7.0.0.2 


./configure 


make 


make install


6 安装libamrwb


wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2


tar xvfj amrwb-7.0.0.3.tar.bz2


cd amrwb-7.0.0.3 


./configure 


make 


make install


7. 安装libMP3lame


wget http://downloads.sourceforge.net/lame/lame-3.97.tar.gz


tar xzf lame-3.97.tar.gz


cd lame-3.97 


./configure 


make 


make install


8. 安装libx264
apt-get install git


git clone git://git.videolan.org/x264.git x264


cd x264 


./configure --enable-pthread --enable-shared --disable-asm 


make 


make install


9. 安装libnut,该软件需要用svn获取源代码,svn可以直接用yum install svn来装。先下载:


apt-get install subversion


svn co svn://svn.mplayerhq.hu/nut/src/trunk libnut


下载后代码保存在新建立的libnut目录下,对于64位Linux需要修改配置文件:


# cd libnut


# vi config.mak


在最后一个CFLAGS下一行增加:


CFLAGS += -fPIC


然后编译安装:


# make 


# make install


10. 安装libogg


# wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz


# tar xvf libogg-1.1.3.tar.gz


# cd libogg-1.1.3 


# ./configure 


# make 


# make install


11. 安装libtheora (svn获取)


# svn co http://svn.xiph.org/trunk/theora theora


# cd theora 


# ./autogen.sh 


# ./configure 


# make 


# make install


12 安装libvorbis


# wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz


# tar xvfz libvorbis-1.2.0.tar.gz


# cd libvorbis-1.2.0 


# ./configure 


# make 


# make install


13. 安装libxvid


# wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz


# tar xvf xvidcore-1.2.1.tar.gz


# cd xvidcore-1.2.1/build/generic 


# ./bootstrap.sh 有问题


# ./configure --disable-assembly 


# make 


# make install




apt-get install  libopenjpeg-dev libopencore-amrwb-dev libopencore-amrnb-dev


14. 修改环境变量


# vi /etc/ld.so.conf


在文件末增加一行:


/usr/local/lib


然后生效之:


# ldconfig


15. 安装FFmpeg


 git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg


# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig CFLAGS="-fPIC -m64"
./configure --enable-version3  \
 --enable-shared\
 --enable-gpl\
 --enable-nonfree\
 --enable-postproc\
 --enable-avfilter \
 --enable-libdirac\
 --enable-libfaac\
 --enable-libmp3lame\
 --enable-libnut\
 --enable-libopenjpeg\
 --enable-libtheora\
 --enable-libvorbis\
 --enable-libvpx\
 --enable-libx264\
 --enable-libxvid\
 --enable-decoder=libx264\
 --enable-encoder=libx264\
 --disable-ffplay\
 --disable-ffserver\
 --enable-libopencore-amrnb\
 --enable-libopencore-amrwb\
 --enable-pthreads\
 --enable-libnut






# make


# make install




如果提示
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open sha                                                                                        red object file: No such file or directory


# vi /etc/ld.so.conf


在文件末增加一行:


/usr/local/lib


然后生效之:


# ldconfig


安装mediainfo
apt-get install doxygen
wget http://nchc.dl.sourceforge.net/project/mediainfo/source/mediainfo/0.7.54/mediainfo_0.7.54_AllInclusive.7z
解压
进入目录mediainfo_0.7.54_AllInclusive/zlib
./configure
make
make install


apt-get install doxygen
进入目录mediainfo_0.7.54_AllInclusive/Source/Doc
doxygen Doxyfile


进入目录mediainfo_0.7.54_AllInclusive/Project/GNU/Library
chmod +x autogen;
./autogen;
./configure  --enable-shared;
make clean;
make;
make install;
ls -lrt /usr/local/lib/libzen*;


cd ./Source/Doc/;
doxygen Doxyfile;
cd -;
cd ./Project/GNU/Library;
chmod +x autogen;
./autogen;
./configure --enable-shared;
make clean;
make;
make install;


cd ./Project/GNU/CLI;
chmod +x autogen;
./autogen;
./configure;
make;
make install;


安装ksh
apt-get -y install ksh


安装监控工具
apt-get install inotify-tools




/etc/php5/apache2/php.ini
post_max_size
upload_max_filesize
/etc/apache2/mods-enabled
mime.conf
AddType video/webm .webm

你可能感兴趣的:(SVN,File,git,video,ubuntu,平台)