Changes between Version 146 and Version 147 of CompilationGuide/Ubuntu


Ignore:
Timestamp:
Mar 28, 2018, 12:34:48 AM (6 months ago)
Author:
llogan
Comment:

avoid using export to be less meddling in users shell, no more ffserver, nits

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Ubuntu

    v146 v147  
    77You may also refer to the [[GenericCompilationGuide|Generic Compilation Guide]] for additional information about compiling software. 
    88 
    9 Recent [http://ffmpeg.org/download.html#LinuxBuilds static builds] are also available for lazy people or those who are unable to compile. The static builds do not support non-free encoders. 
     9Recent [https://ffmpeg.org/download.html#LinuxBuilds static builds] are also available for lazy people or those who are unable to compile. The static builds do not support non-free encoders. 
    1010 
    1111{{{ 
     
    1818* `ffmpeg_sources` – Where the source files will be downloaded. This can be deleted if desired when finished with the guide. 
    1919* `ffmpeg_build` – Where the files will be built and libraries installed. This can be deleted if desired when finished with the guide. 
    20 * `bin` – Where the resulting binaries (`ffmpeg`, `ffplay`, `ffserver`, `x264`, `x265`) will be installed. 
     20* `bin` – Where the resulting binaries (`ffmpeg`, `ffplay`, `ffprobe`, `x264`, `x265`) will be installed. 
    2121 
    2222You can easily undo any of this as shown in [#RevertingChangesmadebythisGuide Reverting Changes Made by This Guide]. 
     
    7777{{{ 
    7878#!div style="border: 1px solid #c7e5c7; margin: 1em; background-color: #ddffdd;" 
    79 '''Tip:''' To significantly speed up the compilation process on systems with multiple cores, you can type `export MAKEFLAGS="-j4"` into your shell before executing the below commands. 
     79'''Tip:''' To significantly speed up the compilation process on systems with multiple cores, you can use the `-j` option with each `make` command, such as `make -j4`. 
    8080}}} 
    8181 
     
    112112#!sh 
    113113cd ~/ffmpeg_sources && \ 
    114 wget -O yasm-1.3.0.tar.gz http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && \ 
     114wget -O yasm-1.3.0.tar.gz https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && \ 
    115115tar xzvf yasm-1.3.0.tar.gz && \ 
    116116cd yasm-1.3.0 && \ 
     
    138138#!sh 
    139139cd ~/ffmpeg_sources && \ 
    140 git -C x264 pull 2> /dev/null || git clone --depth 1 http://git.videolan.org/git/x264 && \ 
     140git -C x264 pull 2> /dev/null || git clone --depth 1 https://git.videolan.org/git/x264 && \ 
    141141cd x264 && \ 
    142142PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static && \ 
     
    174174Requires `ffmpeg` to be configured with `--enable-libvpx`. 
    175175 
    176 If your repository provides `libvpx-dev` version ≥ 0.9.7 then you can install that instead of compiling: 
     176If your repository provides `libvpx-dev` version ≥ 1.4.0 then you can install that instead of compiling: 
    177177 
    178178{{{ 
     
    237237#!sh 
    238238cd ~/ffmpeg_sources && \ 
    239 wget -O lame-3.100.tar.gz http://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz && \ 
     239wget -O lame-3.100.tar.gz https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz && \ 
    240240tar xzvf lame-3.100.tar.gz && \ 
    241241cd lame-3.100 && \ 
     
    276276#!sh 
    277277cd ~/ffmpeg_sources && \ 
    278 wget -O ffmpeg-snapshot.tar.bz2 http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \ 
     278wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \ 
    279279tar xjvf ffmpeg-snapshot.tar.bz2 && \ 
    280280cd ffmpeg && \ 
     
    303303}}} 
    304304 
    305 Compilation is now complete and `ffmpeg` (also `ffprobe`, `ffserver`, `lame`, and `x264`) should now be ready to use. The rest of this guide shows how to update or remove FFmpeg. 
     305Compilation is now complete and `ffmpeg` (also `ffplay`, `ffprobe`, `lame`, `x264`, & `x265`) should now be ready to use. The rest of this guide shows how to update or remove FFmpeg. 
    306306 
    307307=== Usage === 
     
    319319{{{ 
    320320#!div style="border: 1px solid #e5e5c7; margin: 1em; background-color: #ffd;" 
    321 '''Note:''' `~/bin` is included in the standard Ubuntu `$PATH` by default (via the `~/.profile` file), ''but only when the `~/bin` directory actually exists''. This is why you must log out then log in or run `source ~/.profile` if you just created `~/bin`. See [https://help.ubuntu.com/community/EnvironmentVariables#Persistent_environment_variables Ubuntu Wiki: Persistent Environment Variables] for more info. 
     321'''Note:''' `~/bin` is included in the vanilla Ubuntu `$PATH` by default (via the `~/.profile` file), ''but only when the `~/bin` directory actually exists''. This is why you must log out then log in or run `source ~/.profile` if you just created `~/bin`. See [https://help.ubuntu.com/community/EnvironmentVariables#Persistent_environment_variables Ubuntu Wiki: Persistent Environment Variables] for more info. 
    322322}}} 
    323323 
     
    345345{{{ 
    346346#!sh 
    347 rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffplay,ffserver,x264,x265} 
     347rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffplay,x264,x265} 
    348348}}} 
    349349 
     
    358358{{{ 
    359359#!sh 
    360 rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay,ffserver,x264,x265,nasm,vsyasm,yasm,ytasm} 
     360rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay,x264,x265,nasm,vsyasm,yasm,ytasm} 
    361361sed -i '/ffmpeg_build/d' ~/.manpath 
    362362hash -r 
     
    367367{{{ 
    368368#!sh 
    369 sudo apt-get autoremove autoconf automake build-essential cmake git libass-dev libfreetype6-dev   libmp3lame-dev libopus-dev libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libvpx-dev libx264-dev libx265-dev libxcb1-dev libxcb-shm0-dev ibxcb-xfixes0-dev mercurial texinfo wget zlib1g-dev 
     369sudo apt-get autoremove autoconf automake build-essential cmake git libass-dev libfreetype6-dev libmp3lame-dev libopus-dev libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libvpx-dev libx264-dev libx265-dev libxcb1-dev libxcb-shm0-dev ibxcb-xfixes0-dev mercurial texinfo wget zlib1g-dev 
    370370}}} 
    371371