Changes between Version 62 and Version 63 of CompilationGuide/Ubuntu


Ignore:
Timestamp:
May 18, 2013, 6:20:52 AM (6 years ago)
Author:
llogan
Comment:

cleanup; expand Finish section; add Also See section

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Ubuntu

    v62 v63  
    1414----
    1515
    16 == Get the dependencies ==
     16== Get the Dependencies ==
     17
    1718  '''Note:''' Copy and paste the whole code box for each step.
    1819
    1920'''Ubuntu Desktop''':
    2021{{{
    21 sudo apt-get update && \
     22sudo apt-get update
    2223sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \
    2324  libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \
     
    2728'''Ubuntu Server''':
    2829{{{
    29 sudo apt-get update && \
     30sudo apt-get update
    3031sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \
    3132  libmp3lame-dev libopus-dev libtheora-dev libtool libvorbis-dev libvpx-dev pkg-config texi2html \
     
    3536  '''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].
    3637
     38----
     39
    3740== Compilation & Installation ==
    3841
    3942=== x264 ===
     43
    4044H.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.
     45
    4146{{{
    42 mkdir ~/ffmpeg_sources && |
     47mkdir ~/ffmpeg_sources && \
    4348cd ~/ffmpeg_sources && \
    4449git clone --depth 1 git://git.videolan.org/x264.git && \
     
    5055}}}
    5156
     57x264 can accept more inputs via `lavf` if it is compiled again after you compile ffmpeg. This is not a necessary step but is useful if you plan on directly using the x264 binary.
     58
    5259  '''Note:''' You can download the nightly [ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2 x264 source snapshot] as an alternative to using `git`.
    5360
    5461=== fdk-aac ===
     62
    5563AAC audio encoder.
     64
    5665{{{
    5766cd ~/ffmpeg_sources && \
     
    8190make && \
    8291make install && \
    83 make distclean
    84 hash -r
     92make distclean \
     93hash -r \
    8594source ~/.profile
    8695}}}
     
    8897  '''Note:''' You can download the nightly [http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 FFmpeg source snapshot] as an alternative to using `git`.
    8998
     99----
     100
    90101== Finish ==
    91 Installation is now complete and ffmpeg is now ready for use. You can keep the `ffmpeg_sources` 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.
     102Installation is now complete and ffmpeg is now ready for use. Check to see if you're using your new ffmpeg:
     103
     104{{{
     105$ ffmpeg 2>&1 | head -n1
     106ffmpeg version git-2013-05-18-5918b7a Copyright (c) 2000-2013 the FFmpeg developers
     107}}}
     108
     109If you do not see `FFmpeg developers` in your output then something went wrong and you're probably using the [http://stackoverflow.com/a/9477756/1109017 fake "ffmpeg"] from the repository.
     110
     111You can keep the `ffmpeg_sources` directory if you plan on updating later. See [#update Updating FFmpeg] below for more details followed by instructions for [#RevertingChangesMadebyThisGuide reverting all changes] made by this guide.
    92112
    93113----
    94114
    95115== Updating FFmpeg (Ubuntu Desktop) ==#update
     116
    96117Development 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:
     118
    97119{{{
    98 rm -rf ~/ffmpeg_builds && \
    99 rm -f ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264} && \
    100 sudo apt-get update && \
     120rm -rf ~/ffmpeg_builds ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264}
     121sudo apt-get update
    101122sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \
    102123  libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \
     
    105126
    106127=== x264 ===
     128
    107129{{{
    108130cd ~/ffmpeg_sources/x264
     
    110132git pull
    111133}}}
     134
    112135Now run `./configure`, `make`, and `make install` as shown in the [#x264 Install x264] section.
    113136
    114137=== fdk-aac ===
     138
    115139{{{
    116140cd ~/ffmpeg_sources/fdk-aac
     
    118142git pull
    119143}}}
     144
    120145Now run `./configure`, `make`, and `make install` as shown in the [#fdk-aac Install fdk-aac] section.
    121146
    122147=== ffmpeg ===
     148
    123149{{{
    124150cd ~/ffmpeg_sources/ffmpeg
     
    126152git pull
    127153}}}
     154
    128155Now run `./configure`, `make`, and `make install` as shown in the [#FFmpeg Install FFmpeg] section.
    129156
     
    133160To remove ffmpeg, x264, and dependencies installed for this guide:
    134161{{{
    135 rm -rf ~/ffmpeg_builds ~/ffmpeg_sources && \
    136 rm -f ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264} && \
     162rm -rf ~/ffmpeg_builds ~/ffmpeg_sources ~/bin/{ffmpeg,ffplay,ffprobe,ffserver,x264}
    137163sudo apt-get autoremove autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev \
    138164  libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \
    139   libvorbis-dev libvpx-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev
     165  libvorbis-dev libvpx-dev libx11-dev libxext-dev libxfixes-dev texi2html yasm zlib1g-dev
     166hash -r
    140167}}}
    141168
     
    145172Feel free to ask your questions at the #ffmpeg IRC channel or the [http://ffmpeg.org/contact.html ffmpeg-user] mailing list.
    146173
     174----
     175
     176== Also See ==
     177* [[x264EncodingGuide|x264 Encoding Guide]]
     178* [[AACEncodingGuide|AAC Encoding Guide]]
     179* [http://ubuntuforums.org/showthread.php?t=2141949 Howto: Compile the development version of VLC under the latest Ubuntu release]
     180
    147181{{{#!comment
    148182* Make man pages actually work