Changes between Version 92 and Version 93 of CompilationGuide/Centos
- Timestamp:
- Feb 6, 2019, 1:17:58 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/Centos
v92 v93 13 13 * `ffmpeg_sources` – Where the source files will be downloaded. This can be deleted if desired when finished with the guide. 14 14 * `ffmpeg_build` – Where the files will be built and libraries installed. This can be deleted if desired when finished with the guide. 15 * `bin` – Where the resulting binaries (`ffmpeg`, `ffp lay`, `ffserver`, `x264`, `x265`) will be installed.15 * `bin` – Where the resulting binaries (`ffmpeg`, `ffprobe`, `x264`, `x265`) will be installed. 16 16 17 17 You can easily undo any of this as shown in [#RevertingChangesmadebythisGuide Reverting Changes Made by This Guide]. … … 28 28 Get the dependencies. These are required for compiling, but you can remove them when you are done if you prefer (except `make`; it should be installed by default and many things depend on it). 29 29 {{{ 30 # yum install autoconf automake bzip2 cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel bzip2-devel30 # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel 31 31 }}} 32 32 … … 42 42 {{{ 43 43 #!div style="border: 1px solid #c7e5c7; margin: 1em; background-color: #ddffdd;" 44 '''Tip:''' If you do not require certain encoders you may skip the relevant section and then remove the appropriate `./configure` option in FFmpeg. For example, if libv orbis is not needed, then skip that section and then remove `--enable-libvorbis` from the [#FFmpeg Install FFmpeg] section.44 '''Tip:''' If you do not require certain encoders you may skip the relevant section and then remove the appropriate `./configure` option in FFmpeg. For example, if libvpx is not needed, then skip that section and then remove `--enable-libvpx` from the [#FFmpeg Install FFmpeg] section. 45 45 }}} 46 46 … … 91 91 {{{ 92 92 #!div style="border: 1px solid #e5c7c7; margin: 1em; background-color: #fdd;" 93 '''Warning:''' If you get `Found no assembler. Minimum version is nasm-2.13` or similar after running `./configure` then the outdated nasm package from the repo is installed. Run `yum remove nasm && hash - r` and x264 will then use your newly compiled nasm instead. Ensure environment is able to resolve path to nasm binary.93 '''Warning:''' If you get `Found no assembler. Minimum version is nasm-2.13` or similar after running `./configure` then the outdated nasm package from the repo is installed. Run `yum remove nasm && hash -d nasm` and x264 will then use your newly compiled nasm instead. Ensure environment is able to resolve path to nasm binary. 94 94 }}} 95 95 … … 133 133 {{{ 134 134 cd ~/ffmpeg_sources 135 curl -O -L http ://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz135 curl -O -L https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz 136 136 tar xzvf lame-3.100.tar.gz 137 137 cd lame-3.100 … … 153 153 cd opus-1.3 154 154 ./configure --prefix="$HOME/ffmpeg_build" --disable-shared 155 make156 make install157 }}}158 159 === libogg ===160 161 Ogg bitstream library. Required by [#libvorbis libvorbis].162 163 {{{164 cd ~/ffmpeg_sources165 curl -O -L https://downloads.xiph.org/releases/ogg/libogg-1.3.3.tar.gz166 tar xzvf libogg-1.3.3.tar.gz167 cd libogg-1.3.3168 ./configure --prefix="$HOME/ffmpeg_build" --disable-shared169 make170 make install171 }}}172 173 === libvorbis ===174 175 Vorbis audio encoder. Requires [#libogg libogg].176 177 Requires `ffmpeg` to be configured with `--enable-libvorbis`.178 179 {{{180 cd ~/ffmpeg_sources181 curl -O -L https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.6.tar.gz182 tar xzvf libvorbis-1.3.6.tar.gz183 cd libvorbis-1.3.6184 ./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared185 155 make 186 156 make install … … 222 192 --enable-libmp3lame \ 223 193 --enable-libopus \ 224 --enable-libvorbis \225 194 --enable-libvpx \ 226 195 --enable-libx264 \ … … 229 198 make 230 199 make install 231 hash - r232 }}} 233 234 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.200 hash -d ffmpeg 201 }}} 202 203 Compilation is now complete and `ffmpeg` (also `ffprobe`, `lame`, and `x264`) should now be ready to use. The rest of this guide shows how to update or remove FFmpeg. 235 204 236 205 {{{ … … 246 215 247 216 {{{ 248 rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe, ffserver,lame,x264,x265}249 # yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel217 rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,lame,x264,x265} 218 # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel 250 219 }}} 251 220 … … 294 263 295 264 {{{ 296 rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe, ffserver,lame,nasm,vsyasm,x264,yasm,ytasm}297 # yum erase autoconf automake bzip2 cmake freetype-devel gcc gcc-c++ git libtool mercurial zlib-devel265 rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,lame,nasm,vsyasm,x264,yasm,ytasm} 266 # yum erase autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool mercurial zlib-devel 298 267 hash -r 299 268 }}}
