ffmpeg をインストール

次は ffmpeg
これはいつも面倒なことになるから嫌なんだけど…。
ココからダウンロードして展開。
ダウンロードのページには 0.5.2 と 0.6 があったので、0.5.2 をダウンロードしてトライ。

MacBookAir:opencv paraches$ tar xjf ffmpeg-0.5.2.tar.bz2 

.configure は arch=x86_x64 と prefix のオプションつけて。

MacBookAir:ffmpeg-0.5.2 paraches$ ./configure --arch=x86_x64 --prefix=/usr
<長いので省略>
Creating config.mak and config.h...
MacBookAir:ffmpeg-0.5.2 paraches$

後は make してインストール。

MacBookAir:ffmpeg-0.5.2 paraches$ make
gcc -fPIC -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/Users/paraches/myTest/opencv/ffmpeg-0.5.2" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -pipe -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno `freetype-config --cflags` -MM vhook/drawtext.c | sed -e "/^#.*/d" -e "s,^[[:space:]]*drawtext\.o,vhook/drawtext.o," > vhook/drawtext.d
<長いので省略>
rm doc/ffserver.pod doc/ffmpeg.pod doc/ffplay.pod
MacBookAir:ffmpeg-0.5.2 paraches$ sudo make install
<長いので省略>
MacBookAir:ffmpeg-0.5.2 paraches$

make にはかなり時間がかかったけど無事終了。インストールも無事終了。