| | 107 | === libvorbis === |
| | 108 | Vorbis audio encoder. Requires [#libogg libogg]. |
| | 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 | 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" --extra-libs="-ldl" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 |
| | 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. |
| | 148 | |
| | 149 | ---- |
| | 150 | |
| | 151 | == Additional Libraries == |
| | 152 | |
| | 153 | Other libraries codecs that you may require (but probably do not). These must be installed before you compile ffmpeg. |
| | 154 | |
| | 155 | === libfreetype === |
| | 156 | Font rendering library. Required for the [http://ffmpeg.org/ffmpeg-filters.html#drawtext-1 drawtext] video filter. |
| | 157 | {{{ |
| | 158 | # yum install freetype-devel |
| | 159 | }}} |
| | 160 | |
| | 161 | Add `--enable-libfreetype` to your ffmpeg `./configure`. |
| | 162 | |
| | 163 | === libspeex === |
| | 164 | Speex audio decoder and encoder. |
| | 165 | |
| | 166 | {{{ |
| | 167 | # yum install speex-devel |
| | 168 | }}} |
| | 169 | |
| | 170 | Add `--enable-libspeex` to your ffmpeg `./configure`. |
| | 171 | |
| 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. |
| | 186 | Add `--enable-libtheora` to your ffmpeg `./configure`. |