Changes between Version 36 and Version 37 of CompilationGuide/Centos


Ignore:
Timestamp:
May 1, 2015, 3:53:10 AM (4 years ago)
Author:
llogan
Comment:

add x265, remove useless theora

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Centos

    v36 v37  
    1616Get 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).
    1717{{{
    18 # yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
     18# yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel
    1919}}}
    2020
     
    5050=== libx264 ===
    5151
    52 H.264 video encoder.
     52H.264 video encoder. See the [[Encode/H.264|H.264 Encoding Guide]] for more information and usage examples.
    5353
    5454Requires `ffmpeg` to be configured with `--enable-gpl` `--enable-libx264`.
     
    6262make install
    6363make distclean
     64}}}
     65
     66=== libx265 ===
     67
     68H.265/HEVC video encoder. See the [[Encode/H.265|H.265 Encoding Guide]] for more information and usage examples.
     69
     70Requires `ffmpeg` to be configured with `--enable-gpl` `--enable-libx265`.
     71
     72{{{
     73cd ~/ffmpeg_sources
     74hg clone https://bitbucket.org/multicoreware/x265
     75cd ~/ffmpeg_sources/x265/build/linux
     76cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
     77make
     78make install
    6479}}}
    6580
     
    169184git clone --depth 1 git://source.ffmpeg.org/ffmpeg
    170185cd 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-libx264
     186PKG_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
    172187make
    173188make install
     
    185200----
    186201
    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-devel
    199 }}}
    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_sources
    209 curl -O http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
    210 tar xzvf libtheora-1.1.1.tar.gz
    211 cd libtheora-1.1.1
    212 ./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-examples --disable-shared --disable-sdltest --disable-vorbistest
    213 make
    214 make install
    215 make distclean
    216 }}}
    217 
    218 ----
    219 
    220202== Updating ==
    221203
     
    224206{{{
    225207rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffserver,lame,vsyasm,x264,yasm,ytasm}
    226 # yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
     208# yum install autoconf automake cmake gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel
    227209}}}
    228210
     
    234216}}}
    235217Then run `./configure`, `make`, and `make install` as shown in the [#x264 Install x264] section.
     218
     219=== Update x265 ===
     220{{{
     221cd ~/ffmpeg_sources/x265
     222rm -rf ~/ffmpeg_sources/x265/build/linux/*
     223hg update
     224cd ~/ffmpeg_sources/x265/build/linux
     225}}}
     226Then run `cmake`, `make`, and `make install` as shown in the [#x265 Install x265] section.
    236227
    237228=== Update libfdk_aac ===
     
    265256{{{
    266257rm -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-devel
     258# yum erase autoconf automake cmake gcc gcc-c++ git libtool mercurial nasm pkgconfig zlib-devel
    268259hash -r
    269260}}}