Advertisement
keith_shannon

Untitled

Jun 4th, 2014
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.46 KB | None | 0 0
  1. 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
  2.  
  3. Before we can install ffmpeg we need to set up pre-requisites. They include: yasm, libx264, libfdk_aac, libmp3lame, libopus,libogg, libvorbis, & libvpx.
  4.  
  5. Let's see how many we can find with pre-built RPM's first for anything not in the yum repository.
  6.  
  7. yasm can be found n rpmfind for the same latest version:
  8. http://mirror.pnl.gov/epel/6/x86_64/yasm-1.2.0-1.el6.x86_64.rpm
  9.  
  10. 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
  11.  
  12. Let's start with yasm. Source can be downloaded at: yasm.tortall.net/Download.html
  13.  
  14. ffmpeg$ mkdir -p ~/src/prereqs
  15. ffmpeg$ cd src && mkdir tarballs compiled
  16. ffmpeg$ cd prereqs
  17. ffmpeg$ wget http://mirror.pnl.gov/epel/6/x86_64/yasm-1.2.0-1.el6.x86_64.rpm
  18. ffmpeg$ sudo yum -y localinstall yasm-1.2.0-1.el6.x86_64.rpm
  19.  
  20. Now libx264
  21.  
  22. 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
  23. ffmpeg$ sudo yum -y localinstall x264-libs-0.120-5.20120303.el6.x86_64.rpm
  24.  
  25. Now libfdk_aac
  26.  
  27. The RPM is actually just named fdk_aac
  28.  
  29. ffmpeg$ wget http://yum.aclub.net/pub/linux/centos/6/umask/x86_64/fdk-aac-0.1.3-1.el6.x86_64.rpm
  30. ffmpeg$ sudo yum localinstall fdk-aac-0.1.3-1.el6.x86_64.rpm
  31.  
  32. Now onto libmp3lame
  33.  
  34. 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
  35. ffmpeg$ sudo yum -y localinstall lame-3.99.4-1.el6.rf.x86_64.rpm
  36.  
  37. Libopus is next...
  38.  
  39. ffmpeg$ wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/opus-1.1-1.el6.x86_64.rpm
  40. ffmpeg$ sudo yum -y localinstall opus-1.1-1.el6.x86_64.rpm
  41.  
  42. What's next?? Libogg...
  43.  
  44. libogg can actually be installed via yum... as can the last two packages libvorbis & libvpx
  45.  
  46. ffmpeg$ sudo yum -y install libogg-devel libvorbis-devel libvpx-devel
  47.  
  48. Speex was also requested for this build so
  49.  
  50. ffmpeg$ sudo yum -y install speex-devel
  51.  
  52. Now, go back to the src directory & pull ffmpeg from git.
  53.  
  54. ffmpeg$ cd ~
  55. ffmpeg$ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
  56. ffmpeg$ cd ffmpeg
  57. 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