Air Video Server alpha6 on CentOS5.6
2011年7月3日(日)曇り
Air Video Server をCentOSにインストールするのに苦労した。
CentOSサーバをSandy Bridgeに変えたのでエンコをさせることにした。Sanday Bridgeはエンコが速いらしい。。。
消費電力を抑えるため一番プアーなCPUです。
・Intel HD67CF
・Core i3 2100T
・Memory 2G
まずは成果を貼り付けておく。参考になれば幸い。
================================================================================
Air Video 2011/07/02
mpeg4ip-server mpeg4ip-1.5.0.1.tar.gz
FFmpeg FFmpeg source code used in Air Video Server 2.4.5-beta6 an newer.
ffmpeg-for-2.4.5-beta6.tar.bz2
Air Video Server alpha6
================================================================================
■準備
gitをインストールするためDAGのリポジトリをyum設定ファイルに追加
vi /etc/yum.repos.d/CentOS-Base.repo
[dag]
name=Dag RPM Repository for Redhat EL5
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
■関連ソフトのインストール
# yum install git yasm lame-devel faad2-devel SDL-devel java-1.6.0-openjdk
■x264 のインストール
x264 も CentOS のリポジトリにあるやつは古いため消しておく
# yum remove ffmpeg x264
configureの引数は重要。この指定でないとffmpegのconfigureでERROR: libx264 not foundとなる
# git clone git://git.videolan.org/x264.git
# cd x264
# ./configure --enable-static
# make
# make install
■mpeg4ip-server のインストール
http://sourceforge.net/projects/mpeg4ip/
からダウンロード
# tar zxvf mpeg4ip-1.5.0.1.tar.gz
# cd mpeg4ip-1.5.0.1
# ./bootstrap
# ./configure
# make
# make install
=>undefined reference to `XMoveWindow’ とかでこける場合
player/src/Makefile (208行目)
CXXFLAGS = -g -o2 …-D_REENTRANT
から
CXXFLAGS = -g -o2 …-D_REENTRANT -L/usr/lib/X11 -lX11
で、再度Make
■ffmpeg のインストール
http://www.inmethod.com/air-video/licenses.html
FFmpeg source code used in Air Video Server 2.4.5-beta6 an newer can be downloaded here.
からダウンロード
# tar jxvf ffmpeg-for-2.4.5-beta6.tar.bz2
'x264'パッケージが無い
# cd ffmpeg
# ./configure --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame
No package 'x264' found
ERROR: libx264 not found
# cd
# cd x264
# cp x264.pc /usr/lib/pkgconfig
# cp x264.pc /usr/share/pkgconfig
今度はOK(しかし警告が多い...)
# cd
# cd ffmpeg
# ./configure --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame
# make
# make istall
■(必要ないかも?)Air-videoのpropertiesにfaacの指定があるのでとりあえず
faacのインストール
# wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
# tar zxvf faac-1.28.tar.gz
# cd faac-1.28
# sh ./bootstrap
# ./configure && make && make install
■Air Videoのインストール(Air Video alpha6)
# cd
# wget http://inmethod.com/air-video/download/linux/alpha6/AirVideoServerLinux.jar
# wget http://inmethod.com/air-video/download/linux/alpha1/test.properties
# vi test.properties
path.ffmpeg = /usr/local/bin/ffmpeg
path.mp4creator = /usr/local/bin/mp4creator
path.faac = /usr/local/bin/faac
password = ←必要であればサーバアクセスの際のパスワードを設定
subtitles.encoding = windows-1250
subtitles.font = Verdana
folders = video:/video←AirVideoクライアントに表示せる共有名:ディレクトリー。共有名とディレクトリが同じ名前じゃないとダメ?
■起動m
java -jar AirVideoServerLinux.jar test.properties
================================================================================
以上
ここまで辿りつくのに30時間は掛かったかも。
よう頑張ったわ。
Air Video Server をCentOSにインストールするのに苦労した。
CentOSサーバをSandy Bridgeに変えたのでエンコをさせることにした。Sanday Bridgeはエンコが速いらしい。。。
消費電力を抑えるため一番プアーなCPUです。
・Intel HD67CF
・Core i3 2100T
・Memory 2G
まずは成果を貼り付けておく。参考になれば幸い。
================================================================================
Air Video 2011/07/02
mpeg4ip-server mpeg4ip-1.5.0.1.tar.gz
FFmpeg FFmpeg source code used in Air Video Server 2.4.5-beta6 an newer.
ffmpeg-for-2.4.5-beta6.tar.bz2
Air Video Server alpha6
================================================================================
■準備
gitをインストールするためDAGのリポジトリをyum設定ファイルに追加
vi /etc/yum.repos.d/CentOS-Base.repo
[dag]
name=Dag RPM Repository for Redhat EL5
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
■関連ソフトのインストール
# yum install git yasm lame-devel faad2-devel SDL-devel java-1.6.0-openjdk
■x264 のインストール
x264 も CentOS のリポジトリにあるやつは古いため消しておく
# yum remove ffmpeg x264
configureの引数は重要。この指定でないとffmpegのconfigureでERROR: libx264 not foundとなる
# git clone git://git.videolan.org/x264.git
# cd x264
# ./configure --enable-static
# make
# make install
■mpeg4ip-server のインストール
http://sourceforge.net/projects/mpeg4ip/
からダウンロード
# tar zxvf mpeg4ip-1.5.0.1.tar.gz
# cd mpeg4ip-1.5.0.1
# ./bootstrap
# ./configure
# make
# make install
=>undefined reference to `XMoveWindow’ とかでこける場合
player/src/Makefile (208行目)
CXXFLAGS = -g -o2 …-D_REENTRANT
から
CXXFLAGS = -g -o2 …-D_REENTRANT -L/usr/lib/X11 -lX11
で、再度Make
■ffmpeg のインストール
http://www.inmethod.com/air-video/licenses.html
FFmpeg source code used in Air Video Server 2.4.5-beta6 an newer can be downloaded here.
からダウンロード
# tar jxvf ffmpeg-for-2.4.5-beta6.tar.bz2
'x264'パッケージが無い
# cd ffmpeg
# ./configure --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame
No package 'x264' found
ERROR: libx264 not found
# cd
# cd x264
# cp x264.pc /usr/lib/pkgconfig
# cp x264.pc /usr/share/pkgconfig
今度はOK(しかし警告が多い...)
# cd
# cd ffmpeg
# ./configure --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame
# make
# make istall
■(必要ないかも?)Air-videoのpropertiesにfaacの指定があるのでとりあえず
faacのインストール
# wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
# tar zxvf faac-1.28.tar.gz
# cd faac-1.28
# sh ./bootstrap
# ./configure && make && make install
■Air Videoのインストール(Air Video alpha6)
# cd
# wget http://inmethod.com/air-video/download/linux/alpha6/AirVideoServerLinux.jar
# wget http://inmethod.com/air-video/download/linux/alpha1/test.properties
# vi test.properties
path.ffmpeg = /usr/local/bin/ffmpeg
path.mp4creator = /usr/local/bin/mp4creator
path.faac = /usr/local/bin/faac
password = ←必要であればサーバアクセスの際のパスワードを設定
subtitles.encoding = windows-1250
subtitles.font = Verdana
folders = video:/video←AirVideoクライアントに表示せる共有名:ディレクトリー。共有名とディレクトリが同じ名前じゃないとダメ?
■起動m
java -jar AirVideoServerLinux.jar test.properties
================================================================================
以上
ここまで辿りつくのに30時間は掛かったかも。
よう頑張ったわ。