{"id":146,"date":"2011-02-09T15:51:23","date_gmt":"2011-02-09T15:51:23","guid":{"rendered":"http:\/\/gigihfordanama.wordpress.com\/?p=146"},"modified":"2012-08-08T00:14:11","modified_gmt":"2012-08-08T00:14:11","slug":"how-to-build-your-own-youtube-server-using-phpmotion-5-phpshield-ffmpeg-php5-on-freebsd","status":"publish","type":"post","link":"https:\/\/dosen.unila.ac.id\/gigih\/2011\/02\/09\/how-to-build-your-own-youtube-server-using-phpmotion-5-phpshield-ffmpeg-php5-on-freebsd\/","title":{"rendered":"HOW To Build Your Own YouTube Server Using PHPMOTION 5 , phpshield FFMPEG , PHP5 on FREEBSD"},"content":{"rendered":"<p>So Many people\u00a0 Looking Tutorial How To Develop Their Own Video streaming Server Like You tube already done. This time i&#8217;ll tell you how to make it&#8217;s happen, we&#8217;ll using FreeBSD 7.0 as OS.<\/p>\n<p>Langkah pertama silahkan downlod PHPMOTION5 dari website Official PHPMOTION, atau dari link ini <a href=\"http:\/\/unilanet.unila.ac.id\/%7Egigih\/data\/PHPMOTION-PHP5\/PHPMOTION_PHP5.zip\">http:\/\/unilanet.unila.ac.id\/~gigih\/data\/PHPMOTION-PHP5\/PHPMOTION_PHP5.zip<\/a><\/p>\n<p>Downlod phpshield library untuk freeBSD dialamat<\/p>\n<p><a href=\"http:\/\/unilanet.unila.ac.id\/%7Egigih\/data\/PHPMOTION-PHP5\/phpshield.5.2.fre\">http:\/\/unilanet.unila.ac.id\/~gigih\/data\/PHPMOTION-PHP5\/phpshield.5.2.fre <\/a>Atau dari Official phpshieldnya langsung<\/p>\n<p>Asumsi saya Anda sudah berhasil menginstall Apache 2.2 dan Mysql 5 di PC anda, dan saya tidak membahas langkah2 instalasi Apache,Mysql,PHP5, PHP5-EXTENSION<!--more-->Setelah anda berhasil mendownlod source PHPMOTION silahkan ekstrak dilokasi directory html anda. Silahkan anda buka browser dan masukkan alamat<\/p>\n<p><strong>http:\/\/IP-SERVER-ANDA\/PHPMOTION\/<\/strong><\/p>\n<p>Anda pasti akan mendapati pesan error sebagai berikut<\/p>\n<blockquote><p><em>Warning: dl() [function.dl]: Temporary module name should contain only filename in \/usr\/hosting\/blog\/web\/PHPMOTION\/classes\/config.php on line 2<br \/>\nPHP script \/usr\/hosting\/blog\/web\/PHPMOTION\/classes\/config.php is protected by phpSHIELD and requires the phpSHIELD loader phpshield.5.2.fre. The phpSHIELD loader has not been installed, or is not installed correctly. Please visit the phpSHIELD php encoder site to download required loader.<\/em><\/p><\/blockquote>\n<p>Nah Kalo ada warning begini artinya anda belum mengaktifkan atau mengkonfigurasi library phpshield secara benar.<br \/>\nAgar warning ini tidak tampil anda perlu mengikuti langkah berikut<\/p>\n<ul>\n<li>PHP5 Harus diinstall dengan mode <strong>ENABLE_DEBUG = NO<\/strong>, silahkan uncheck Enable debug pada saat instalasi PHP5\u00a0\u00a0 asumsi saya anda menginstall PHP5 via port Collection\u00a0\u00a0 jika anda mengcompile dengan mode <strong>ENABLE_DEBUG= YES<\/strong>, maka akan timbul warning di browser sebagai berikut<\/li>\n<\/ul>\n<blockquote><p><em>Warning: dl() [function.dl]: phpSHIELD: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=0 PHP compiled with module API=20060613,<br \/>\ndebug=1, thread-safety=0 These options need to match in \/usr\/hosting\/blog\/web\/PHPMOTION\/classes\/config.php<br \/>\non line 2 PHP script \/usr\/hosting\/blog\/web\/PHPMOTION\/classes\/config.php is protected by phpSHIELD<br \/>\nand requires the phpSHIELD loader phpshield.5.2.fre. The phpSHIELD loader has not been installed,<br \/>\nor is not installed correctly. Please visit the phpSHIELD php encoder site to download required loader.<\/em><\/p><\/blockquote>\n<blockquote><p>\u2502\u00a0 [X] CLI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Build CLI version<br \/>\n\u2502 \u2502[X] CGI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Build CGI version<br \/>\n\u2502 \u2502[X] APACHE\u00a0\u00a0\u00a0\u00a0 Build Apache module<br \/>\n<em> <strong>\u2502 \u2502[ ] DEBUG\u00a0\u00a0\u00a0\u00a0\u00a0 Enable debug <\/strong> <\/em><br \/>\n\u2502 \u2502[X] SUHOSIN\u00a0\u00a0\u00a0 Enable Suhosin protection system (not for jails)<br \/>\n\u2502 \u2502[X] MULTIBYTE\u00a0 Enable zend multibyte support<br \/>\n\u2502 \u2502[ ] IPV6\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Enable ipv6 support<br \/>\n\u2502 \u2502[ ] MAILHEAD\u00a0\u00a0 Enable mail header patch<br \/>\n\u2502 \u2502[X] REDIRECT\u00a0\u00a0 Enable force-cgi-redirect support (CGI only)<br \/>\n\u2502 \u2502[ ] DISCARD\u00a0\u00a0\u00a0 Enable discard-path support (CGI only)<br \/>\n\u2502 \u2502[X] FASTCGI\u00a0\u00a0\u00a0 Enable fastcgi support (CGI only)<br \/>\n\u2502 \u2502[X] PATHINFO\u00a0\u00a0 Enable path-info-check support (CGI only)<br \/>\n\u2502 \u2502<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<ul>\n<li>Pastikan file php.ini di \/usr\/local\/etc\/php.ini\u00a0 enable_dl=On<\/li>\n<\/ul>\n<ul>\n<li>Copi file\u00a0 phpshield.5.2.fre yang sudah didownload tadi ke direktori letak PHP5-EXTENSION berkumpul,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Default berada di folder<\/li>\n<\/ul>\n<blockquote><p><em><strong>blog# pwd<br \/>\n\/usr\/local\/lib\/php\/20060613<br \/>\nblog# ll<\/strong><\/em><br \/>\n<em>total 2882<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 24730 Mar 31 17:55 bz2.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 29934 Mar 31 17:55 calendar.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 14341 Mar 31 17:56 ctype.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 64993 Mar 31 17:56 curl.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0 166332 Mar 31 17:58 dom.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 47700 Mar 31 18:56 ffmpeg.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 36686 Mar 31 17:58 filter.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 46866 Mar 31 17:58 ftp.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0 375696 Mar 31 17:59 gd.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 15488 Mar 31 17:59 gettext.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0 190237 Mar 31 18:00 hash.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 38077 Mar 31 18:00 iconv.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 27177 Mar 31 18:00 json.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 54530 Mar 31 18:01 mysql.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0 167518 Mar 31 17:57 pcre.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 98943 Mar 31 18:01 pdo.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0 443637 Mar 31 18:02 pdo_sqlite.so<br \/>\n<strong>-rw-r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 57644 Mar 31 18:24 phpshield.5.2.fre<\/strong><br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 25531 Mar 31 18:02 posix.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 58435 Mar 31 18:02 session.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 42942 Mar 31 17:57 simplexml.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 28741 Mar 31 18:03 snmp.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0 178178 Mar 31 17:57 spl.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0 367653 Mar 31 18:03 sqlite.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 19318 Mar 31 18:04 tokenizer.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 45596 Mar 31 18:04 xml.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 33696 Mar 31 18:04 xmlreader.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 32389 Mar 31 18:05 xmlwriter.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 80516 Mar 31 18:05 zip.so<br \/>\n-r&#8211;r&#8211;r&#8211;\u00a0 1 root\u00a0 wheel\u00a0\u00a0 33805 Mar 31 18:05 zlib.so<\/em><br \/>\n<em><strong>blog#<\/strong><\/em><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<ul>\n<li>kemudian modif file <strong>\/usr\/local\/etc\/php\/extensions.ini<\/strong><\/li>\n<\/ul>\n<blockquote><p>Tambahkan modul untuk meload phpshield library<br \/>\n<strong><br \/>\n<\/strong><em><strong>extension=phpshield.5.2.fre<\/strong><\/p>\n<p>extension=bz2.so<br \/>\nextension=calendar.so<br \/>\nextension=ctype.so<br \/>\nextension=curl.so<br \/>\nextension=pcre.so<br \/>\nextension=simplexml.so<br \/>\nextension=spl.so<br \/>\nextension=dom.so<br \/>\nextension=filter.so<br \/>\nextension=ftp.so<br \/>\nextension=gd.so<br \/>\nextension=gettext.so<\/em><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<ul>\n<li>Pastikan ketika mengetikkan perintah php -v\u00a0 tidak ada warning Error<\/li>\n<\/ul>\n<blockquote><p><em><strong>blog# php -v<\/strong><\/em><br \/>\n<em>PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 31 2008 17:15:26)<br \/>\nCopyright (c) 1997-2007 The PHP Group<br \/>\nZend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies<\/em><br \/>\n<em><strong>blog#<\/strong><\/em><\/p><\/blockquote>\n<ul>\n<li>Selanjutnya Reload apache anda dengan mengetikkan perintah <em><strong>\/usr\/local\/etc\/rc.d\/apache22 reload<\/strong><\/em><\/li>\n<\/ul>\n<ul>\n<li>Langkah selanjutnya adalah melengkapi Server kita dengan berbagai macam Tools Multimedia<\/li>\n<\/ul>\n<blockquote>\n<blockquote><p><strong>Install FFMPEG<\/strong><br \/>\n<strong>blog# <\/strong><em>cd \/usr\/ports\/multimedia\/ffmpeg<\/em><br \/>\n<strong>blog#<\/strong> <em>make &amp;&amp; make install clean<\/em><\/p><\/blockquote>\n<\/blockquote>\n<blockquote>\n<blockquote><p><strong>FFMPEG-PHP<\/strong><\/p>\n<p><strong>blog#<\/strong> <em>cd \/usr\/ports\/graphics\/php5-ffmpeg<\/em><br \/>\n<strong>blog#<\/strong> <em>make &amp;&amp; make install clean<\/em><\/p><\/blockquote>\n<\/blockquote>\n<blockquote>\n<blockquote><p><strong>FLVTOOL2<\/strong><br \/>\n<strong>blog#<em> <\/em><\/strong><em>cd \/usr\/ports\/multimedia\/ruby-flvtool2<\/em><br \/>\n<strong>blog#<\/strong> <em>make &amp;&amp; make install clean<\/em><\/p><\/blockquote>\n<\/blockquote>\n<blockquote>\n<blockquote><p><strong>MPLYER<\/strong><br \/>\n<strong>blog#<\/strong> <em>cd \/usr\/ports\/multimedia\/mplayer<\/em><br \/>\n<strong>blog#<\/strong> <em>make &amp;&amp; make install clean<\/em><\/p><\/blockquote>\n<\/blockquote>\n<blockquote>\n<blockquote><p><strong>MENCODER<\/strong><br \/>\n<strong>blog# <\/strong><em>cd \/usr\/ports\/multimedia\/mencoder<\/em><br \/>\n<strong>blog# <\/strong><em>make &amp;&amp; make install<\/em><\/p><\/blockquote>\n<\/blockquote>\n<blockquote>\n<blockquote><p><strong>ALL PHP requirements setout on our website<\/strong><br \/>\n<strong>blog# <\/strong><em>cd \/usr\/ports\/lang\/php5-extensions\/<\/em><br \/>\n<strong>blog# <\/strong><em>make &amp;&amp; make install<\/em><\/p><\/blockquote>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<ul>\n<li>Proses instalasi mencoder dan mplayer akan memakan waktu cukup lama, bergantung dengan speed koneksi internet anda, <strong>Siapkan Kopi dan Cemilan secukupnya sembari proses instalasi berjalan sukses<\/strong><\/li>\n<\/ul>\n<ul>\n<li>Setelah semua program sukses terinstall, buka lagi Web PHPMOTION <strong>http:\/\/IP-SERVER-ANDA\/PHPMOTION\/siteadmin\/tester.php<\/strong><\/li>\n<\/ul>\n<ul>\n<li>Pastikan semua tulisan berada pada posisi OK dan berwarna <em>Hijau<\/em>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Selanjutnya anda perlu membuat database mysql untuk si PHPMOTION ini, misal saya mau kasih contoh nama databasenya phpmotion maka yang saya lakukan adalah sbb<\/li>\n<\/ul>\n<blockquote><p><em><strong>blog# mysql -u gigih -p<\/strong><br \/>\nEnter password:<br \/>\nWelcome to the MySQL monitor.\u00a0 Commands end with ; or g.<br \/>\nYour MySQL connection id is 16608<br \/>\nServer version: 5.0.45 FreeBSD port: mysql-server-5.0.45_1<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;h&#8217; for help. Type &#8216;c&#8217; to clear the buffer.<\/p>\n<p>mysql&gt; create database phpmotion;<br \/>\nQuery OK, 1 row affected (0.00 sec)<\/p>\n<p>mysql&gt;quit<\/em><\/p><\/blockquote>\n<ul>\n<li>Masuk ke direktori class PHPMOTION<\/li>\n<\/ul>\n<blockquote><p><em><strong>blog# pwd<\/strong><\/em><br \/>\n<em>\/usr\/hosting\/PHPMOTION\/classes<br \/>\nblog# ll<br \/>\ntotal 292<br \/>\n1317 Mar 31 19:24 ads.inc.php<br \/>\n3663 Apr\u00a0 1 09:45 config.inc.php<br \/>\n251494 Mar 31 19:24 config.php<br \/>\n1565 Mar 31 19:24 login_check.php<br \/>\n1320 Mar 31 19:24 menu.php<br \/>\n1433 Mar 31 19:24 menu_groups.php<br \/>\n156 Mar 31 19:24 sessions.php<br \/>\n5839 Apr\u00a0 1 13:03 settings.php<\/em><br \/>\n<em><strong>blog#<\/strong><\/em><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<blockquote><p><strong>Edit file config.inc.php<\/strong><\/p><\/blockquote>\n<blockquote><p>\/\/Your database settings<br \/>\n$config[&#8220;hostname&#8221;]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8216;<strong>localhost<\/strong>&#8216;; \/\/ example &#8216;localhost&#8217;;<br \/>\n$config[&#8220;dbusername&#8221;]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8216;<strong>root<\/strong>&#8216;;\u00a0\u00a0\u00a0\u00a0 \/\/ example &#8216;myusername&#8217;;<br \/>\n$config[&#8220;dbpassword&#8221;]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8216;<strong>Passwordmysqlanda<\/strong>&#8216;;\u00a0\u00a0 \/\/ example &#8216;mypassword&#8217;;<br \/>\n$config[&#8220;dbname&#8221;]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8216;<strong>phpmotion<\/strong>&#8216;;\u00a0\u00a0\u00a0 \/\/ example &#8216;mydatabase&#8217;;<\/p>\n<p>\/\/To debug ffmpeg set $debugmode to 1; (default is 0)<br \/>\n<strong>$debugmode = 1 ;<\/strong><br \/>\n\/\/You can also create a log file to help with debug<br \/>\n<em><strong>$log_encoder\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8220;yes&#8221;;\u00a0 \/\/change to &#8220;yes&#8221; to create a log file <\/strong><strong> in \/logs)<\/strong><\/em><br \/>\n\/\/path to php<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n<strong>$path_to_php\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8220;\/usr\/local\/bin\/php&#8221;;<br \/>\n<\/strong><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<blockquote><p>Pastikan <strong>$ debugmode=1 dan $log_encoder = &#8220;YES&#8221;<\/strong> untuk memudahkan penelusuran terhadap kesalahan dan kejadian selama system berjalan, namun jika dirasakan sistem sudah jalan dengan normal sebaiknya kedua statement ini dihilangkan saja<\/p><\/blockquote>\n<blockquote><p>Contoh file log\u00a0 yang dibuat oleh sistem<\/p><\/blockquote>\n<blockquote><p><strong>blog# ll<\/strong><br \/>\n<em>total 3368<br \/>\n-rw-r&#8211;r&#8211;\u00a0 1 www\u00a0 www\u00a0 1074900 Apr\u00a0 1 09:43 logfile.rtf<\/em><br \/>\n<strong>blog#<\/strong><\/p><\/blockquote>\n<blockquote><\/blockquote>\n<blockquote><p>Contoh Log yg muncul karena program mencoder belum terinstall<\/p><\/blockquote>\n<blockquote><p><em>PHPmotion Convertor.php debug<br \/>\nCLI for convertor OK<br \/>\n31-03-08<br \/>\n=====================================================================<br \/>\nPHPmotion debug<br \/>\n\/usr\/bin\/mencoder \/usr\/hosting\/PHPMOTION\/uploads\/avi\/TGhilFdPrfVE0AmZrjRo.avi -o \/usr\/hosting\/PHPMOTION\/uploads\/TGhilFdPrfVE0AmZrjRo.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=450:400 -srate 22050<br \/>\nCommand was executed.See rest of log for output details<br \/>\n====================================================================<br \/>\nPHPmotion debug<br \/>\n\/usr\/local\/bin\/flvtool2 -U \/usr\/hosting\/PHPMOTION\/uploads\/TGhilFdPrfVE0AmZrjRo.flv<br \/>\nCommand was executed.See rest of log for output details<\/p>\n<p>Date: 31-03-08<br \/>\nSTEP 1 &#8211; OUTPUT<br \/>\n\/usr\/bin\/mencoder \/usr\/hosting\/PHPMOTION\/uploads\/avi\/TGhilFdPrfVE0AmZrjRo.avi -o \/usr\/hosting\/PHPMOTION\/uploads\/TGhilFdPrfVE0AmZrjRo.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=450:400 -srate 22050<br \/>\n\/usr\/bin\/mencoder: not found<\/em><\/p><\/blockquote>\n<p><strong>Log yang normal contohnya adalah sebagai berikut<\/strong><\/p>\n<blockquote><p>PHPmotion Convertor.php debug<br \/>\nCLI for convertor OK<br \/>\n01-04-08<br \/>\n===================================================================<br \/>\nCLI for convertor OK<br \/>\n01-04-08<br \/>\n===================================================================<br \/>\n\/usr\/local\/bin\/mencoder \/usr\/hosting\/PHPMOTION\/uploads\/avi\/pFHQjZGhjCJITcaZzi3V.avi -o<br \/>\n\/usr\/hosting\/PHPMOTION\/uploads\/pFHQjZGhjCJITcaZzi3V.flv -of lavf -oac mp3lame -lameopts abr:br=56<br \/>\n-ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3<br \/>\n-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -vf scale=450:400 -srate 22050<br \/>\nCommand was executed.See rest of log for output details<br \/>\n===================================================================<br \/>\n\/usr\/local\/bin\/flvtool2 -U \/usr\/hosting\/PHPMOTION\/uploads\/pFHQjZGhjCJITcaZzi3V.flv<br \/>\nCommand was executed.See rest of log for output details<br \/>\n=================================================================<br \/>\nFFMPEG-PHP &#8211; check &#8211; Video Duration = 00:02:44<br \/>\n=================================================================<br \/>\nPHPmotion debug<br \/>\n\/usr\/local\/bin\/ffmpeg -i \/usr\/hosting\/PHPMOTION\/uploads\/pFHQjZGhjCJITcaZzi3V.flv -ss 00:01:22 -t 00:00:01<br \/>\n-s 120&#215;90 -r 1 -f mjpeg \/usr\/hosting\/PHPMOTION\/uploads\/thumbs\/pFHQjZGhjCJITcaZzi3V.jpg<br \/>\nCommand was executed.See rest of log for output details<br \/>\n================================================================<\/p>\n<p>Date: 01-04-08<br \/>\nSTEP 1 &#8211; OUTPUT<br \/>\n\/usr\/local\/bin\/mencoder \/usr\/hosting\/PHPMOTION\/uploads\/avi\/pFHQjZGhjCJITcaZzi3V.avi -o<br \/>\n\/usr\/hosting\/PHPMOTION\/uploads\/pFHQjZGhjCJITcaZzi3V.flv -of lavf -oac mp3lame<br \/>\n-lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3<br \/>\n-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -vf scale=450:400 -srate 22050<br \/>\nMEncoder 1.0rc1-4.2.1 (C) 2000-2006 MPlayer Team<br \/>\nCPU: Intel(R) Xeon(TM) CPU 3.00GHz (Family: 15, Model: 4, Stepping: 10)<br \/>\nMMX supported but disabled<br \/>\nMMX2 supported but disabled<br \/>\nSSE supported but disabled<br \/>\nSSE2 supported but disabled<br \/>\nCPUflags: Type: 15 MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0<br \/>\nCompiled for x86 CPU with extensions:<\/p><\/blockquote>\n<blockquote><p><strong>CHMOD SETTINGS<\/strong><\/p>\n<p>Directories<br \/>\n1. uploads\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 777<br \/>\n2. uploads\/thumbs\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0777<br \/>\n3. uploads\/avi\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 777<br \/>\n4. pictures\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 777<br \/>\n5. cgi-bin\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 755<br \/>\n6. temp\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 777<br \/>\n7. classes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 777<br \/>\n8. SQL\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 755<br \/>\n9.logs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 777<\/p>\n<p>Files<br \/>\n1. all the files in cgi-bin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 755<br \/>\n2. convertor.php\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 777<\/p><\/blockquote>\n<ul>\n<li>Contoh VHOST APACHE SAYA, jangan lupa folder cgi-bin di PHPMOTION diaktifkan<\/li>\n<\/ul>\n<blockquote><p>## VHOST utube<\/p><\/blockquote>\n<blockquote><p>\n<strong>&lt;VirtualHost *:80&gt;<\/strong><br \/>\n&lt;Directory &#8220;\/usr\/hosting\/PHPMOTION&#8221;&gt;<br \/>\nOptions Indexes FollowSymLinks<br \/>\nAllowOverride FileInfo Options<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>ServerAdmin  \/\/ &lt;![CDATA[<\/p>\n<p>var prefix = &#039;&#109;a&#039; + &#039;i&#108;&#039; + &#039;&#116;o&#039;;<br \/>\nvar path = &#039;hr&#039; + &#039;ef&#039; + &#039;=&#039;;<br \/>\nvar addy13501 = &#039;&#097;dm&#105;n&#039; + &#039;&#064;&#039;;<br \/>\naddy13501 = addy13501 + &#039;&#117;n&#105;l&#097;&#039; + &#039;&#046;&#039; + &#039;&#097;c&#039; + &#039;&#046;&#039; + &#039;&#105;d&#039;;<br \/>\ndocument.write( &#039;<a>&#8216; );<br \/>\ndocument.write( addy13501 );<br \/>\ndocument.write( &#8221; );<br \/>\n\/\/ ]]&gt;<a href=\"mailto:admin@unila.ac.id\">admin@unila.ac.id<\/a><br \/>\nThis email address is being protected from spam bots, you need Javascript enabled to view it<\/p>\n<p>DocumentRoot \/usr\/hosting\/PHPMOTION<br \/>\nServerName utube.unila.ac.id<br \/>\nErrorLog \/usr\/hosting\/mediawiki\/log\/httpd-error.log<br \/>\nCustomLog \/usr\/hosting\/mediawiki\/log\/httpd-access.log\u00a0 common<\/p>\n<p><strong> &lt;Directory \/usr\/hosting\/PHPMOTION&gt;<br \/>\nOptions ExecCGI<br \/>\n&lt;\/Directory&gt;<\/strong><\/p>\n<p><strong>ScriptAlias \/cgi-bin\/ \/usr\/hosting\/PHPMOTION\/cgi-bin\/<\/strong><\/p>\n<p><strong>&lt;\/VirtualHost&gt;<\/strong><\/p><\/blockquote>\n<ul>\n<li>Buka lagi browser anda dengan mengetikkan<\/li>\n<\/ul>\n<blockquote><p><strong>http:\/\/IP-SERVER-ANDA\/PHPMOTION\/siteadmin\/setup.php<\/strong><br \/>\nmasukkan parameter database yang sudah dibuat tadi<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<ul>\n<li>Yap udah beres sekarang anda sudah memiliki server YOUTUBE sendiri<\/li>\n<\/ul>\n<blockquote><p>l<strong>ogin : admin<br \/>\npass : admin<\/strong><\/p><\/blockquote>\n<p>silahkan explore sendiri<\/p>\n<p>oprekan saya ada di alamat <strong>http:\/\/utube.unila.ac.id<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So Many people\u00a0 Looking Tutorial How To Develop Their Own Video streaming Server Like You tube already done. This time i&#8217;ll tell you how to make it&#8217;s happen, we&#8217;ll using FreeBSD 7.0 as OS. Langkah pertama silahkan downlod PHPMOTION5 dari website Official PHPMOTION, atau dari link ini http:\/\/unilanet.unila.ac.id\/~gigih\/data\/PHPMOTION-PHP5\/PHPMOTION_PHP5.zip Downlod phpshield library untuk freeBSD dialamat http:\/\/unilanet.unila.ac.id\/~gigih\/data\/PHPMOTION-PHP5\/phpshield.5.2.fre &hellip; <a href=\"https:\/\/dosen.unila.ac.id\/gigih\/2011\/02\/09\/how-to-build-your-own-youtube-server-using-phpmotion-5-phpshield-ffmpeg-php5-on-freebsd\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;HOW To Build Your Own YouTube Server Using PHPMOTION 5 , phpshield FFMPEG , PHP5 on FREEBSD&#8221;<\/span><\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1348,5],"tags":[],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-kiat-sukses-menjadi-seorang-network-engineer-2","category-old-post-dari-unilanet"],"_links":{"self":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/posts\/146"}],"collection":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":0,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"wp:attachment":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}