1 / 11

PHP Motion

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

melosa
Download Presentation

PHP Motion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PHP Motion Idris Winarno

  2. Requirement • Apache + PHP5 + MySQL • lame • ffmpeg • flvtool

  3. 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 main deb-src http://www.debian-multimedia.org stable main deb-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

  4. Langkah installasi (1) Installasi web server + php + mysql • # apt-get install apache2 php5 mysql-server Installasi compiler • # apt-get install gcc g++

  5. 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

  6. 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

  7. 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

  8. Langkah installasi (4) Installasi ruby sebagai compiler flvtool • # cd /usr/local/src • # apt-get install ruby

  9. 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

  10. 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

  11. 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

More Related