Changes between Version 138 and Version 139 of CompilationGuide/Ubuntu


Ignore:
Timestamp:
Nov 2, 2017, 5:01:57 PM (19 months ago)
Author:
slhck
Comment:

apply syntax highlighting, simplify sed command

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Ubuntu

    v138 v139  
    2929Get the dependencies. These are required for compiling, but you can remove them when you are done if you prefer:
    3030{{{
     31#!sh
    3132sudo apt-get update -qq && apt-get -y install autoconf automake build-essential git libass-dev libfreetype6-dev \
    3233  libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
     
    4142In your home directory make a new directory to put all of the source code and binaries into:
    4243{{{
     44#!sh
    4345mkdir ~/ffmpeg_sources ~/bin
    4446}}}
     
    5860
    5961{{{
     62#!sh
    6063cd ~/ffmpeg_sources
    6164wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/nasm-2.13.01.tar.bz2
     
    7578
    7679{{{
     80#!sh
    7781sudo apt-get install yasm
    7882}}}
     
    8185
    8286{{{
     87#!sh
    8388cd ~/ffmpeg_sources
    8489wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
     
    99104
    100105{{{
     106#!sh
    101107sudo apt-get install libx264-dev
    102108}}}
     
    105111
    106112{{{
     113#!sh
    107114cd ~/ffmpeg_sources
    108115git clone --depth 1 http://git.videolan.org/git/x264
     
    120127
    121128{{{
     129#!sh
    122130sudo apt-get install libx265-dev
    123131}}}
     
    126134
    127135{{{
     136#!sh
    128137sudo apt-get install -y cmake mercurial
    129138cd ~/ffmpeg_sources
     
    144153
    145154{{{
     155#!sh
    146156sudo apt-get install libfdk-aac-dev
    147157}}}
     
    150160
    151161{{{
     162#!sh
    152163cd ~/ffmpeg_sources
    153164git clone --depth 1 https://github.com/mstorsjo/fdk-aac
     
    168179
    169180{{{
     181#!sh
    170182sudo apt-get install libmp3lame-dev
    171183}}}
     
    174186
    175187{{{
     188#!sh
    176189cd ~/ffmpeg_sources
    177190wget http://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz
     
    192205
    193206{{{
     207#!sh
    194208sudo apt-get install libopus-dev
    195209}}}
     
    198212
    199213{{{
     214#!sh
    200215cd ~/ffmpeg_sources
    201216wget https://archive.mozilla.org/pub/opus/opus-1.2.tar.gz
     
    216231
    217232{{{
     233#!sh
    218234sudo apt-get install libvpx-dev
    219235}}}
     
    222238
    223239{{{
     240#!sh
    224241cd ~/ffmpeg_sources
    225242git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
     
    233250
    234251{{{
     252#!sh
    235253cd ~/ffmpeg_sources
    236254wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
     
    290308
    291309{{{
     310#!sh
    292311echo "MANPATH_MAP $HOME/bin $HOME/ffmpeg_build/share/man" >> ~/.manpath
    293312}}}
     
    306325
    307326{{{
     327#!sh
    308328rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay,ffserver,x264,x265}
    309329}}}
     
    316336
    317337{{{
     338#!sh
    318339rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay,ffserver,x264,x265,nasm,vsyasm,yasm,ytasm}
    319340sudo apt-get autoremove autoconf automake build-essential cmake git libass-dev libfreetype6-dev \
    320341  libmp3lame-dev libopus-dev libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev \
    321342  libvorbis-dev libvpx-dev libx264-dev libxcb1-dev libxcb-shm0-dev ibxcb-xfixes0-dev mercurial texinfo zlib1g-dev
    322 sed -i '/ffmpeg_build/c\' ~/.manpath
     343sed -i '/ffmpeg_build/d' ~/.manpath
    323344hash -r
    324345}}}