可以選擇是否要安裝的軟體包
Package:
yasm-1.2.0.tar.gz(建議安裝 強力的匯編器)
Decompressed
tar -xvf yasm-1.2.0.tar.gz
Config&Make&Install
cd yasm-1.2.0
./configure
make
make install
faac-1.28.tar.bz2 (MPEG-4 and MPEG-2 AAC encoder.)
Decompressed
tar -xvf faac-1.28.tar.bz2
Config&make&install
cd faac-1.28
./configure --enable-shared --prefix=/usr
make
make install
x264-f6a8615.tar.gz (H.264 video encoder. 經人調校過, 較快編碼版本)
Decompressed
tar -xvf x264-f6a8615.tar.bz
Config&make&install
./configure --enable-static --disable-asm
make
make install
libvpx-v1.1.0 (VP8 video encoder and decoder.)
Decompressed
tar -xvf libvpx-v1.1.0
Config&make&install
./configure
make
make install
lame-3.99.5.tar.gz(MP3 Encoder)
Decompressed
tar -xvf lame-3.99.5.tar.gz
Config&make&install
./configure --enable-shared --prefix=/usr
make
make install
fribidi-0.19.5.tar.bz2 (For libass-0.10.1)
Decompressed
tar -xvf fribidi-0.19.5.tar.bz2
Config&make&install
./configure
make
make install
libass-0.10.1 (ass subtitle filter)
Decompressed
tar -zxvf li bass-0.10.1.tar.gz
Config&make&install
./configure
make
make install
opencore-amr-0.1.3(For audio codec amrwb, amrnb)
tar -zxvf opencore-amr-0.1.3.tar.gz
./configure --enable-shared --prefix=/usr
make
make install
FFmpeg:
Decompressed
tar -xvf ffmpeg-1.0.1.tar.bz2
Config&make&install
cd ffmpeg-1.0.1
./configure --enable-gpl --enable-x11grab --enable-nonfree --enable-version3 --enable-libfaac --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb
make
make install
當一切都做好之後 敲敲看ffmpeg這個指令
# ffmpeg
ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 13 2013 23:40:32 with gcc 3.2.1 (GCC)
configuration: --enable-gpl --enable-x11grab --enable-nonfree --enable-version3 --enable-libfaac --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
如果有出現類似上面這個訊息就算成功囉
Reference:
http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
(待補充.....)
沒有留言:
張貼留言