ICON of RYUUO.COM TradeMark

HowTo compile ffmpeg and fobs

会員登録(SSL)
会員専用(SSL)


更新日: ??????
インストールに関して

ffmpegとfobsのダウンロード

ffmpegとfobsはcvsかsvnかによって開発が進められているので、最新版をダウンロード。
fobs-0.4.1
をダウンロードするとffmpegのソースも含まれている

ffmpegのcompile時の参考にしたページ。
http://howto-pages.org/ffmpeg/
により、
http://lame.sourceforge.net/index.php.....mp3
http://howto-pages.org/ffmpeg/.....libgsm-1.0.13.tar.bz2
http://www.xvid.org/.....xvid
http://www.penguin.cz/~utx/amr.....amrnb-6.1.0.4.tar.bz2 amrwb-7.0.0.2.tar.bz2
http://www.xiph.org/downloads/.....libogg libvorbis
http://sourceforge.net/projects/faac/.....faac faad
以上のライブラリをインストール。


First Step...ffmpeg


READMEを読むと
1 - ffmpeg (CVS Snapshot 2006-11-24 or above)
2 - scons (0.9.6.1 or above)
ということであったので、
# yum install scons
でインストールしておく。

$ tar xfvz fobs-src-0.4.1.tar.gz
$ cd fobs-src

$ tar xvfz resources/current-ffmpeg.tar.gz
$ cd scripts
$ tar xvfz ../resources/current-scons-local.tar.gz

$ cd ..
.....ここでsvnを利用して最新版をinstallした
$ svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
$ cd ffmpeg
$ ./configure --enable-gpl --enable-libogg --enable-vorbis --enable-xvid \
--enable-libgsm --enable-mp3lame --enable-libamr-nb --enable-libamr-wb \
--enable-faac --enable-faad --enable-faadbin --enable-shared
$ make
$ sudo make install

$ cd ..
$ ./buildFobs.sh --help.....optionを確認
$ ./buildFobs.sh FFMPEG_HOME=/home/usename/TEST/fobs-src/ffmpeg JNI_H_PATH=/opt/jdk/include \ JNI_MD_H_PATH=/opt/jdk/include/linux \ EXTERNAL_LIBS=avformat,avcodec,faac,faad,libmp3lame,vorbis,vorbisenc,vorbisfile,ogg,xvidcore,dl \ EXTERNAL_INC_PATHS=/usr/local/include 以上のOptionを設定して実行するも、compile errorが出る。 mf-pi/stand_alone_codec.os src/jmf-pi/stand_alone_codec.cpp src/jmf-pi/stand_alone_codec.cpp:33:34: error: libavformat/avformat.h: No such file or directory src/jmf-pi/stand_alone_codec.cpp:34:32: error: libavcodec/avcodec.h: No such file or directory src/jmf-pi/stand_alone_codec.cpp:36:17: error: avi.h: No such file or directory In file included from src/jmf-pi/stand_alone_codec.cpp:39: src/jmf-pi/_tags.h:2:18: error: riff.h: No such file or directory header fileが見つからないというものだ。 #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> #define MKTAG(a,b,c,d) (a | (b << 8) | (c << 16) | (d << 24)) #include "avi.h" の部分を変更する。ソースファイルのなかに変更する箇所が多くあった。 ちなみに、 #include "sample.h" includeの""で囲まれたファイルははソースファイルと同じディレクトリ内 になければならない。また、これらのファイルはffmpeg内のソースファイルにある。 copyするなりするか、また、ffmpegを/usr/localにInsallした場合には/usr/local/include directory内のffmpeg-directoryに存在しているので以下のようにしても良い。 #include <ffmpeg/avcodec.h> 要するに、header fileへのPATHを通せば良いだけだ。 また、macro(gcc)でINT64_C が宣言されていないので common.h に追加した。 # if __WORDSIZE == 64 # define INT64_C(c) c ## L # else # define INT64_C(c) c ## LL # endif



Notice: Check exist /usr/include/ffmpeg...if you installed before.
どうにかInstallが終了