来一发centos6.5下编译装置FFmpeg
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!以下装置步调基础来自官网,做个条记以便利本人今后检察http://trac.ffmpeg.org/wiki/CompilationGuide
1.装置依附包
viewplaincopyprint?
[*]<spanstyle="font-size:14px;">yuminstallautoconfautomakegccgcc-c++gitlibtoolmakenasmpkgconfigzlib-devel</span>
<spanstyle="font-size:14px;">yuminstallautoconfautomakegccgcc-c++gitlibtoolmakenasmpkgconfigzlib-devel</span>
2.新建文件夹寄存源码
mkdir~/ffmpeg_sources
3.编译&装置
Yasm
Yasmisanassemblerusedbyx264andFFmpeg.
viewplaincopyprint?
[*]cd~/ffmpeg_sources
[*]curl-Ohttp://www.ckuyun.com/projects/yasm/releases/yasm-1.2.0.tar.gz
[*]tarxzvfyasm-1.2.0.tar.gz
[*]cdyasm-1.2.0
[*]./configure--prefix="$HOME/ffmpeg_build"--bindir="$HOME/bin"
[*]make
[*]makeinstall
[*]makedistclean
[*]export"PATH=$PATH:$HOME/bin"
cd~/ffmpeg_sourcescurl-Ohttp://www.ckuyun.com/projects/yasm/releases/yasm-1.2.0.tar.gztarxzvfyasm-1.2.0.tar.gzcdyasm-1.2.0./configure--prefix="$HOME/ffmpeg_build"--bindir="$HOME/bin"makemakeinstallmakedistcleanexport"PATH=$PATH:$HOME/bin"
libx264
H.264videoencoder.
viewplaincopyprint?
[*]cd~/ffmpeg_sources
[*]gitclone--depth1git://git.videolan.org/x264
[*]cdx264
[*]./configure--prefix="$HOME/ffmpeg_build"--bindir="$HOME/bin"--enable-static
[*]make
[*]makeinstall
[*]makedistclean
cd~/ffmpeg_sourcesgitclone--depth1git://git.videolan.org/x264cdx264./configure--prefix="$HOME/ffmpeg_build"--bindir="$HOME/bin"--enable-staticmakemakeinstallmakedistclean
libfdk_aac
AACaudioencoder.
viewplaincopyprint?
[*]cd~/ffmpeg_sources
[*]gitclone--depth1git://git.code.sf.net/p/opencore-amr/fdk-aac
[*]cdfdk-aac
[*]autoreconf-fiv
[*]./configure--prefix="$HOME/ffmpeg_build"--disable-shared
[*]make
[*]makeinstall
[*]makedistclean
cd~/ffmpeg_sourcesgitclone--depth1git://git.code.sf.net/p/opencore-amr/fdk-aaccdfdk-aacautoreconf-fiv./configure--prefix="$HOME/ffmpeg_build"--disable-sharedmakemakeinstallmakedistclean
libmp3lame
Opusaudiodecoderandencoder.
viewplaincopyprint?
[*]cd~/ffmpeg_sources
[*]curl-Ohttp://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
[*]tarxzvfopus-1.1.tar.gz
[*]cdopus-1.1
[*]./configure--prefix="$HOME/ffmpeg_build"--disable-shared
[*]make
[*]makeinstall
[*]makedistclean
cd~/ffmpeg_sourcescurl-Ohttp://downloads.xiph.org/releases/opus/opus-1.1.tar.gztarxzvfopus-1.1.tar.gzcdopus-1.1./configure--prefix="$HOME/ffmpeg_build"--disable-sharedmakemakeinstallmakedistclean
libogg
Oggbitstreamlibrary.Requiredbylibtheoraandlibvorbis.
viewplaincopyprint?
[*]cd~/ffmpeg_sources
[*]curl-Ohttp://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz
[*]tarxzvflibogg-1.3.1.tar.gz
[*]cdlibogg-1.3.1
[*]./configure--prefix="$HOME/ffmpeg_build"--disable-shared
[*]make
[*]makeinstall
[*]makedistclean
cd~/ffmpeg_sourcescurl-Ohttp://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gztarxzvflibogg-1.3.1.tar.gzcdlibogg-1.3.1./configure--prefix="$HOME/ffmpeg_build"--disable-sharedmakemakeinstallmakedistclean
libvorbis
Vorbisaudioencoder.Requireslibogg.
viewplaincopyprint?
[*]cd~/ffmpeg_sources
[*]curl-Ohttp://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
[*]tarxzvflibvorbis-1.3.4.tar.gz
[*]cdlibvorbis-1.3.4
[*]./configure--prefix="$HOME/ffmpeg_build"--with-ogg="$HOME/ffmpeg_build"--disable-shared
[*]make
[*]makeinstall
[*]makedistclean
cd~/ffmpeg_sourcescurl-Ohttp://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gztarxzvflibvorbis-1.3.4.tar.gzcdlibvorbis-1.3.4./configure--prefix="$HOME/ffmpeg_build"--with-ogg="$HOME/ffmpeg_build"--disable-sharedmakemakeinstallmakedistclean
libvpx
VP8/VP9videoencoder.
viewplaincopyprint?
[*]cd~/ffmpeg_sources
[*]gitclone--depth1https://chromium.谷歌source.com/webm/libvpx.git
[*]cdlibvpx
[*]./configure--prefix="$HOME/ffmpeg_build"--disable-examples
[*]make
[*]makeinstall
[*]makeclean
cd~/ffmpeg_sourcesgitclone--depth1https://chromium.谷歌source.com/webm/libvpx.gitcdlibvpx./configure--prefix="$HOME/ffmpeg_build"--disable-examplesmakemakeinstallmakeclean注重:因为国际比来没法会见Google以是libvpx没法gitclone,此时能够往别处下载:http://yunpan.cn/QhNk5tDqQV3MM会见暗码45f6
FFmpeg
cd~/ffmpeg_sourcesgitclone--depth1git://source.ffmpeg.org/ffmpegcdffmpegPKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"exportPKG_CONFIG_PATH./configure--prefix="$HOME/ffmpeg_build"--extra-cflags="-I$HOME/ffmpeg_build/include"--extra-ldflags="-L$HOME/ffmpeg_build/lib"--bindir="$HOME/bin"--extra-libs=-ldl--enable-gpl--enable-nonfree--enable-libfdk_aac--enable-libmp3lame--enable-libopus--enable-libvorbis--enable-libvpx--enable-libx264makemakeinstallmakedistcleanhash-r.~/.bash_profile
装置停止检察版本:
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!
来一发centos6.5下编译装置FFmpeg
其实当你安装了一个完整的Linux系统后其中已经包含了一个强大的帮助,只是可能你还没有发现和使用它们的技巧。 这种补充有助于他人在邮件列表/新闻组/论坛中搜索对你有过帮助的完整解决方案,这可能对他们也很有用。 在学习的过程中,我们用的是VM虚拟机,开始时真的不真的该怎么去做,特别是我的是命令窗口界面,别人的是图形界面,我都不知道怎么调过来。 得到到草率的回答或者根本得不到任何Linux答案。越表现出在寻求帮助前为解决问题付出的努力,你越能得到实质性的帮助。 就这样,我们一边上OS理论课,一边上这个实验,这样挺互补的,老师讲课,一步一步地布置任务 选择交流平台,如QQ群,网站论坛等。 一定要学好命令,shell是命令语言,命令解释程序及程序设计语言的统称,shell也负责用户和操作系统之间的沟通。 Linux的成功就在于用最少的资源最短的时间实现了所有功能,这也是符合人类进化的,相信以后节能问题会日益突出。
页:
[1]