Operating System
- Linux (CentOS 6, CentOS 6.5, Fedora, Ubuntu)
- CentOS 7 ( Recomended )
Requirements
- Apache
- MySQL v5.6,5.7 (major)
- PHP v7.3 (major)
- FFMPEG
- MP4Box
- FFPROBE
- MediaInfo
- ImageMagick
- Elastic Search (Optional)
- PHP Shield (for Premium version only)
- MongoDB (for Premium version only)
Lets Setup with Centos 7.0
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
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
yum install MP4Box
- or compaile
cd && git clone https://github.com/gpac/gpac.git && cd gpac &&
./configure --static-mp4box --use-zlib=no &&
make -j4 &&
make install
Mediainfo
yum install mediainfo
- or compaile
cd /usr/local/src &&
wget http://mediaarea.net/download/binary/libzen0/0.4.29/libzen0-0.4.29-1.x86_64.CentOS_6.rpm &&
wget http://mediaarea.net/download/binary/libmediainfo0/0.7.64/libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm &&
wget http://mediaarea.net/download/binary/mediainfo/0.7.64/mediainfo-0.7.64-1.x86_64.CentOS_6.rpm &&
rpm -ivh libzen0-0.4.29-1.x86_64.CentOS_6.rpm &&
rpm -ivh libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm &&
rpm -ivh mediainfo-0.7.64-1.x86_64.CentOS_6.rpm
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 the following one
pecl install imagick-3.1.2
Installation
Installing ClipBucket is very easy once you have all the required modules set up on your server with recommended versions.
Step 1: Your first step should be to download the latest version of the application from the ClipBucket’s official website. If you have a premium version, download the premium version from your client account.
Step 2: Then you need to unzip its content on your machine. Right after that, you need to upload the content of the /upload folder to the root directory of the script via FTP.
Step 3: You will need a database as well for the installation. Create a new database for ClipBucket, If you are not familiar with the process of creating a new one in your cPanel.
Step 4: After you make sure you have done all that, you need to go to your web browser and type down the exact URL to the root directory, where you extracted the content from the /upload folder as follows:
yourdomain.com
If you have uploaded the content of the /upload folder in a subdirectory of your public_html, you should type the URL address like this:
yourdomain.com/subfolder
Step 5: As soon as you are finished with the task click Enter, and you will be redirected to the installation wizard of the script. It begins with the Terms & Conditions section. You have to read it and click on Ok, I Agree, Now let me Continue button below:
Step 6: Next, you will see a list of required modules and their availability. Be aware that even if the application cannot locate the FFMPEG it can be configured later on and the installation process can still continue. You just need to click on the Continue To Next Step button.
Step 7: On the next page, you will see that the installation wizard is going to check if the file permissions are correct. If everything is ok press the Continue To Next Step button again.
Step 8: You will be required to fill in the details of the Database you have created and then click on Check Connection.
Step 9: One of the final steps is to enter the username and password for your administration area, together with the administration email as well and click on the Save and Continue button.
Step 10: To complete the installation, you have to fill in all the Site Settings options and then press on Save and Continue.
Step 11: Finally, you can choose to either continue without a registration (via the Skip & Finish button) or, as we recommend – to register your website with ClipBucket, by just selecting Register & Finish.
With this final action, the installation procedure would have been completed successfully and you can then choose to go either to the administration area or to continue directly to your website’s front-end by choosing one of the buttons on the page.
Step 12: This step is for premium version only, If you are installing the premium version, you will have to insert your ClipBucket license in the admin area to unlock the premium version. You can find the license in your client account.
Please Give us your feedback if this guide was helpful. Your feedback is how we improve. ThankYou for Reading!