Changes between Version 24 and Version 25 of CompilationGuide/Centos


Ignore:
Timestamp:
May 31, 2013, 3:52:58 AM (5 years ago)
Author:
llogan
Comment:

add opus, update libogg, add Additional Libraries section

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Centos

    v24 v25  
    6666}}} 
    6767 
    68 === LAME === 
     68=== libmp3lame === 
    6969MP3 audio encoder. 
    7070{{{ 
     
    7979}}} 
    8080 
     81=== libopus === 
     82Opus audio decoder and encoder. 
     83{{{ 
     84cd ~/ffmpeg_sources 
     85curl -O http://downloads.xiph.org/releases/opus/opus-1.0.2.tar.gz 
     86tar xzvf opus-1.0.2.tar.gz 
     87cd opus-1.0.2 
     88./configure --prefix="$HOME/ffmpeg_build" --disable-shared 
     89make 
     90make install 
     91make distclean 
     92}}} 
     93 
    8194=== libogg === 
    82 Ogg bitstream library. Required for libtheora and libvorbis. 
    83 {{{ 
    84 cd ~/ffmpeg_sources 
    85 curl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz 
    86 tar xzvf libogg-1.3.0.tar.gz 
    87 cd libogg-1.3.0 
     95Ogg bitstream library. Required by libtheora and libvorbis. 
     96{{{ 
     97cd ~/ffmpeg_sources 
     98curl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz 
     99tar xzvf libogg-1.3.1.tar.gz 
     100cd libogg-1.3.1 
    88101./configure --prefix="$HOME/ffmpeg_build" --disable-shared 
    89102make 
     
    92105}}} 
    93106 
     107=== libvorbis === 
     108Vorbis audio encoder. Requires [#libogg libogg]. 
     109{{{ 
     110cd ~/ffmpeg_sources 
     111curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz 
     112tar xzvf libvorbis-1.3.3.tar.gz 
     113cd libvorbis-1.3.3 
     114./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared 
     115make 
     116make install 
     117make distclean 
     118}}} 
     119 
     120=== libvpx === 
     121VP8/VP9 video encoder. 
     122{{{ 
     123cd ~/ffmpeg_sources 
     124git clone --depth 1 http://git.chromium.org/webm/libvpx.git 
     125cd libvpx 
     126./configure --prefix="$HOME/ffmpeg_build" --disable-examples 
     127make 
     128make install 
     129make clean 
     130}}} 
     131 
     132=== FFmpeg === 
     133{{{ 
     134cd ~/ffmpeg_sources 
     135git clone --depth 1 git://source.ffmpeg.org/ffmpeg 
     136cd ffmpeg 
     137PKG_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" --extra-libs="-ldl" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 
     138make 
     139make install 
     140make distclean 
     141hash -r 
     142. ~/.bash_profile 
     143}}} 
     144 
     145Compilation 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. 
     146 
     147  '''Note:''' Keep the `ffmpeg_sources` directory and all contents if you intend to update or uninstall as shown below. 
     148 
     149---- 
     150 
     151== Additional Libraries == 
     152 
     153Other libraries codecs that you may require (but probably do not). These must be installed before you compile ffmpeg. 
     154 
     155=== libfreetype === 
     156Font rendering library. Required for the [http://ffmpeg.org/ffmpeg-filters.html#drawtext-1 drawtext] video filter. 
     157{{{ 
     158# yum install freetype-devel 
     159}}} 
     160 
     161Add `--enable-libfreetype` to your ffmpeg `./configure`. 
     162 
     163=== libspeex === 
     164Speex audio decoder and encoder. 
     165 
     166{{{ 
     167# yum install speex-devel 
     168}}} 
     169 
     170Add `--enable-libspeex` to your ffmpeg `./configure`. 
     171 
    94172=== libtheora === 
    95 Theora video encoder. 
     173Theora video encoder. Requires [#libogg libogg]. 
     174 
    96175{{{ 
    97176cd ~/ffmpeg_sources 
     
    105184}}} 
    106185 
    107 === libvorbis === 
    108 Vorbis audio encoder. 
    109 {{{ 
    110 cd ~/ffmpeg_sources 
    111 curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz 
    112 tar xzvf libvorbis-1.3.3.tar.gz 
    113 cd libvorbis-1.3.3 
    114 ./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared 
    115 make 
    116 make install 
    117 make distclean 
    118 }}} 
    119  
    120 === libvpx === 
    121 VP8/VP9 video encoder. 
    122 {{{ 
    123 cd ~/ffmpeg_sources 
    124 git clone --depth 1 http://git.chromium.org/webm/libvpx.git 
    125 cd libvpx 
    126 ./configure --prefix="$HOME/ffmpeg_build" --disable-examples 
    127 make 
    128 make install 
    129 make clean 
    130 }}} 
    131  
    132 === FFmpeg === 
    133 {{{ 
    134 cd ~/ffmpeg_sources 
    135 git clone --depth 1 git://source.ffmpeg.org/ffmpeg 
    136 cd ffmpeg 
    137 ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libfdk_aac --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-nonfree 
    138 make 
    139 make install 
    140 make distclean 
    141 hash -r 
    142 . ~/.bash_profile 
    143 }}} 
    144  
    145 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. 
    146  
    147   '''Note:''' Keep the `ffmpeg_sources` directory and all contents if you intend to update or uninstall as shown below. 
     186Add `--enable-libtheora` to your ffmpeg `./configure`. 
    148187 
    149188---- 
     
    192231 
    193232== Reverting changes made by this guide == 
     233 
    194234{{{ 
    195235rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffserver,lame,vsyasm,x264,yasm,ytasm}