Changes between Version 36 and Version 37 of CompilationGuide/Centos
- Timestamp:
- May 1, 2015, 12:53:10 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/Centos
v36 v37 16 16 Get the dependencies. These are required 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). 17 17 {{{ 18 # yum install autoconf automake gcc gcc-c++ git libtool makenasm pkgconfig zlib-devel18 # yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel 19 19 }}} 20 20 … … 50 50 === libx264 === 51 51 52 H.264 video encoder. 52 H.264 video encoder. See the [[Encode/H.264|H.264 Encoding Guide]] for more information and usage examples. 53 53 54 54 Requires `ffmpeg` to be configured with `--enable-gpl` `--enable-libx264`. … … 62 62 make install 63 63 make distclean 64 }}} 65 66 === libx265 === 67 68 H.265/HEVC video encoder. See the [[Encode/H.265|H.265 Encoding Guide]] for more information and usage examples. 69 70 Requires `ffmpeg` to be configured with `--enable-gpl` `--enable-libx265`. 71 72 {{{ 73 cd ~/ffmpeg_sources 74 hg clone https://bitbucket.org/multicoreware/x265 75 cd ~/ffmpeg_sources/x265/build/linux 76 cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source 77 make 78 make install 64 79 }}} 65 80 … … 169 184 git clone --depth 1 git://source.ffmpeg.org/ffmpeg 170 185 cd ffmpeg 171 PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" -- enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264186 PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 172 187 make 173 188 make install … … 185 200 ---- 186 201 187 == Additional Libraries ==188 189 Other external libraries that you may require (but probably do not). These must be installed before you compile `ffmpeg`.190 191 === libfreetype ===192 193 Font rendering library. Required for the [http://ffmpeg.org/ffmpeg-filters.html#drawtext-1 drawtext] video filter.194 195 Requires `ffmpeg` to be configured with `--enable-libfreetype`.196 197 {{{198 # yum install freetype-devel199 }}}200 201 === libtheora ===202 203 Theora video encoder. Requires [#libogg libogg]. A more modern alternative is VP8 or VP9 (see [#libvpx libvpx] section).204 205 Requires `ffmpeg` to be configured with `--enable-libtheora`206 207 {{{208 cd ~/ffmpeg_sources209 curl -O http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz210 tar xzvf libtheora-1.1.1.tar.gz211 cd libtheora-1.1.1212 ./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-examples --disable-shared --disable-sdltest --disable-vorbistest213 make214 make install215 make distclean216 }}}217 218 ----219 220 202 == Updating == 221 203 … … 224 206 {{{ 225 207 rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffserver,lame,vsyasm,x264,yasm,ytasm} 226 # yum install autoconf automake gcc gcc-c++ git libtool makenasm pkgconfig zlib-devel208 # yum install autoconf automake cmake gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel 227 209 }}} 228 210 … … 234 216 }}} 235 217 Then run `./configure`, `make`, and `make install` as shown in the [#x264 Install x264] section. 218 219 === Update x265 === 220 {{{ 221 cd ~/ffmpeg_sources/x265 222 rm -rf ~/ffmpeg_sources/x265/build/linux/* 223 hg update 224 cd ~/ffmpeg_sources/x265/build/linux 225 }}} 226 Then run `cmake`, `make`, and `make install` as shown in the [#x265 Install x265] section. 236 227 237 228 === Update libfdk_aac === … … 265 256 {{{ 266 257 rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffserver,lame,vsyasm,x264,yasm,ytasm} 267 # yum erase autoconf automake gcc gcc-c++ git libtool nasm pkgconfig zlib-devel258 # yum erase autoconf automake cmake gcc gcc-c++ git libtool mercurial nasm pkgconfig zlib-devel 268 259 hash -r 269 260 }}}
