Changes between Version 146 and Version 147 of CompilationGuide/Ubuntu
- Timestamp:
- Mar 27, 2018, 9:34:48 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/Ubuntu
v146 v147 7 7 You may also refer to the [[GenericCompilationGuide|Generic Compilation Guide]] for additional information about compiling software. 8 8 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.9 Recent [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. 10 10 11 11 {{{ … … 18 18 * `ffmpeg_sources` – Where the source files will be downloaded. This can be deleted if desired when finished with the guide. 19 19 * `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`, `ff server`, `x264`, `x265`) will be installed.20 * `bin` – Where the resulting binaries (`ffmpeg`, `ffplay`, `ffprobe`, `x264`, `x265`) will be installed. 21 21 22 22 You can easily undo any of this as shown in [#RevertingChangesmadebythisGuide Reverting Changes Made by This Guide]. … … 77 77 {{{ 78 78 #!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`. 80 80 }}} 81 81 … … 112 112 #!sh 113 113 cd ~/ffmpeg_sources && \ 114 wget -O yasm-1.3.0.tar.gz http ://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && \114 wget -O yasm-1.3.0.tar.gz https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && \ 115 115 tar xzvf yasm-1.3.0.tar.gz && \ 116 116 cd yasm-1.3.0 && \ … … 138 138 #!sh 139 139 cd ~/ffmpeg_sources && \ 140 git -C x264 pull 2> /dev/null || git clone --depth 1 http ://git.videolan.org/git/x264 && \140 git -C x264 pull 2> /dev/null || git clone --depth 1 https://git.videolan.org/git/x264 && \ 141 141 cd x264 && \ 142 142 PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static && \ … … 174 174 Requires `ffmpeg` to be configured with `--enable-libvpx`. 175 175 176 If your repository provides `libvpx-dev` version ≥ 0.9.7then you can install that instead of compiling:176 If your repository provides `libvpx-dev` version ≥ 1.4.0 then you can install that instead of compiling: 177 177 178 178 {{{ … … 237 237 #!sh 238 238 cd ~/ffmpeg_sources && \ 239 wget -O lame-3.100.tar.gz http ://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz && \239 wget -O lame-3.100.tar.gz https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz && \ 240 240 tar xzvf lame-3.100.tar.gz && \ 241 241 cd lame-3.100 && \ … … 276 276 #!sh 277 277 cd ~/ffmpeg_sources && \ 278 wget -O ffmpeg-snapshot.tar.bz2 http ://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \278 wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \ 279 279 tar xjvf ffmpeg-snapshot.tar.bz2 && \ 280 280 cd ffmpeg && \ … … 303 303 }}} 304 304 305 Compilation is now complete and `ffmpeg` (also `ffp robe`, `ffserver`, `lame`, and `x264`) should now be ready to use. The rest of this guide shows how to update or remove FFmpeg.305 Compilation 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. 306 306 307 307 === Usage === … … 319 319 {{{ 320 320 #!div style="border: 1px solid #e5e5c7; margin: 1em; background-color: #ffd;" 321 '''Note:''' `~/bin` is included in the standardUbuntu `$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. 322 322 }}} 323 323 … … 345 345 {{{ 346 346 #!sh 347 rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffplay, ffserver,x264,x265}347 rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffplay,x264,x265} 348 348 }}} 349 349 … … 358 358 {{{ 359 359 #!sh 360 rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay, ffserver,x264,x265,nasm,vsyasm,yasm,ytasm}360 rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay,x264,x265,nasm,vsyasm,yasm,ytasm} 361 361 sed -i '/ffmpeg_build/d' ~/.manpath 362 362 hash -r … … 367 367 {{{ 368 368 #!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-dev369 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 370 370 }}} 371 371
