PHP Motion Idris Winarno
Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool
Repository Edit repository # vim /etc/apt/sources.list deb etch main contrib non-free deb-src etch main contrib non-free deb stable main deb stable main deb-src stable main deb-src stable main Note: untuk repo dan download beberapa source file gunakan proxy dengan perintah: # export
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 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 # 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 tgz # tar xzvf flvtool tgz # cd flvtool # 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 s 12 /home/idris/test.flv Installasi mencoder # apt-get install mencoder
Langkah installasi (6) Installasi phpmotion # cd /var/www # wget # 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