1. install LAMP 2. install the transcoding tool (1) install ffmpeg. Install yasm [css] viewplaincopyprint? Wgethttp: // www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gztar 1 install LAMP
II. install transcoding tools
(1) install ffmpeg.
Install yasm
[Css]View plaincopyprint?
- Wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
- Tar xzvf yasm-1.2.0.tar.gz
- Cd yasm-1.2.0
- ./Configure
- Make
- Make install
- Make distclean
- .~ /. Profile
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gztar xzvf yasm-1.2.0.tar.gzcd yasm-1.2.0./configuremakemake installmake distclean. ~/.profile
Install x264
[Css]View plaincopyprint?
- Git clone -- depth 1 git: // git.videolan.org/x264.git
- Cd x264
- ./Configure -- enable-static
- Make
- Make install
- Make distclean
git clone --depth 1 git://git.videolan.org/x264.gitcd x264./configure --enable-staticmakemake installmake distclean
Install fdk-aac
[Css]View plaincopyprint?
- Git clone -- depth 1 git: // github.com/mstorsjo/fdk-aac.git
- Cd fdk-aac
- Autoreconf-fiv
- ./Configure -- disable-shared
- Make
- Make install
- Make distclean
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.gitcd fdk-aacautoreconf -fiv./configure --disable-sharedmakemake installmake distclean
Install libmp 3lame
[Css]View plaincopyprint?
- Sudo apt-get install nasm
- Wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
- Tar xzvf lame-3.99.5.tar.gz
- Cd lame-3.99.5
- ./Configure -- enable-nasm -- disable-shared
- Make
- Make install
- Make distclean
sudo apt-get install nasmwget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gztar xzvf lame-3.99.5.tar.gzcd lame-3.99.5./configure --enable-nasm --disable-sharedmakemake installmake distclean
Install libopus
[Css]View plaincopyprint?
- Wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
- Tar xzvf opus-1.0.3.tar.gz
- Cd ops-1.0.3
- ./Configure -- disable-shared
- Make
- Make install
- Make distclean
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gztar xzvf opus-1.0.3.tar.gzcd opus-1.0.3./configure --disable-sharedmakemake installmake distclean
Install libvpx
[Css]View plaincopyprint?
- Git clone -- depth 1 http://git.chromium.org/webm/libvpx.git
- Cd libvpx
- ./Configure -- prefix = "/opt/ffmpeg_sources/ffmpeg_build" -- disable-examples
- Make
- Make install
- Make clean
git clone --depth 1 http://git.chromium.org/webm/libvpx.gitcd libvpx./configure --prefix="/opt/ffmpeg_sources/ffmpeg_build" --disable-examplesmakemake installmake clean
Install other
[Css]View plaincopyprint?
- The yum install libx11-dev libxext-dev libXfixes-dev libvorbis-dev libtheora-dev libass-dev
yum install libx11-dev libxext-dev libXfixes-dev libvorbis-dev libtheora-dev libass-dev
Install ffmpeg
[Css]View plaincopyprint?
- Git clone -- depth 1 git: // source.ffmpeg.org/ffmpeg
- Cd ffmpeg
- . /Configure -- extra-libs = "-ldl" -- enable-gpl -- enable-libass-enable-libfdk-aac -- enable-libmp3lame -- enable-libopus -- enable-libtheora -- enable-libvorbis -- enable-libvpx -- enable-libx264 -- enable-nonfree -- enable-x11grab
- Make
- Make install
- Make distclean
git clone --depth 1 git://source.ffmpeg.org/ffmpegcd ffmpeg./configure --extra-libs="-ldl" --enable-gpl --enable-libass –enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grabmakemake installmake distclean
(2) install mencoder and flvtool2
[Css]View plaincopyprint?
- Yum clean all
- Rpm-Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
- Yum install mencoder flvtool2
yum clean allrpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpmyum install mencoder flvtool2
(3) Create an eduVMS database
[Css]View plaincopyprint?
- Mysql-uroot-p;
- Create database eduVMS;
mysql -uroot -p;create database eduVMS;
(4) copy the phpmotion source file to the apache Directory.
(5) modify the directory permissions of the phpmotion file and its subfiles.
[Css]View plaincopyprint?
- Chown apache: apache-R phpmotion;
chown apache:apache -R phpmotion;
(6) install and configure PHPshield
1. check the php version.
[Css]View plaincopyprint?
- Php-v
Php -v
2. view the system architecture
[Plain]View plaincopyprint?
- Uname-I
uname -i
3. view the extension directory of php in the system
[Plain]View plaincopyprint?
- Php-I | grep extension_dir
php -i|grep extension_dir
The output is similar to: extension_dir =>/usr/lib64/php/modules =>/usr/lib64/php/modules
4. CD to the output Directory
[Plain]View plaincopyprint?
- Cd/usr/lib64/php/modules
cd /usr/lib64/php/modules
5. copy the system architecture directory and corresponding version files in phpmotion/phpshield to the current directory. Remove the suffix. lin. For example:
[Plain]View plaincopyprint?
- Cp/var/www/html/phpmotion/phpshield/Linux_x86-64/ixed.5.3.lin./ixed.5.3
cp /var/www/html/phpmotion/phpshield/Linux_x86-64/ixed.5.3.lin ./ixed.5.3
6. run the php-I | grep php. ini command to find the php. ini file, edit the php. ini file, and add extension = ixed.5.3.
7. restart apache
[Plain]View plaincopyprint?
- /Etc/init. d/httpd restart
/etc/init.d/httpd restart
(7) configure virtual hosts
Edit the/etc/httpd/conf/httpd. conf file.
[Plain]View plaincopyprint?
- Vim/etc/httpd/conf/httpd. conf
vim /etc/httpd/conf/httpd.conf
Modify as follows:
1. add the IP address and port number of the apache listener: add Listen 90 under Listen 80
2. Add file directory settings
[Plain]View plaincopyprint?
-
- Options shortdes ExecCGI FollowSymLinks
- AllowOverride All
- Order allow, deny
- Allow from all
Options Includes ExecCGI FollowSymLinks AllowOverride All Order allow,deny Allow from all
3. add a VM
[Plain]View plaincopyprint?
-
- DocumentRoot "/var/www/html/phpmotion"
- ServerName www.eduvideo.com
DocumentRoot "/var/www/html/phpmotion"ServerName www.eduvideo.com
4. configure cgi. Remove the AddHandler cgi-script. cgi annotation.
5. disable SELinux.
[Plain]View plaincopyprint?
- Setenforce 0
setenforce 0
6. restart apache
[Plain]View plaincopyprint?
- /Etc/init. d/httpd restart
/etc/init.d/httpd restart
(8) copy all files in/phpmotion/cgi-bin to/var/www/cgi-bin and change the permission to 755
[Plain]View plaincopyprint?
- Cp-r */var/www/html/phpmotion/cgi-bin/*/var/www/cgi-bin
- Chmod 755-R/var/www/cgi-bin /*
cp -r * /var/www/html/phpmotion/cgi-bin/* /var/www/cgi-binchmod 755 -R /var/www/cgi-bin/*
(9) use a browser to enter the system for settings
1. enter ip: port in the browser. Example: 10.10.90.210: 90
2. click the continue button to go to step 2. If PHP enable_dl is set to a cross, modify php. ini and set enable_dl to On.
[Plain]View plaincopyprint?
- Vim/etc/php. ini
vim /etc/php.ini
After the modification, restart apache, refresh the browser, and click "continue.
3. click "continue" to configure the database information:
4. click "continue. Configure system information.
5. click "continue" to delete the setup directory under the phpmotion directory.
[Plain]View plaincopyprint?
- Rm-rf/var/www/html/phpmotion/setup