PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool.
-
Upload
myles-harrington -
Category
Documents
-
view
221 -
download
0
Transcript of PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool.
PHP Motion
Idris Winarno
Requirement
• Apache + PHP5 + MySQL
• lame
• ffmpeg
• flvtool
Repository
• Edit repository# vim /etc/apt/sources.list
deb http://kebo.vlsm.org/debian etch main contrib non-free
deb-src http://kebo.vlsm.org/debian etch main contrib non-free
deb http://www.debian-multimedia.org stable main
deb http://kebo.vlsm.org/debian-multimedia stable maindeb-src http://www.debian-multimedia.org stable maindeb-src http://kebo.vlsm.org/debian-multimedia stable main
Note: untuk repo www.debian-multimedia.org dan download beberapa source file gunakan proxy dengan perintah:# export http://(user):(pass)@proxy.eepis-its.edu:3128
Langkah installasi (1)
Installasi web server + php + mysql
• # apt-get install apache2 php5 mysql-server
Installasi compiler
• # apt-get install gcc g++
Langkah installasi (2)
Installasi lame• # cd /usr/local/src
• # wget http://nchc.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
• # tar xzvf lame-3.97.tar.gz
• # cd lame-3.97
• # ./configure --enable-shared --prefix=/usr
• # make
• # make install
Langkah installasi (3)
Installasi plugin ffmpeg• # apt-get install ffmpeg libavcodec0d libavformat0d libavifile-0.7c2
libpostproc0d libasound2-plugins avifile-player avifile-utils avifile-mad-plugin avifile-mjpeg-plugin avifile-vorbis-plugin
• # cd /usr/local/src
• # apt-get source ffmpeg
Pastikan rules pada source ffmpeg terdapat --enable-libmp3lame
• # cd ffmpegcvs-20070329
• # vim debian/rules
• # dpkg-buildpackage
Langkah installasi (3) cont’d
Jika dpkg-buildpackage error!!! Install pendukungnya dahulu
• # apt-get install build-essential debhelper liblame-dev libvorbis-dev libimlib2-dev libfaad-dev libfaac-dev libdts-dev libxvidcore4-dev texi2html dpatch libx264-dev libtheora-dev liba52-dev libgsm1-dev ccache libxvmc-dev xlibs-static-dev
• # dpkg-buildpackage
Langkah installasi (4)
Installasi ruby sebagai compiler flvtool
• # cd /usr/local/src
• # apt-get install ruby
Langkah installasi (4) cont’d
Installasi flvtool• # wget http://rubyforge.org/frs/download.php/17497/flvtool2-
1.0.6.tgz
• # tar xzvf flvtool2-1.0.6.tgz
• # cd flvtool2-1.0.6
• # ruby setup.rb config
• # ruby setup.rb setup
• # ruby setup.rb install
Langkah installasi (5)
Uji coba compresi ffmpeg• # ffmpeg -i /home/idris/test.avi –s 320x240 -ar 44100 -s 12
/home/idris/test.flv
Installasi mencoder• # apt-get install mencoder
Langkah installasi (6)
Installasi phpmotion• # cd /var/www• # wget http://downloads.phpmotion.com/V2/PHPMOTION_PHP5.zip • # mkdir phpmotion• # cd phpmotion• # mv /var/www/PHPMOTION_PHP5.zip /var/www/phpmotion• # unzip PHPMOTION_PHP5.zip• # chmod 777 –R /var/www/phpmotion
Untuk proses installasi buka web browser dengan alamat http://localhost/phpmotion/setup