• 検索結果がありません。

以下サービスを起動します。

ドキュメント内 CaLabo LMS v1.1 管理者マニュアル 第1版 (ページ 35-51)

# /etc/init.d/httpd start

PHP のインストール(OS バージョン 7.x の場合)

VODの動作に必要なPHPのインストールを行います。

1) Webtatic ELにリポジトリ情報を追加します。

# rpm -Uvh

https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.no arch.rpm

# rpm -Uvh

https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

35

2) PHP 5.6のmod_phpSAPIをインストールします。

# yum install php56w php56w-opcache

3) PHPのインストールに必要なパッケージをyumでインストールします。

# yum install \ php56w \

php56w-cli \ php56w-common \ php56w-devel \ php56w-enchant \ php56w-fpm \ php56w-gd \ php56w-intl \ php56w-ldap \ php56w-mbstring \ php56w-mcrypt \ php56w-mysqlnd \ php56w-opcache \ php56w-pdo \ php56w-pear \

php56w-pecl-xdebug \ php56w-pgsql \ php56w-phpdbg \ php56w-process \ php56w-soap \ php56w-tidy \ php56w-xml \ php56w-xmlrpc \ httpd-devel

4) 下記のファイルを確認します。

# vi /etc/httpd/conf.d/php.conf

以下の設定が記載されていない場合は末尾に記入します。

<IfModule prefork.c>

LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so

</IfModule>

<FilesMatch ¥.php$>

SetHandler application/x-httpd-php

</FilesMatch>

36

MediaInfo のインストール(OS バージョン 6.x の場合)

HTML5の動作に必要なMediaInfoのインストールを行います。

1) 下記URLからOSに合わせて3つライブラリをダウンロードします。(※本マニュアル

ではCentOS6.5を例に記載いたします。)

http://mediainfo.sourceforge.net/ja/Download/CentOS

2) ダウンロードしたrpmファイルをサーバ内に格納後、インストールを行います。

※下記rpmファイル名はダウンロードするモジュールにより異なります。

※インストール時にWarningが表示される事がありますが動作には支障ありません。

# rpm -i libzen-0.4.33.x86_64.CentOS_6.rpm

# rpm -i libmediainfo-0.7.87.x86_64.CentOS_6.rpm

# rpm -i mediainfo-0.7.87.x86_64.CentOS_6.rpm

3) インストール後、バージョンの確認をします。

# mediainfo /et --version MediaInfo Commnd line MediaInfoLib - v0.7.87

MediaInfo のインストール(OS バージョン 7.x の場合)

HTML5の動作に必要なMediaInfoのインストールを行います。

1) rpmファイルのインストールを行います。

※下記rpmファイル名はダウンロードするモジュールにより異なります。

※インストール時にWarningが表示される事がありますが動作には支障ありません。

37

#rpm -Uvh

https://mediaarea.net/download/binary/libzen0/0.4.37/libzen-0.

4.37.x86_64.CentOS_7.rpm

# rpm -Uvh

https://mediaarea.net/download/binary/libmediainfo0/0.7.98/lib mediainfo-0.7.98.x86_64.CentOS_7.rpm

# rpm -Uvh

https://mediaarea.net/download/binary/mediainfo/0.7.98/mediain fo-0.7.98.x86_64.CentOS_7.rpm

2) インストール後、バージョンの確認をします。

# mediainfo --version MediaInfo Command line, MediaInfoLib - v0.7.98

ffmpeg のインストール(Cent OS の場合)

HTML5の動作に必要なffmpegのインストールを行います。

インストールを行う作業ディレクトリを /tmp で行うことを前提にして記載します。

1) ffmpegのインストールに必要なパッケージをyumでインストールします。

# cd /tmp

# yum -y install automake gcc-c++ git libtool nasm pkgconfig zlib-devel glibc-static

2) ライブラリのリンクパス設定します。

# vi /etc/ld.so.conf 以下を追記します。

/usr/local/lib

追記後、以下のコマンドを実行して設定を反映します。

# ldconfig

3) ffmpegの起動に必要なYasmをコンパイルし、インストールします。

# git clone --depth 1 git://github.com/yasm/yasm.git

# cd yasm

# autoreconf -fiv

# ./configure --prefix="/usr/local"

# make

# make install

# cd /tmp

4) ffmpegの起動に必要なlibspeexをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/speex/speex-1.2rc2.tar.gz

# tar zxf speex-1.2rc2.tar.gz

# cd speex-1.2rc2

# ./configure --prefix="/usr/local" --enable-static --disable-shared

38

# make

# make install

# cd /tmp

5) ffmpegの起動に必要なlameをコンパイルし、インストールします。

# wget

http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99 .5.tar.gz

# tar zxf lame-3.99.5.tar.gz

# cd lame-3.99.5

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /tmp

6) ffmpegの起動に必要なx264をコンパイルし、インストールします。

# yum install git

# git clone git://git.videolan.org/x264

# cd x264

# git checkout 09705c0

# ./configure --prefix="/usr/local" --enable-static --disable-asm

# make

# make install

# cd /tmp

7) ffmpegの起動に必要なfdk-aacをコンパイルし、インストールします。

# git clone --depth 1

git://git.code.sf.net/p/opencore-amr/fdk-aac

# cd fdk-aac

# autoreconf -fiv

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /tmp

8) ffmpegの起動に必要なamrnbをコンパイルし、インストールします。

# yum install bzip2

# yum install unzip

# yum install patch

# wget

http://www.penguin.cz/~utx/ftp/amr/amrnb-11.0.0.0.tar.bz2

# tar jxf amrnb-11.0.0.0.tar.bz2

# cd amrnb-11.0.0.0

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /usr/local/include

# ln -s amrnb opencore-amrnb

# cd /usr/local/lib

# ln -s libamrnb.a libopencore-amrnb.a

39

# ln -s libamrnb.la libopencore-amrnb.la

# cd /tmp

9) ffmpegの起動に必要なamrwbをコンパイルし、インストールします。

# wget

http://www.penguin.cz/~utx/ftp/amr/amrwb-11.0.0.0.tar.bz2

# tar jxf amrwb-11.0.0.0.tar.bz2

# cd amrwb-11.0.0.0

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /usr/local/include

# ln -s amrwb opencore-amrwb

# cd /usr/local/lib

# ln -s libamrwb.a libopencore-amrwb.a

# ln -s libamrwb.la libopencore-amrwb.la

# cd /tmp

10) ffmpegの起動に必要なopusをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz

# tar zxf opus-1.1.tar.gz

# cd opus-1.1

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /tmp

11) ffmpegの起動に必要なliboggをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz

# tar xvfz libogg-1.3.2.tar.gz

# cd libogg-1.3.2

# ./configure --prefix="/usr/local" --enable-static

# make

# make install

# ldconfig

# cd /tmp

12) ffmpegの起動に必要なlibtheoraをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.

bz2

# tar jxf libtheora-1.1.1.tar.bz2

# cd libtheora-1.1.1

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /tmp

40

13) ffmpegの起動に必要なvo-aacencをコンパイルし、インストールします。

# wget -O vo-aacenc-0.1.3.tar.gz

http://downloads.sourceforge.net/project/opencore-amr/vo-aacen c/vo-aacenc-0.1.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fproj ects%2Fopencore-amr%2Ffiles%2Fvo-aacenc%2F&ts=1427971386&use_m irror=heanet

# tar zxf vo-aacenc-0.1.3.tar.gz

# cd vo-aacenc-0.1.3

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# ldconfig

# cd /tmp

14) ffmpegの起動に必要なvo-amrwbencをコンパイルし、インストールします。

# wget

http://downloads.sourceforge.net/project/opencore-amr/vo-amrwb enc/vo-amrwbenc-0.1.3.tar.gz

# tar zxf vo-amrwbenc-0.1.3.tar.gz

# cd vo-amrwbenc-0.1.3

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# ldconfig

# cd /tmp

15) ffmpegの起動に必要な libvorbisをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.

gz

# tar xvfz libvorbis-1.3.5.tar.gz

# cd libvorbis-1.3.5

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /tmp

16) ffmpegの起動に必要な libvpxをコンパイルし、インストールします。

【OSバージョン6.xの場合】

# yum -y install doxygen

# wget

https://github.com/webmproject/libvpx/archive/v1.4.0.tar.gz

# tar zxf v1.4.0.tar.gz

# cd libvpx-1.4.0/

#./configure --prefix="/usr/local" --disable-shared --enable-static

# make

# make install

# cd /tmp

#

41

【OSバージョン7.xの場合】

# git clone --branch=v1.4.0 --depth 1

https://chromium.googlesource.com/webm/libvpx.git

# cd libvpx

# ./configure --prefix="/usr/local" --enable-static --disable-shared

# make

# make install

# cd /tmp

17) ffmpegをインストールします。

# ldconfig

# wget http://ffmpeg.org/releases/ffmpeg-2.6.1.tar.bz2

# tar jxf ffmpeg-2.6.1.tar.bz2

# cd ffmpeg-2.6.1

# export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

# ./configure \

--prefix="/usr/local" \

--extra-cflags="-I/usr/include -I/usr/local/include --static"

\

--extra-ldflags="-L/usr/local/lib" \

--extra-libs="-static -L/usr/lib -L/lib -L/lib64 -L/usr/lib64 -L/usr/local/lib -L/usr/local/lib64" \

--enable-static \ --enable-gpl \ --enable-version3 \

--enable-runtime-cpudetect \ --enable-libmp3lame \

--enable-libx264 \ --enable-libspeex \ --enable-libvorbis \ --enable-libvpx \

--enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libvo-aacenc \ --enable-libvo-amrwbenc \ --enable-libtheora \ --enable-libopus \ --enable-zlib \ --disable-shared \ --disable-debug \ --disable-doc \ --disable-network \ --disable-ffplay \ --disable-ffprobe \ --disable-ffserver

# make

# make install

42 18) ffmpegの動作を確認します。

# ffmpeg

ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --prefix=/usr/local

--extra-cflags='-I/usr/include -I/usr/local/include --static' --extra-ldflags=-L/usr/local/lib --extra-libs='-static

-L/usr/lib -L/lib -L/lib64 -L/usr/lib64 -L/usr/local/lib -L/usr/local/lib64' --enable-static --enable-gpl

--enable-version3 --enable-runtime-cpudetect

--enable-libmp3lame --enable-libx264 --enable-libspeex

--enable-libvorbis --enable-libvpx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc

--enable-libvo-amrwbenc --enable-libtheora --enable-libopus --enable-zlib --disable-shared --disable-debug --disable-doc --disable-network --disable-ffplay --disable-ffprobe

--disable-ffserver

libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Hyper fast Audio and Video encoder

usage: ffmpeg [options] [[infile options] -i infile]...

{[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

ffmpeg のインストール(RedHat OS の場合)

HTML5の動作に必要なffmpegのインストールを行います。

インストールを行う作業ディレクトリを /tmp で行うことを前提にして記載します。

1) ffmpegのインストールに必要なパッケージをyumでインストールします。

# cd /tmp

# yum install -y automake gcc-c++ git libtool nasm pkgconfig zlib-devel

2) ライブラリのリンクパス設定します。

# vi /etc/ld.so.conf 以下を追記します。

/usr/local/lib

追記後、以下のコマンドを実行して設定を反映します。

# ldconfig

43

3) ffmpegの起動に必要なYasmをコンパイルし、インストールします。

# git clone https://github.com/yasm/yasm.git

# cd yasm

# ./autogen.sh

# ./configure

# make

# make install

# cd /tmp

4) ffmpegの起動に必要なlibspeexをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/speex/speex-1.2.0.tar.gz

# tar axvf speex-1.2.0.tar.gz

# cd speex-1.2.0

# ./configure \ --enable-static \ --disable-shared

# make

# make install

# cd /tmp

5) ffmpegの起動に必要なlameをコンパイルし、インストールします。

# curl -L -O

http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3 .99.5.tar.gz

# tar axvf lame-3.99.5.tar.gz

# cd lame-3.99.5

# ./configure \ --enable-static \ --disable-shared

# make

# make install

# cd /tmp

6) ffmpegの起動に必要なx264をコンパイルし、インストールします。

# yum install git

# git clone git://git.videolan.org/x264

# cd x264

# git checkout 09705c0

# ./configure \ --disable-asm \ --enable-static \ --disable-opencl

# make

# make install

# cd /tmp

7) autoconfをインストールします。

# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz

# tar xvfz autoconf-2.69.tar.gz

# cd autoconf-2.69

# ./configure --prefix=/usr

# make

44

# make install

# cd /tmp

8) ffmpegの起動に必要なautmakeをコンパイルし、インストールします。

# wget

http://archive.ubuntu.com/ubuntu/pool/main/a/automake-1.14/aut omake-1.14_1.14.1.orig.tar.xz

# tar axvf automake-1.14_1.14.1.orig.tar.xz

# cd automake-1.14.1

# ./configure

# make

# make install

# cd /tmp

9) ffmpegの起動に必要なfdk-aacをコンパイルし、インストールします。

# git clone https://github.com/Distrotech/fdk-aac.git

# cd fdk-aac

# ./configure \ --enable-static \ --disable-shared

# make

# make install

# cd /tmp

10) ffmpegの起動に必要なamrnbをコンパイルし、インストールします。

# yum install bzip2

# yum install unzip

# yum install patch

# wget

http://ftp.penguin.cz/pub/users/utx/amr/amrnb-11.0.0.0.tar.bz2

# tar axvf amrnb-11.0.0.0.tar.bz2

# cd amrnb-11.0.0.0

# ./configure \ --enable-static \ --disable-shared

# make

# make install

# cd /usr/local/include

# ln -s amrnb opencore-amrnb

# cd /usr/local/lib

# ln -s libamrnb.a libopencore-amrnb.a

# ln -s libamrnb.la libopencore-amrnb.la

# cd /tmp

11) ffmpegの起動に必要なamrwbをコンパイルし、インストールします。

# wget

http://ftp.penguin.cz/pub/users/utx/amr/amrwb-11.0.0.0.tar.bz2

# tar axvf amrwb-11.0.0.0.tar.bz2

# cd amrwb-11.0.0.0

# ./configure \ --enable-static \ --disable-shared

# make

# make install

45

# cd /usr/local/include

# ln -s amrwb opencore-amrwb

# cd /usr/local/lib

# ln -s libamrwb.a libopencore-amrwb.a

# ln -s libamrwb.la libopencore-amrwb.la

# cd /tmp

12) ffmpegの起動に必要なopusをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/opus/opus-1.1.4.tar.gz

# tar axvf opus-1.1.4.tar.gz

# cd opus-1.1.4

# ./configure \ --enable-static \ --disable-shared

# make

# make install

# cd /tmp

13) ffmpegの起動に必要なliboggをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz

# tar axvf libogg-1.3.2.tar.gz

# cd libogg-1.3.2

# ./configure \ --enable-static

# make

# make install

# ldconfig

# cd /tmp

14) ffmpegの起動に必要なlibtheoraをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.

bz2

# tar axvf libtheora-1.1.1.tar.bz2

# cd libtheora-1.1.1

# PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

# ./configure \ --enable-static \ --disable-shared \ -with-ogg=/usr/local

# make

# make install

# cd /tmp

15) ffmpegの起動に必要なvo-amrwbencをコンパイルし、インストールします。

# wget

https://downloads.sourceforge.net/project/opencore-amr/opencor e-amr/opencore-amr-0.1.4.tar.gz

# tar axvf opencore-amr-0.1.4.tar.gz

# cd opencore-amr-0.1.4

# ./configure \ --enable-static \

46 --disable-shared

# make

# make install

# ldconfig

# cd /tmp

ポイント

・wgetにてファイルを取得できない場合、ファイル名やバージョンの変更により、

ファイルを取得できないことがございます。ファイルを取得できない場合はサイト

(https://sourceforge.net/projects/opencore-amr/)より、最新版をダウンロードいた だき、サーバー上に展開してください。

※ファイル名 (例)vo-amrwbenc-0.1.x.tar.gz opencore-amr-0.1.x.tar.gz

・ffmpegインストール時に「ERROR: libvo_amrwbenc not found」と表示される 場合は以下の方法でvo-amrwbencをコンパイルしてください。

 # cd /tmp

 # wget

https://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz

 # tar axvf vo-amrwbenc-0.1.3.tar.gz

 # cd vo-amrwbenc-0.1.3

 # ./configure ¥

 --enable-static ¥

 --disable-shared

 # make

 # make install

 # ldconfig

 # cd /tmp

16) ffmpegの起動に必要な libvorbisをコンパイルし、インストールします。

# wget

http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.

gz

# tar axvf libvorbis-1.3.5.tar.gz

# cd libvorbis-1.3.5

# ./configure --prefix="/usr/local" \ --enable-static \

--disable-shared

# make

# make install

# cd /tmp

17) ffmpegの起動に必要な libvpxをコンパイルし、インストールします。

【OSバージョン6.xの場合】

# wget

https://github.com/webmproject/libvpx/archive/v1.4.0.tar.gz

# tar zxf v1.4.0.tar.gz

# cd libvpx-1.4.0/

ドキュメント内 CaLabo LMS v1.1 管理者マニュアル 第1版 (ページ 35-51)

関連したドキュメント