Install ClipBucket 2

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

    upload_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

Ditulis dalam Tutorial. 22 Comments »

22 Tanggapan to “Install ClipBucket 2”

  1. lilyth Says:

    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

  2. lilyth Says:

    Hello thank you and small problem 1 modul error
    libmp3lame Yes Required for proper Mp3 Encoding

    and sorry im bad english

  3. lilyth Says:

    Hello

    This error
    Unknown option “–enable-libmp3lame”

  4. Jessica Says:

    mas untuk instalasi clipbucket lewat mozilla,untuk hostnya di isi localhost atau alamat website kita

  5. stickseries Says:

    yang ubuntu itu apa ya ?

  6. stickseries Says:

    sukses juga ternyata tapi kok pas mau upload gak bisa di akse alamatnya

  7. saibar1@mail.com Says:

    maap gan, kalok kita ga bisa upload masalah nya dimana ya…
    upload error gitu

  8. saibar1@mail.com Says:

    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…

  9. hendra Says:

    Mas update dunk install v 2.6 😀 install aplikasi pendukungnya susah hehe thanks

  10. Cara install clipbucket di ubuntu 10.04 | infomediaku.com Says:

    […] Ref: https://hanadi.wordpress.com/2010/07/07/install-clipbucket-2/ […]

  11. joko sulistiono Says:

    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/

  12. rizki Says:

    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.

  13. izki Says:

    kalo ga bisa install flvtool nya itu msalahnya apa ya mas ?
    mohon bantuannya guys 🙂


Tinggalkan komentar