Cent OS 4.2 上でのffmpeg コンパイル

ffmpeg のsourceforge プロジェクトが閉鎖してるっぽいのでソースは日経Linuxの付録からコピー
FFMpeg-20050806.tar.bz2

その前に3gp用のモジュールをダウンロードしておく
wget http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26204-520.zip
wget http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26073-530.zip
wget http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26104-540.zip

コンパイル準備
tar jxvf FFMpeg-20050806.tar.bz2

3gp各アーカイブを展開するとc-codeというフォルダ内にソースが展開されるので
それを以下のようにffmpegソース内に配置します

unzip 26204-520.zip
unzip 26204-520_ANSI-C_source_code.zip
mkdir FFMpeg-20050806/libavcodec/amrwb_float
mv c-code/* FFMpeg-20050806/libavcodec/amrwb_float/

unzip 26073-530.zip
unzip 26073-530_ANSI_C_source_code.zip
mkdir FFMpeg-20050806/libavcodec/amr
mv c-code/* FFMpeg-20050806/libavcodec/amr/

unzip 26104-540.zip
unzip 26104-540_ANSI_C_source_code.zip
mkdir FFMpeg-20050806/libavcodec/amr_float
mv c-code/* FFMpeg-20050806/libavcodec/amr_float/

ここまでできたらconfigします
./configure --enable-amr_nb --enable-amr_wb --enable-mp3lame --enable-faac --enable-faad --enable-a52 --enable-gpl --enable-libogg

ここでメッセージが出ますがこれはエラーではありません
このようにしてくださいっていう意味っぽいです
-------------------------------------------------------------------
AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204
V5.1.0 from
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
and extracted the source to libavcodec/amrwb_float

AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104
REL-5 V5.1.0 from
http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip
and extracted the source to libavcodec/amr_float
and if u try this on an alpha, u may need to change Word32 to int in amr/typedef.h
-------------------------------------------------------------------

上半分はそのとおりにします 
このアーカイブはこの場所に展開されるので一時フォルダを作成してその中で作業します
mkdir ex
cd ex
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
unzip 26204-510.zip
unzip 26204-510_ANSI-C_source_code.zip
mv -f * FFMpeg-20050806/libavcodec/amrwb_float

メッセージ下半分は無視しておきます  最新版を入れていますので

make
make install

ffmpeg -versionのコマンドでこんな風に確認できればOK

ffmpeg version CVS, build 3211265, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-amr_nb --enable-amr_wb --enable-mp3lame --enable-faac --enable-faad --enable-a52 --enable-gpl --enable-libogg
built on Aug 11 2006 17:30:43, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)
ffmpeg CVS
libavcodec 3211265
libavformat 3211264

Comment Form

コメントを表示する前に、管理人の承認が必要になることがあります。その場合は、承認されるまでコメントは表示されませんので、ご了承ください。

スタイル用のHTMLタグが使えます

Trackback

Recent entry

Search

Tag Cloud

Page Top