Untuk membuat youtube clone bisa menggunakan aplikasi yang bernama clipbucket. Selain itu untuk aplikasi lainnya dapat search di google ato wiki tentang video hosting software.
Kali ini installasi menggunakan Ubuntu 10.04 dan ClipBucket v2.0.7
- Konfigurasi Ubuntu
- Installasi paket lamp server, apabila sudah ada skip bagian ini
# tasksel install lamp-server - Install paket php5-cli
# apt-get install php5-cli - Install paket php5-gd
# apt-get install php5-gd - Install paket php5-curl
# apt-get install php5-curl - Konfigurasikan php.ini agar sesuai dengan aplikasi
# pico /etc/php5/apache2/php.iniupload_max_filesize = 500M
max_execution_time = 36000
max_input_time = 600
memory_limit = 5000
magic_quotes_gpc = on
magic_quotes_runtime = off
post_max_size = 500M
register_globals = off
safe_mode = off
output_buffering = off
display_errors = on - Aktifkan mode rewrite pada apache2
# a2enmod rewrite
# /etc/init.d/apache2 restart - Buat database untuk aplikasinya
# mysql -u root -p
mysql> create database cb;
mysql> GRANT ALL ON cb.* TO ‘cb_user’@’localhost’ IDENTIFIED BY ‘cb_password’;
mysql> flush privileges;
mysql> quit - Install smtp server
# apt-get install postfix - Installasi plugin untuk aplikasi-1
# apt-get install flvtool2
# apt-get install gpac - Installasi plugin untuk aplikasi-2
Gunakan cara pada https://hanadi.wordpress.com/2010/07/07/install-ffmpeg-full-ubuntu-10-04/ untuk install ffmpeg dan x264 - Tambahkan shortcut ffmpeg pada /usr/bin
# ln -s /usr/local/bin/ffmpeg /usr/bin/
- Konfigurasi ClipBucket
- Download aplikasi clipbucket di http://clip-bucket.com/downloads
- Setelah itu ekstrak packetnya
# unzip “ClipBucket 2.0.7 Stable PL1.zip” - Salin semua file yang berada di folder upload ke direktori /var/www
# cp -Rv upload/* /var/www - Salin juga file .htaccess nya
# cp -v upload/.htaccess /var/www - Ubah hak akses menjadi 777 pada direktori tertentu
# cd /var/www
# chmod -Rv 777 files/ images/ cache/ install/ includes/ - Tambahkan crontab untuk aplikasi
# crontab -e
* * * * * php -q /var/www/actions/video_convert.php >/dev/null 2>&1
* * * * * php -q /var/www/actions/verify_converted_videos.php >/dev/null 2>&1
0 0,12,13 * * * php -q /var/www/actions/update_cb_stats.php >/dev/null 2>&1
Selanjutnya adalah tinggal akses ke servernya menggunakan browser untuk installasi nya. Setelah installasi, jangan lupa untuk mengubah hak akses direktori includes menjadi 755
# cd /var/www
# chmod -Rv 755 includes/
Untuk mengecek plugin sudah terinstall ato belum, setelah login admin dapat mengakses di ToolBox -> Server Modules Info
Apabila terdapat masalah pada proses konversi videonya ketika upload, yaitu dilihat dari login admin pada Videos -> Videos Manager
Contoh :
Option ‘padcolor’ has been removed, use the pad filter instead
/usr/bin/ffmpeg: failed to set value ‘000000’ for option ‘padcolor’
Maka solusinya adalah dengan cara mengupdate file
/var/www/includes/classes/conversion/ffmpeg.class.php
Sebelum (normal video conversion) :
# video size, aspect and padding
$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, $pad_right );
$opt_av .= ” -s {$width}x{$height} -aspect $ratio -padcolor 000000 -padtop $pad_top -padbottom $pad_bottom -padleft $pad_left -padright $pad_right “;
Sesudah (normal video conversion) :
# video size, aspect and padding
$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, $pad_right );
$opt_av .= ” -s {$width}x{$height} -aspect $ratio -vf ‘pad=0:0:0:0:black’ “;
Sebelum (HQ video conversion) :
//Calculation Size Padding
$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, $pad_right );
$opt_av .= “-s {$width}x{$height} -aspect $ratio -padcolor 000000 -padtop $pad_top -padbottom $pad_bottom -padleft $pad_left -padright $pad_right”;
Sesudah (HQ video conversion) :
//Calculation Size Padding
$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, $pad_right );
$opt_av .= “-s {$width}x{$height} -aspect $ratio -vf ‘pad=0:0:0:0:black'”;
Untuk masalah login redirect ketika mengaktifkan editor pick, solusinya adalah mengubah isi file signup.php
Sebelum :
if($_COOKIE[‘pageredir’])
redirect_to($_COOKIE[‘pageredir’]);
else
redirect_to(cblink(array(‘name’=>’my_account’)));
Sesudah :
if($_COOKIE[‘pageredir’])
{
if(substr($_COOKIE[‘pageredir’], -10) == “/undefined”)
{
$pageURL = ‘http’;
if($_SERVER[“HTTPS”] == “on”) {$pageURL .= “s”;}$pageURL .= “://”;
if($_SERVER[“SERVER_PORT”] != “80”)
$pageURL .= $_SERVER[“SERVER_NAME”].”:”.$_SERVER[“SERVER_PORT”].$_SERVER[“REQUEST_URI$
else
$pageURL .= $_SERVER[“SERVER_NAME”].$_SERVER[“REQUEST_URI”];redirect_to($pageURL);
}
else
redirect_to($_COOKIE[‘pageredir’]);
}
else
redirect_to(cblink(array(‘name’=>’my_account’)));
Kelar juga akhirnya … 😀
Sumber :
http://docs.clip-bucket.com/clipbucket-docs/clipbucket-installation
http://webscripts.softpedia.com/script/File-Management-Perl/File-sharing/ClipBucket-Lite-45949.html
http://forums.clip-bucket.com/showthread.php?5124-Possible-fix-FFMPEG-latest-releases-%28conversion-issues-quot-Please-use-vf-pad-quot-%29
http://forums.clip-bucket.com/showthread.php?5332-Conversion-issue
http://forums.clip-bucket.com/showthread.php?5725-Fixing-login-redirect
September 17, 2010 pukul 8:25 am
Hello help pls
What’s this error?
FFMPEG r0.5.1-4:0.5.1-1ubuntu1 r19000 or greater
FFMPEG CODECS
libxvid Yes Required for DIVX AVI files
libmp3lame Yes Required for proper Mp3 Encoding
libfaac Yes Required for AAC Audio Conversion
libx264
September 17, 2010 pukul 11:36 am
Try to add shortcut – ffmpeg to /usr/bin
# ln -s /usr/local/bin/ffmpeg /usr/bin/
Use this tutorial for ffmpeg and x264 installation — https://hanadi.wordpress.com/2010/07/07/install-ffmpeg-full-ubuntu-10-04/
Installasi FFMPEG
Download dan jalankan aplikasi nya
# wget http://x264-ffmpeg-up-to-date.googlecode.com/files/ffmpeginv1.2.sh
# chmod +x ffmpeginv1.2.sh
# ./ffmpeginv1.2.sh
September 17, 2010 pukul 10:53 pm
Hello thank you and small problem 1 modul error
libmp3lame Yes Required for proper Mp3 Encoding
and sorry im bad english
September 19, 2010 pukul 2:15 am
Hello
This error
Unknown option “–enable-libmp3lame”
September 20, 2010 pukul 8:03 am
you should use –enable-libmp3lame ..
“–” not “-” –> double “-“
Desember 10, 2010 pukul 4:16 am
mas untuk instalasi clipbucket lewat mozilla,untuk hostnya di isi localhost atau alamat website kita
Desember 14, 2010 pukul 4:16 pm
tergantung narohnya dimana .. klo install di pc sendiri sih .. ya pake localhost
April 12, 2011 pukul 10:38 am
yang ubuntu itu apa ya ?
April 12, 2011 pukul 12:20 pm
sukses juga ternyata tapi kok pas mau upload gak bisa di akse alamatnya
Oktober 19, 2011 pukul 2:32 pm
hoho .. kayanya ada masalah di rewrite ato setingan phpnya tuh …
Juni 17, 2012 pukul 12:59 am
maap gan, kalok kita ga bisa upload masalah nya dimana ya…
upload error gitu
Juni 17, 2012 pukul 4:51 pm
kemungkinan masalah file access atau setingan php untuk uploadnya ..
Juni 17, 2012 pukul 6:56 pm
agan” bisa kunjugi
http://www.indofriendslip..com
masih di masalah upload error
apa kita harus menambah folder buat upload nya..
atau tetap menggunakan folder video yang di berikan ClipBucket..??
mohon bantuan nya…
Agustus 28, 2012 pukul 2:56 pm
Mas update dunk install v 2.6 😀 install aplikasi pendukungnya susah hehe thanks
Agustus 31, 2012 pukul 10:26 am
hehehe … blom kepikiran .. nanti deh …
Desember 3, 2012 pukul 3:23 pm
[…] Ref: https://hanadi.wordpress.com/2010/07/07/install-clipbucket-2/ […]
Oktober 20, 2014 pukul 12:58 pm
tolong mastah.
halaman web nya kagak mau keluar.
kira-kira apa masalahnya ni ? 😦 tolong mastah.
ni ss nya https://www.flickr.com/photos/128762501@N05/15394993980/
November 28, 2014 pukul 7:56 am
harus di enable dulu pesan errornya di php agar muncul errornya apa ..
klo ss nya kaya gituh doank rada sulit prediksi masalahnya ..
Oktober 30, 2015 pukul 9:06 am
selamat siang master, saya sudah instal kebutuhan buat clipbucketnya tetapi saat selesai upload, ketika mau diplay tidak bisa disana dikatakan “this video might not work properly”, boleh minta saran kiranya yang harus dilakukan untuk menyelesaikan propblem ini? terimakasih sebelumnya.
Januari 23, 2016 pukul 12:32 pm
coba cek log nya .. mungkin ada petunjuk nya .. sama coba ganti browser juga disisi client mungkin ngaruh ..
Januari 7, 2016 pukul 9:14 pm
kalo ga bisa install flvtool nya itu msalahnya apa ya mas ?
mohon bantuannya guys 🙂
Januari 23, 2016 pukul 12:31 pm
errornya apa?