Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yum -y install vim git rpm rpm-devel rpm-libs rpm-build redhat-rpm-config rpmdevtools autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
- Before we can install ffmpeg we need to set up pre-requisites. They include: yasm, libx264, libfdk_aac, libmp3lame, libopus,libogg, libvorbis, & libvpx.
- Let's see how many we can find with pre-built RPM's first for anything not in the yum repository.
- yasm can be found n rpmfind for the same latest version:
- http://mirror.pnl.gov/epel/6/x86_64/yasm-1.2.0-1.el6.x86_64.rpm
- NOTE: i386 version can be found by simply changing the x86_64 in the url to i386. To browse the rpms just go to parent directory or: http://mirror.pnl.gov/epel/6
- Let's start with yasm. Source can be downloaded at: yasm.tortall.net/Download.html
- ffmpeg$ mkdir -p ~/src/prereqs
- ffmpeg$ cd src && mkdir tarballs compiled
- ffmpeg$ cd prereqs
- ffmpeg$ wget http://mirror.pnl.gov/epel/6/x86_64/yasm-1.2.0-1.el6.x86_64.rpm
- ffmpeg$ sudo yum -y localinstall yasm-1.2.0-1.el6.x86_64.rpm
- Now libx264
- ffmpeg$ wget ftp://mirror.switch.ch/pool/4/mirror/rpmfusion/free/el/updates/6/x86_64/x264-libs-0.120-5.20120303.el6.x86_64.rpm
- ffmpeg$ sudo yum -y localinstall x264-libs-0.120-5.20120303.el6.x86_64.rpm
- Now libfdk_aac
- The RPM is actually just named fdk_aac
- ffmpeg$ wget http://yum.aclub.net/pub/linux/centos/6/umask/x86_64/fdk-aac-0.1.3-1.el6.x86_64.rpm
- ffmpeg$ sudo yum localinstall fdk-aac-0.1.3-1.el6.x86_64.rpm
- Now onto libmp3lame
- ffmpeg$ wget ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el6/en/x86_64/dag/RPMS/lame-3.99.4-1.el6.rf.x86_64.rpm
- ffmpeg$ sudo yum -y localinstall lame-3.99.4-1.el6.rf.x86_64.rpm
- Libopus is next...
- ffmpeg$ wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/opus-1.1-1.el6.x86_64.rpm
- ffmpeg$ sudo yum -y localinstall opus-1.1-1.el6.x86_64.rpm
- What's next?? Libogg...
- libogg can actually be installed via yum... as can the last two packages libvorbis & libvpx
- ffmpeg$ sudo yum -y install libogg-devel libvorbis-devel libvpx-devel
- Speex was also requested for this build so
- ffmpeg$ sudo yum -y install speex-devel
- Now, go back to the src directory & pull ffmpeg from git.
- ffmpeg$ cd ~
- ffmpeg$ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
- ffmpeg$ cd ffmpeg
- ffmpeg$ ./configure --extra-libs=/usr/lib/libfdk-aac.so.0 --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libspeex --enable-libx264
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement