Pernah buka situ youtube? saya yakin hampir semua kita pernah. Kali ini, saya akan mencoba menginstall PHPmotion, yang merupakan opensource berbasis PHP dan PERL sebagai scripting engine dan data storage menggunakan mysql (bisa juga dengan server database lainnya) serta beberapa tool untuk videoconvert dan videocapture seperti lame, ogg vorbis codec, mencoder, flvtool dan ffmpeg.dan java, untuk membuat sebuah situs yang hampir mirip dengan youtube, di opensuse 10.1.
Agar PHPMotion kita berjalan dengan baik, maka di webserver harus sudah terinstall ffmpegg dan kawan kawan, serta edit konfigurasi di php.ini:
open_basedir = (kosongkan) upload_max_filesize = 100M post_max_size = 100M max_execution_time = 1500 session.gc_maxlifetime = 14000 safe_mode = off enable_dl = On short_open_tag = on
Instalasi ffmpeg dan kawan kawan.
buat direktori untuk tempat kita bekerja
mkdir /usr/src/phpmotion
cd /usr/src/phpmotion
yast2 –i subversion ruby ncurses-devel unzip
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2
wget http://downloads.xiph.org/releases/theora/libtheora-1.0beta3.tar.gz
ekstrak semua paket tersebut
cd /usr/src/phpmotion tar zxvf lame-3.97.tar.gz tar zxvf libogg-1.1.3.tar.gz tar zxvf libvorbis-1.2.0.tar.gz tar zxvf flvtool2-1.0.6.tgz tar jxvf essential-20071007.tar.bz2 tar jxvf ffmpeg-php-0.5.0.tbz2 bzip2 -cd amrnb-7.0.0.2.tar.bz2 | tar xvf - bzip2 -cd amrwb-7.0.0.3.tar.bz2 | tar xvf - tar zxvf libtheora-1.0beta3.tar.gz
buat folder untuk codec
mkdir /usr/local/lib/codecs/
pindahkan codec yang sudah di download ke folder codec
mv /usr/local/src/phpmotion/essential-20071007/* /usr/local/lib/codecs/
chmod agar codec bisa di jalankan
chmod -R 755 /usr/local/lib/codecs/
buat folder temp untuk codec
mkdir /usr/local/src/tmp chmod 777 /usr/local/src/tmp export TMPDIR=/usr/local/src/tmp
Install lame
cd /usr/local/src/phpmotion/lame-3.97 ./configure make && make install
Install libogg
cd /usr/local/src/phpmotion/libogg-1.1.3 ./configure make && make install
Install libvorbis
cd /usr/local/src/phpmotion/libvorbis-1.2.0 ./configure make && make install
Install flvtool2
cd /usr/local/src/phpmotion/flvtool2-1.0.6/ ruby setup.rb config ruby setup.rb setup ruby setup.rb install
Install mplayer
cd /usr/local/src/phpmotion svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer cd mplayer ./configure –-enable-jpeg make && make install
Install AMR (untuk konversi 3gp)
cd /usr/local/src/phpmotion/amrnb-7.0.0.2 ./configure make && make install cd ../amrwb-7.0.0.3 ./configure make && make install
Install libtheora (for ogg video encoding)
cd /usr/local/src/phpmotion/libtheora-1.0beta3 ./configure make && make install
Install ffmpeg
cd /usr/src/phpmotion svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd ffmpeg ./configure –-enable-libmp3lame –-enable-libvorbis -–disable-mmx –enable-shared –enable-libamr-nb \ -–enable-libtheora –enable-nonfree make && make install ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52 ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52 ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51 ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49 ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0 ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51 ln -s /usr/local/lib/libamrnb.so.2 /usr/lib/libamrnb.so.2
Install ffmpeg-php
cd /usr/src/phpmotion/ffmpeg-php-0.5.0 phpize ./configure make && make install
Buat user di mysql untuk phpmotion
mysqladmin -u root -p create phpmotion echo "GRANT ALL PRIVILEGES on phpmotion.* to phpmotionuser@localhost identified by 'passwordnya'" | mysql -u root -p mysqladmin -u root -p reload
Upload PHPMotion ke web server
download phpmotion di http://www.phpmotion.com
kemudian ekstrak, setelah itu upload dengan ftp client ke server yang telah kita konfigurasi diatas. (Note: Penting, sebaiknya gunakan format binary dan untuk direktori berikut :setup, pictures, classes, temp, logs, addons, uploads, chmodnya harus 777, sedangkan cgi-bin harus 755). Setelah di upload, buka browser. http://ip_server/setup. Isikan fill dengan benar dan tepat. Sekian.
2. Klik Kanan, Kemudian Copy
3. Paste Kode HTML ke Web-mu
RSS Feed
Twitter
Dipostkan dalam
Tags: 








pak, install phpmotion itu harus di opensuse ya pak….
Tak harus kog, yang penting paket paket pendukungnya ada. Terus berkarya..
pak ini saya udah install php motion tp pas waktu upload tidak terjadi apa apa alias meneng bae
Uploadnya didirektori mana?
pak, pada saat menginstall lame dan install libogg, kok gak terjadi apa – apa pak….
dan buat user yg di mysql gak mau pak….
itu yg kami bingungkan…..
by: roby, dika dan agung…
Pengennya ada kejadian apa?