NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Showing posts with label Clipbucket. Show all posts
Showing posts with label Clipbucket. Show all posts

Friday, 28 December 2018

December 28, 2018

Clipbucket Recomended Requirements And Installation


Operating System

  • Linux (CentOS 6, CentOS 6.5, Fedora, Ubuntu)
  • CentOS 7 ( Recomended )

Requirements

  • Apache
  • MySQL v5.6,5.7 (major)
  • PHP v7.0 (major)
  • FFMPEG
  • MP4Box
  • FFPROBE
  • MediaInfo
  • ImageMagick

Utilities
  • yum groupinstall -y Development Tools
  • yum install autoconf automake gcc gcc-c++ git libtool make pkgconfig zlib-devel
  • yum install yum-utils
  • yum-config-manager --add-repo http://www.nasm.us/nasm.repo
  • yum install nasm
FFmpeg Installation Steps
Export :
  • export TMPDIR=/opt/tmp-ffmpeg
  • mkdir $TMPDIR && mkdir /opt/ffmpeg_sources
Installing yasm
  • cd /opt/ffmpeg_sources
  • wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
  • tar xzvf yasm-1.3.0.tar.gz && cd yasm-1.3.0
  • ./configure && make && make install
  • cd /opt/ffmpeg_sources
  • git clone --depth 1 https://github.com/yasm/yasm.git
  • cd yasm && autoreconf -fiv
  • ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin"
    make && make install && make distclean
Installing x264
  • cd /opt/ffmpeg_sources
  • git clone --depth 1 git://git.videolan.org/x264
  • cd x264 && ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin" --enable-shared --disable-lavf
  • make && make install && make distclean
  • git clone --depth 1 git://git.videolan.org/x264
  • cd x264 && ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin" --enable-shared --disable-lavf
  • make && make install && make distclean
Installing libfdk-aac
  • cd /opt/ffmpeg_sources
  • git clone --depth 1 https://github.com/Distrotech/fdk-aac.git
  • cd fdk-aac && autoreconf -fiv && ./configure --prefix="/opt/ffmpeg_build" --disable-shared
  • make && make install && make distclean
Installing libLame
  • cd /opt/ffmpeg_sources
  • curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
  • tar xzvf lame-3.99.5.tar.gz
  • cd lame-3.99.5
  • ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin" --disable-shared --enable-nasm
  • make && make install && make distclean

Installing Opus

  •   cd /opt/ffmpeg_sources
  •   wget http://downloads.xiph.org/releases/opus/opus-1.1.2.tar.gz
  •   tar xzvf opus-1.1.2.tar.gz
  •   cd opus-1.1.2 && ./configure --prefix="/opt/ffmpeg_build" --disable-shared
  •   make && make install && make distclean

Installing libogg

  •   cd /opt/ffmpeg_sources
  •   wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz
  •   tar -xJf libogg-1.3.2.tar.xz
  •   cd libogg-1.3.2 && ./configure --prefix="/opt/ffmpeg_build" --disable-shared
  •   make && make install && make distclean

Installing libvorbis

  •   cd /opt/ffmpeg_sources
  •   wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz
  •  tar -xJf libvorbis-1.3.5.tar.xz && cd libvorbis-1.3.5
  •   LDFLAGS="-L/opt/ffmeg_build/lib" CPPFLAGS="-I/opt/ffmpeg_build/include" /configure --prefix="/opt/ffmpeg_build" --with-ogg="/opt/ffmpeg_build" --disable-shared
  •   make && make install && make distclean

Now Finally FFmpeg

  • cd /opt/ffmpeg_sources
  • git clone --depth 1 https://github.com/FFmpeg/FFmpeg.git
  • cd FFmpeg && PKG_CONFIG_PATH="/opt/ffmpeg_build/lib/pkgconfig" ./configure --prefix="/opt/ffmpeg_build" --extra-cflags="-I/opt/ffmpeg_build/include" --extra-ldflags="-L/opt/ffmpeg_build/lib" --bindir="/opt/bin" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libx264
  •  make && make install && make distclean && hash -r && unset TMPDIR

Edit /etc/ld.so.conf

·  give path of lib folder for ffmpeg such as
/opt/ffmpeg_build/lib
/usr/local/lib
/usr/lib
·  Execute : ldconfig
MP4Box
Mediainfo
Imagick
  • yum -y install php-pear
  • yum -y install ImageMagick*
  • yum -y install php-imagick
  • yum -y install gcc php-devel
  • yum -y install ImageMagick ImageMagick-devel
  • pecl install imagick
##if above command does not work, use following one
  • pecl install imagick-3.1.2
  • echo extension=imagick.so >> /etc/php.ini

PHP,MariaDB
  • yum install httpd mariadb-server mariadb php php-gd php-mysql php-curl php-xsl php-cli php-mbstring php-pear unzip
  • ·         systemctl start mariadb.service
  • ·         systemctl enable mariadb.service
  • ·         mysql_secure_installation
  • ·         systemctl restart httpd
  • ·         systemctl enable httpd

Wednesday, 5 December 2018

December 05, 2018

Install PHP 7.2 on CentOS 7 To Resolve Clipbucket 4 Installation Problem

Install PHP 7.2 on CentOS 7 To Resolve Clipbucket 4 Installation Problem PHP Recommend Version for Clipbucket

Enabling Remi repository

  • sudo yum install epel-release yum-utils
  • sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 

Installing PHP 7.2 on CentOS 7

  • sudo yum-config-manager --enable remi-php72

Once the repository is enabled install PHP 7.2 and few most common PHP modules:

  •  sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd

Verify the PHP installation, by typing the following command which will print the PHP version: 

  • php -v 

OutPut 
PHP 7.2.9 (cli) (built: Aug 15 2018 09:19:33) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies

 Installing PHP 7.1 on CentOS 7

Enable the PHP 7.1 repository by typing: 
  • sudo yum-config-manager --enable remi-php71
Install PHP 7.1 and few most common PHP modules:
  • sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql 
  • php -v 
OutPut
PHP 7.1.21 (cli) (built: Aug 15 2018 17:56:55) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.21, Copyright (c) 1999-2018, by Zend Technologies
  
  • sudo systemctl restart httpd 

 Configuring PHP 7.x to work with Nginx

  • sudo yum install php-fpm
By default PHP FPM will run as user apache on port 9000. We’ll change the user to nginx and switch from TCP socket to Unix socket. To do so edit the lines highlighted in yellow:
  • /etc/php-fpm.d/www.conf
...
user = nginx
...
group = nginx
...
listen = /run/php-fpm/www.sock
...
listen.owner = nginx
listen.group = nginx 


Make sure the /var/lib/php directory has the correct ownership:
  • chown -R root:nginx /var/lib/php
Once you made the changes, enable and start the PHP FPM service: 
  • sudo systemctl enable php-fpm
  • sudo systemctl start php-fpm 
  • sudo systemctl restart nginx
     

Sunday, 23 September 2018

September 23, 2018

how to change clipbucket player logo

  • how to change clipbucket player logo

Here i am changing cb video js 1.0 beta player 

Here we start step one

  • here is the root path of palyer under /player/CB_video_js/
  • there is a main file name with cb_video_js.php
  • open the file find the script path BASEURL.'/images/icons/country/cb-hp.png
  • just put your own logo path i am using BASEURL.'/images/icons/country/pk.png
  • change the link when clcik on logo find the file in same folder with cb_video_js.html and find script "product_link" change with your requirment


logo has been changed

Thursday, 7 December 2017

Tuesday, 18 October 2016

October 18, 2016

How To Fix Video Conversion Problem

How To Fix Video Conversion Problem
This topic has been discussed many times so i am going to write a complete guide to track your video conversion problem and fix it. I am using ClipBucket 2.0.9, if you have not already update to latest version, please download it from http://clip-bucket.com/latest
Adding some of my Forum post content, here is what we are going to track our problem.
1.    Folder permission checking
2.    Uploading & Conversion Settings
3.    Server Modules Settings
4.    Testing file upload Part 1
5.    Testing file upload Part 2
Folder Permission checking
·        Check all directories in “files” folder are chmod (permission) to 777
·        Check there is not PHP error on any of your page
·        Check user login
·        Check Browsing issue
please fix all the above issues before going to next step
Uploading & Conversion Settings
Goto Admin Area > Website Settings & Configurations > Upload & Conversion Settings
·        First make sure your FFMPEG, PHP and Flvtool2 Path is correct
·        Mp4Box incase you want to get videos output in Mp4 Format (HQ only)
·        If your FFMPEG version is greater than 20000, it may requires VF option on, we will try with “Use Vf On”
·        Turn of “use crons” so we can convert videos directly
Server Modules Check
Goto Admin Area > Tool Box > Server Modules
·        Make Sure all statuses are green ( a check sign)
·        if something showing (ALERT) sign, go back to step 2, change settings according to your host
·        FFMPEG version should be greater than 19000
·        FLVtool2 1.6 or greater
·        Ask your host for weather they support PHP CLI or not, 90% host support it by default
Testing File Upload Part 1
now we are going to upload a small file, less than 2MB you can search for “Bill Gates Pie WMV” or something good for testing purpose only
1.    Goto Upload (Front End)
2.    Fill the details and upload file and wait till you are redirected to Success Page
3.    Now open up Facebook, login to your account, check your inbox and new updates, logout, close facebook
4.    Goto Admin Area > Video Manager
5.    Now you have one of three status “Successfull” , “Processing” , “Failed”
Successfull
if your status is succcessful, move to next part. Congratualation for passing this phase 
Failed
Open “File Conversion Log” and check whey FFMPEG is not conversion videos, there could be one of following problems
1.    unrecognized option ‘-vf’
Turn off “use vf” in upload & conversion settings under FFMPEG PATH field
2.    option ‘padcolor’ has been removed, use the pad filter instead
Turn on “use vf” in upload & conversion settings under FFMPEG PATH field
3.    Check for any ‘libmp3lame’ or ‘libx264′ or any codec error
Ask your host to re compile your FFMPEG with required codecs
Processing
Now, the most difficult part..fasten your seat belts.
1.    Goto Admin Area > Tool Box > Conversqion queue
2.    Check if processing is started or not, if not, then your PHP Path is wrong or your PHP Does not support CLI or your register_argc_argv is not enabled
3.    Fix these problems and then start again from Part 4
4.

it will take some time depending on your server speed and file size and video duration and after few minute refresh page 

Testing file upload Part 2
1.    Now upload 10 MB video
2.    Wait for uploading & Success Page
3.    Now open Youtube, search for new movies trailers, watch it (in HD) , once finished, get back to ClipBucket admin panel
4.    check , what is file status, if failed, follow instructions above, if success, carry on with your ClipBucket but
5.    if Processing , check weather file is uploaded in /files/temp folder
Well, thats it for now, i will write more instructions “if required” later…