Changes between Version 59 and Version 60 of CompilationGuide/Ubuntu
- Timestamp:
- May 14, 2013, 1:37:26 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/Ubuntu
v59 v60 3 3 [[PageOutline(2, Contents)]] 4 4 5 This guide for '''Ubuntu 13.04 Raring Ringtail''' will install the latest FFmpeg programs and enable several external encoding and decoding libraries (codecs). Separate guides are available for [[UbuntuCompilationGuideQuantal|Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Ubuntu 11.10 Oneiric Ocelot]], [[UbuntuCompilationGuideLucid|Ubuntu 10.04 Lucid Lynx]], and [[UbuntuCompilationGuideHardy|Ubuntu 8.04 Hardy Heron]]. 5 This guide for '''Ubuntu 13.04 Raring Ringtail''' will provide a local install of the latest FFmpeg tools and libraries including several external encoding and decoding libraries (codecs). This will not provide a system installation and therefore will not interfere with anything such as repository packages. 6 7 Separate guides are available for [[UbuntuCompilationGuideQuantal|Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Ubuntu 11.10 Oneiric Ocelot]], [[UbuntuCompilationGuideLucid|Ubuntu 10.04 Lucid Lynx]], and [[UbuntuCompilationGuideHardy|Ubuntu 8.04 Hardy Heron]]. 6 8 7 9 '''Note:''' Copy and paste the whole code box for each step. … … 9 11 == Preparation == 10 12 11 Remove any existing packages:13 Get the dependencies ('''Ubuntu Desktop'''): 12 14 {{{ 13 sudo apt-get remove ffmpeg x264 libav-tools libx264-dev 15 sudo apt-get update && \ 16 sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \ 17 libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \ 18 libvorbis-dev libvpx-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev 19 }}} 20 21 Get the dependencies ('''Ubuntu Server'''): 22 {{{ 23 sudo apt-get update && \ 24 sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \ 25 libmp3lame-dev libopus-dev libtheora-dev libtool libvorbis-dev libvpx-dev pkg-config texi2html \ 26 yasm zlib1g-dev 14 27 }}} 15 28 16 29 '''Note:''' The ''multiverse'' repository must be enabled in order to install the `libfaac-dev` package. See [https://help.ubuntu.com/community/Repositories/Ubuntu#Adding_Repositories_in_Ubuntu more details on adding repositories]. 17 30 18 Get the dependencies ('''Ubuntu Desktop'''): 19 {{{ 20 sudo apt-get update 21 sudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev libfaac-dev \ 22 libgpac-dev libmp3lame-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev \ 23 libvpx-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev 24 }}} 25 26 Get the dependencies ('''Ubuntu Server'''): 27 {{{ 28 sudo apt-get update 29 sudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev libfaac-dev \ 30 libgpac-dev libmp3lame-dev libtheora-dev libtool libvorbis-dev libvpx-dev pkg-config texi2html yasm zlib1g-dev 31 }}} 32 33 == Installation == 31 == Compilation & Installation == 34 32 35 33 === x264 === 36 34 H.264 video encoder. The following commands will get the current source files, compile, and install x264. See the [[x264EncodingGuide|x264 Encoding Guide]] for some usage examples. 37 35 {{{ 38 cd 39 git clone --depth 1 git://git.videolan.org/x264.git 40 cd x264 41 ./configure --enable-static 42 make 43 sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \ 44 awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \ 45 --fstrans=no --default 36 cd && \ 37 git clone --depth 1 git://git.videolan.org/x264.git && \ 38 cd x264 && \ 39 ./configure --prefix=$HOME/ffmpeg_build --bindir=$HOME/bin --enable-static && \ 40 make && \ 41 make install && \ 42 make distclean 46 43 }}} 47 44 … … 51 48 AAC audio encoder. 52 49 {{{ 53 cd 54 git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git 55 cd fdk-aac 56 autoreconf -fiv 57 ./configure -- disable-shared58 make 59 sudo checkinstall --pkgname=fdk-aac --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no\60 --deldoc=yes --fstrans=no --default 50 cd && \ 51 git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git && \ 52 cd fdk-aac && \ 53 autoreconf -fiv && \ 54 ./configure --prefix=$HOME/ffmpeg_build --disable-shared && \ 55 make && \ 56 make install && \ 57 make distclean 61 58 }}} 62 59 63 60 '''Note:''' You can download a [https://github.com/mstorsjo/fdk-aac/zipball/master fdk-aac source snapshot] as an alternative to using `git`. 64 61 65 === FFmpeg ===62 === ffmpeg === 66 63 67 64 '''Note:''' Ubuntu Server users should remove `--enable-x11grab` from the following command: 68 65 69 66 {{{ 70 cd 71 git clone --depth 1 git://source.ffmpeg.org/ffmpeg 72 cd ffmpeg 73 ./configure --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame \ 74 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 \ 75 --enable-nonfree 76 make 77 sudo checkinstall --pkgname=ffmpeg --pkgversion="7:$(date +%Y%m%d%H%M)-git" --backup=no \ 78 --deldoc=yes --fstrans=no --default 79 hash -r 67 cd && \ 68 git clone --depth 1 git://source.ffmpeg.org/ffmpeg && \ 69 cd ffmpeg && \ 70 ./configure --prefix=$HOME/ffmpeg_build --extra-cflags="-I$HOME/ffmpeg_build/include" \ 71 --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir=$HOME/bin --enable-gpl --enable-libass \ 72 --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora \ 73 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab && \ 74 make && \ 75 make install && \ 76 make distclean \ 77 hash -r && \ 78 source ~/.profile 80 79 }}} 81 80 … … 83 82 84 83 == Finish == 85 Installation is now complete and FFmpeg is now ready for use. You can keep the `ffmpeg,` `fdk-aac`, and `x264` directories in your home directory if you plan on updating later. See [#update Updating FFmpeg] below for more details followed by instructions for reverting all changes made by this guide.84 Installation is now complete and ffmpeg is now ready for use. You can keep the `ffmpeg,` `fdk-aac`, and `x264` directories in your home directory if you plan on updating later. See [#update Updating FFmpeg] below for more details followed by instructions for reverting all changes made by this guide. 86 85 87 86 ---- 88 87 89 88 == Updating FFmpeg ('''Ubuntu Desktop''') ==#update 90 Development of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. First, remove some packages and then update the dependencies:89 Development of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. First, remove (or move) the old files and then update the dependencies: 91 90 {{{ 92 sudo apt-get -y remove ffmpeg x264 libx264-dev 93 sudo apt-get update 94 sudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev libfaac-dev \ 95 libgpac-dev libmp3lame-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev \ 96 libvpx-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev 91 rm -rf ~/ffmpeg_builds && \ 92 rm -f ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264} && \ 93 sudo apt-get update && \ 94 sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \ 95 libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \ 96 libvorbis-dev libvpx-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev 97 97 }}} 98 98 99 99 === x264 === 100 100 {{{ 101 cd ~/x264 102 make distclean 101 cd ~/x264 && \ 102 make distclean \ 103 103 git pull 104 104 }}} 105 Now run `./configure`, `make`, and ` checkinstall` as shown in the [#x264 Install x264] section.105 Now run `./configure`, `make`, and `make install` as shown in the [#x264 Install x264] section. 106 106 107 107 === fdk-aac === 108 108 {{{ 109 cd ~/fdk-aac 110 make distclean 109 cd ~/fdk-aac && \ 110 make distclean \ 111 111 git pull 112 112 }}} 113 Now run `./configure`, `make`, and ` checkinstall` as shown in the [#fdk-aac Install fdk-aac] section.113 Now run `./configure`, `make`, and `make install` as shown in the [#fdk-aac Install fdk-aac] section. 114 114 115 === FFmpeg ===115 === ffmpeg === 116 116 {{{ 117 cd ~/ffmpeg 118 make distclean 117 cd ~/ffmpeg && \ 118 make distclean \ 119 119 git pull 120 120 }}} 121 Now run `./configure`, `make`, and ` checkinstall` as shown in the [#FFmpeg Install FFmpeg] section.121 Now run `./configure`, `make`, and `make install` as shown in the [#FFmpeg Install FFmpeg] section. 122 122 123 123 ---- 124 124 125 125 == Reverting Changes Made by This Guide == 126 To remove FFmpeg, x264, and other packages installed for this guide:126 To remove ffmpeg, x264, and dependencies installed for this guide: 127 127 {{{ 128 sudo apt-get autoremove autoconf automake build-essential checkinstall fdk-aac ffmpeg git libass-dev \ 129 libfaac-dev libgpac-dev libmp3lame-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \ 130 libvorbis-dev libvpx-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html x264 yasm zlib1g-dev 128 rm -rf ~/ffmpeg_builds ~/ffmpeg ~/fdk-aac ~/x264 && \ 129 rm -f ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264} && \ 130 sudo apt-get autoremove autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \ 131 libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \ 132 libvorbis-dev libvpx-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev 131 133 }}} 132 Lastly, delete the `ffmpeg`, `fdk-aac`, and `x264` directories in your home folder.133 134 134 135 == If You Need Help == 135 136 Feel free to ask your questions at the #ffmpeg IRC channel or the [http://ffmpeg.org/contact.html ffmpeg-user] mailing list. 137 138 {{{#!comment 139 * Make man pages actually work 140 * Make datadir location (the presets, etc) less useless 141 }}}
