资源预览内容
第1页 / 共11页
第2页 / 共11页
第3页 / 共11页
第4页 / 共11页
第5页 / 共11页
第6页 / 共11页
第7页 / 共11页
第8页 / 共11页
第9页 / 共11页
第10页 / 共11页
亲,该文档总共11页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
通过svn下载:从 http:/subversion.tigris.org下载SVN客户端程序。 先装subversion,确保已经安装了apr和apr-util,在apache.org网站能下到wget http:/subversion.tigris.org/downloads/subversion-1.3.2.tar.gztar zvxf subversion-1.3.2.tar.gz cd subversion-1.3.2 ./configure -with-apr=/usr/local/apr-httpd -with-apr-util=/usr/local/apr-util-httpd/ make ; make install到此,我们就可以通过svn命令获取最新的ffmpeg了svn checkout svn:/svn.mplayerhq.hu/ffmpeg/trunk ffmpeg你会发现在你所在的目录,自动出现一个ffmpeg的目录,就是你下载的源代码。我们还不能这么快编译ffmpeg,应该如果要让ffmpeg支持更多格式的转换,还需做一些前期工作2.支持mp3,linux当然是lame,下载解压cd lame-3.96.1 ./configure -enable-shared -prefix=/usr make ; make install这里推荐尽量装在/usr下,默认是装在/usr/local下。这样ffmpeg编译都能顺利的找到库文件3.支持Ogg Vorbis:as4自带相应的rpm包,你可以安装一下如下rpm包libvorbis, libvorbis-devel,libogg, libogg-devel4.支持xvid x264,现在最流行的两种高质量的压缩格式xvid的编译安装wget http:/downloads.xvid.org/downloads/xvidcore-1.1.0.tar.gz tar zvxf xvidcore-1.1.0.tar.gz ./configure -prefix=/usr make ; make installx264的获取同样是采用svn方式svn co svn:/svn.videolan.org/x264/trunk x264 cd x264 ./configure -prefix=/usr -enable-shared make ; make install5.AC3和dts编码的支持as4系统似乎已经支持ac3编码,编译的时候只要加-enable-a52 -enable-gpl参数就行libdts编译参数./configure -prefix=/usr make ; make install6.mpg4 aac格式支持,由于服务器还针对手机用户服务,所以,类似aac,mpg4铃声格式的支持,我们也得做。这里我们安装faad2和faac就行下载请到http:/www.audiocoding.com/modules/mydownloads/FAAD2的编译cd faad2 autoreconf -vif ./configure -prefix=/usr -with-mp4v2 -enable-shared make ; make installfaac的编译cd faac chmod +x bootstrap ./bootstrap ./configure -prefix=/usr -with-mp4v2 -enable-shared make ; make install7.支持3gp格式,这也是现在好多手机支持的格式,因为手机用户是我们的主要用户,所以也得支持编译编译的时候加上-enable-amr_nb -enable-amr_wb参数就行,根据编译系统的提示,所以我们得下载一些编译3gp所需得文件。wget http:/www.3gpp.org/ftp/Specs/ar . 6.204/26204-510.zip解压以后把里面的文件都拷贝到libavcodec/amrwb_floatwget http:/www.3gpp.org/ftp/Specs/ar . 6.104/26104-510.zip解压以后把里面的文件都拷贝到libavcodec/amr_float好了,基本ffmpeg支持的格式,我们基本都做好前期准备了,下面是ffmpeg的编译./configure -prefix=/usr -enable-gpl -enable-shared -enable-mp3lame -enable-amr_nb -enable-amr_wb -enable-amr_if2 -enable-libogg -enable-vorbis -enable-xvid -enable-a52 -enable-a52bin -enable-faadbin -enable-dts -enable-pp -enable-faad -enable-faac -enable-x264 -enable-pthreads -disable-ffserver -disable-ffplay make ; make install具体查看./configure -help补充1:关于3gp的编译,如果大家要编译-enable-amr_nb-fixed,那就不能跟-enable-amr_nb同时编译,我不大清楚这两者到底有什么区别,似乎fixed是修正版,管他呢,编译的方法:wget http:/www.3gpp.org/ftp/Specs/ar . 6.073/26073-510.zip解压以后把里面的文件都拷贝到libavcodec/amr目录下修改libavcodec/amr/makefile 找到CFLAGS = -Wall -pedantic-errors -I. $(CFLAGS_$(MODE) -D$(VAD) 换成CFLAGS = -Wall -I. $(CFLAGS_$(MODE) -D$(VAD) -DMMS_IO整体编译参数就是 ./configure -prefix=/usr -enable-gpl -enable-shared -enable-mp3lame -enable-amr_nb-fixed -enable-amr_wb -enable-amr_if2 -enable-libogg -enable-vorbis -enable-xvid -enable-a52 -enable-a52bin -enable-dts -enable-pp -enable-faad -enable-faadbin -enable-faac -enable-x264 -enable-pthreads -disable-ffserver -disable-ffplay make make install补充2:有朋友说在当在cpu是x86的情况下,不能编译过去,我这里没发生过这情况,如果你真编译不过去,可以试着加上cpu=cpu补充3:对于rm、wmv可以用wmplayer提供的Mencoder来处理下面的是运行./configure相关配置打印出的信息:install prefix /usr/localsource path /mnt/192.168.81.152/ffmpeg_related/source_svnC compiler gcc.align is power-of-two noARCH x86 (generic)big-endian noyasm noMMX enabled yesMMX2 enabled yes3DNow! enabled yes3DNow! extended enabled yesSSE enabled yesSSSE3 enabled yesCMOV enabled yesCMOV is fast yesEBX available yesEBP available yes10 operands supported yesgprof enabled nodebug symbols yesstrip symbols yesoptimizations yesstatic yesshared yespostprocessing support nosoftware scaler enabled nonew filter support nofilters using lavformat novideo hooking yesImlib2 support noFreeType support yesnetwork support yesIPv6 support yesthreading support noSDL support yesSun medialib support noAVISynth enabled nolibamr-nb support nolibamr-wb support nolibdc1394 support nolibdirac enabled nolibfaac enabled nolibfaad enabled nolibfaad dlopened nolibgsm enabled nolibmp3lame enabled nolibnut enabled nolibopenjpeg enabled nolibschroedinger enabled nolibspeex enabled nolibtheora enabled nolibvorbis enabled noli
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号