php motion idris winarno. requirement apache + php5 + mysql lame ffmpeg flvtool
TRANSCRIPT
![Page 1: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/1.jpg)
PHP Motion
Idris Winarno
![Page 2: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/2.jpg)
Requirement
• Apache + PHP5 + MySQL
• lame
• ffmpeg
• flvtool
![Page 3: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/3.jpg)
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
![Page 4: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/4.jpg)
Langkah installasi (1)
Installasi web server + php + mysql
• # apt-get install apache2 php5 mysql-server
Installasi compiler
• # apt-get install gcc g++
![Page 5: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/5.jpg)
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
![Page 6: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/6.jpg)
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
![Page 7: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/7.jpg)
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
![Page 8: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/8.jpg)
Langkah installasi (4)
Installasi ruby sebagai compiler flvtool
• # cd /usr/local/src
• # apt-get install ruby
![Page 9: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/9.jpg)
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
![Page 10: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/10.jpg)
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
![Page 11: PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool](https://reader036.vdocuments.mx/reader036/viewer/2022082422/56649e6a5503460f94b684ed/html5/thumbnails/11.jpg)
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