Changes between Version 59 and Version 60 of CompilationGuide/Ubuntu


Ignore:
Timestamp:
May 14, 2013, 4:37:26 AM (6 years ago)
Author:
llogan
Comment:

change guide to make local type install

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Ubuntu

    v59 v60  
    33[[PageOutline(2, Contents)]]
    44
    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]].
     5This 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
     7Separate 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]].
    68
    79  '''Note:''' Copy and paste the whole code box for each step.
     
    911== Preparation ==
    1012
    11 Remove any existing packages:
     13Get the dependencies ('''Ubuntu Desktop'''):
    1214{{{
    13 sudo apt-get remove ffmpeg x264 libav-tools libx264-dev
     15sudo apt-get update && \
     16sudo 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
     21Get the dependencies ('''Ubuntu Server'''):
     22{{{
     23sudo apt-get update && \
     24sudo 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
    1427}}}
    1528
    1629  '''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].
    1730
    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 ==
    3432
    3533=== x264 ===
    3634H.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.
    3735{{{
    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
     36cd && \
     37git clone --depth 1 git://git.videolan.org/x264.git && \
     38cd x264 && \
     39./configure --prefix=$HOME/ffmpeg_build --bindir=$HOME/bin --enable-static && \
     40make && \
     41make install && \
     42make distclean
    4643}}}
    4744
     
    5148AAC audio encoder.
    5249{{{
    53 cd
    54 git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
    55 cd fdk-aac
    56 autoreconf -fiv
    57 ./configure --disable-shared
    58 make
    59 sudo checkinstall --pkgname=fdk-aac --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \
    60   --deldoc=yes --fstrans=no --default
     50cd && \
     51git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git && \
     52cd fdk-aac && \
     53autoreconf -fiv && \
     54./configure --prefix=$HOME/ffmpeg_build --disable-shared && \
     55make && \
     56make install && \
     57make distclean
    6158}}}
    6259
    6360  '''Note:''' You can download a [https://github.com/mstorsjo/fdk-aac/zipball/master fdk-aac source snapshot] as an alternative to using `git`.
    6461
    65 === FFmpeg ===
     62=== ffmpeg ===
    6663
    6764  '''Note:''' Ubuntu Server users should remove `--enable-x11grab` from the following command:
    6865
    6966{{{
    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
     67cd && \
     68git clone --depth 1 git://source.ffmpeg.org/ffmpeg && \
     69cd 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 && \
     74make && \
     75make install && \
     76make distclean \
     77hash -r && \
     78source ~/.profile
    8079}}}
    8180
     
    8382
    8483== 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.
     84Installation 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.
    8685
    8786----
    8887
    8988== 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:
     89Development 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:
    9190{{{
    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
     91rm -rf ~/ffmpeg_builds && \
     92rm -f ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264} && \
     93sudo apt-get update && \
     94sudo 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
    9797}}}
    9898
    9999=== x264 ===
    100100{{{
    101 cd ~/x264
    102 make distclean
     101cd ~/x264 && \
     102make distclean \
    103103git pull
    104104}}}
    105 Now run `./configure`, `make`, and `checkinstall` as shown in the [#x264 Install x264] section.
     105Now run `./configure`, `make`, and `make install` as shown in the [#x264 Install x264] section.
    106106
    107107=== fdk-aac ===
    108108{{{
    109 cd ~/fdk-aac
    110 make distclean
     109cd ~/fdk-aac && \
     110make distclean \
    111111git pull
    112112}}}
    113 Now run `./configure`, `make`, and `checkinstall` as shown in the [#fdk-aac Install fdk-aac] section.
     113Now run `./configure`, `make`, and `make install` as shown in the [#fdk-aac Install fdk-aac] section.
    114114
    115 === FFmpeg ===
     115=== ffmpeg ===
    116116{{{
    117 cd ~/ffmpeg
    118 make distclean
     117cd ~/ffmpeg && \
     118make distclean \
    119119git pull
    120120}}}
    121 Now run `./configure`, `make`, and `checkinstall` as shown in the [#FFmpeg Install FFmpeg] section.
     121Now run `./configure`, `make`, and `make install` as shown in the [#FFmpeg Install FFmpeg] section.
    122122
    123123----
    124124
    125125== Reverting Changes Made by This Guide ==
    126 To remove FFmpeg, x264, and other packages installed for this guide:
     126To remove ffmpeg, x264, and dependencies installed for this guide:
    127127{{{
    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
     128rm -rf ~/ffmpeg_builds ~/ffmpeg ~/fdk-aac ~/x264 && \
     129rm -f ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264} && \
     130sudo 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
    131133}}}
    132 Lastly, delete the `ffmpeg`, `fdk-aac`, and `x264` directories in your home folder.
    133134
    134135== If You Need Help ==
    135136Feel 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}}}