Deni Cendrianto

Web Blog

  • Beranda
  • Profil
  • Kontak
  • Komputer
  • Sains
  • Umum
    • Religi
    • Tokoh
    • Sejarah
    • Lain-lain

Selasa, 17 Januari 2012

Membuat situs video sharing

Diposting oleh Deni Cendrianto di 19.00 Label: Komputer
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 http://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 … :D
Sumber :
http://hanadi.wordpress.com/2010/07/07/install-clipbucket-2/
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
Tweet

1 komentar :

  1. Anonim12 April 2022 pukul 03.36

    Membuat Situs Video Sharing >>>>> Download Now

    >>>>> Download Full

    Membuat Situs Video Sharing >>>>> Download LINK

    >>>>> Download Now

    Membuat Situs Video Sharing >>>>> Download Full

    >>>>> Download LINK aq

    BalasHapus
    Balasan
      Balas
Tambahkan komentar
Muat yang lain...

Posting Lebih Baru Posting Lama Beranda
Langganan: Posting Komentar ( Atom )

Cari di Blog Ini

Kategori Artikel

  • Komputer
  • Sains

Arsip

Paling Populer

  • Text Effect (Outline + Mirror) Gimp
  • Membuat situs video sharing
  • Menggunakan Fasilitas Style di OpenOffice Writer
  • Free Tutorial OpenOffice Berbahasa Indonesia

Facebook Page

© Deni Cendrianto 2013 . Powered by Bootstrap , Blogger templates and RWD Testing Tool