The other day I had to install some software for a customer to run the Clip Bucket (http://www.clip-bucket.com) script on their server. It was a lot of steps to install so I documented it and posted it here for me to find the next time someone wants such a site. Also its cool that I am sharing with you so you don’t have to research like I did to track down and retrieve each component to build all the neccesary modules and back end stuff to meet all the requirements for Clip Bucket because in their website they don’t have a guide showing how to install it clearly and specific to a linux fedora box like we run here. Let’s begin our project and get our hands dirty!
cd /usr/src wget http://sourceforge.net/projects/opencore-amr/files/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz/download tar -zxvf opencore-amr-0.1.2.tar.gz cd opencore-amr-0.1.2 ./configure make make install
Install Lame (libmp3lame):
Note that the command has –with (It is double -)
code:
cd /usr/src wget http://sourceforge.net/projects/lame/files/lame/3.98.4/lame-3.98.4.tar.gz/download tar -zxvf lame-3.98.4.tar.gz cd lame-3.98.4 ./configure --with-vorbis make make install
Install Ogg codec:
code:
cd /usr/src wget http://svn.xiph.org/releases/ogg/libogg-1.2.0.tar.gz tar -zxvf libogg-1.2.0.tar.gz cd libogg-1.2.0 ./configure make make install
Refresh Libraries installed in the system:
code:
ldconfig -v
Install Vorbis:
code:
cd /usr/src svn checkout -r 17000 http://svn.xiph.org/trunk/vorbis/ vorbis cd vorbis ./autogen.sh make make install
Install XVid codec:
code:
cd /usr/src wget http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz tar -zxvf xvidcore-1.2.2.tar.gz cd xvidcore cd build/generic ./configure make make install
Install x264 codec:
Note that the command has –enable-shared (It is double -)
code:
cd /usr/src wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20101101-2245.tar.bz2 tar -xvjf x264-snapshot-20101101-2245.tar.bz2 cd x264-snapshot-20101101-2245 ./configure -–enable-shared make make install
Install FAAD2:
code:
cd /usr/src wget http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.7/faad2-2.7.tar.gz/download tar -zxvf faad2-2.7.tar.gz cd faad2-2.7 ./configure make make install
Install FAAC:
code:
cd /usr/src wget http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.bz2/download tar -xvjf faac-1.28.tar.bz2 cd faac-1.28 ./configure make make install
Install FFMPEG:
Note that the command has –-enable…. (It is double -)
code:
cd /usr/src svn checkout -r 25620 svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg cd ffmpeg ./configure –prefix=/usr/local –-enable-pthreads –-enable-pic –-enable-gpl –-enable-version3 –-enable-libmp3lame –-enable-nonfree –-enable-libopencore-amrnb -–enable-libopencore-amrwb –-enable-libvorbis –disable-mmx –enable-shared –-enable-libxvid –-enable-libx264 –-enable-libfaac make make install
Note: If you get an error like this when running the ./configure command:
Unable to create and execute files in /tmp. Set the TMPDIR environment variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.
Then you will have to create a directory for example /usr/src/tmp and set the TMPDIR environment variable doing export TMPDIR=/usr/src/tmp and try again.
Configure LD to add the path where FFMPEG is installed:
cd /usr/src wget http://sourceforge.net/projects/gpac/files/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz/download tar -zxvf gpac_extra_libs-0.4.5.tar.gz wget http://sourceforge.net/projects/gpac/files/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz/download tar -zxvf gpac-0.4.5.tar.gz cd gpac_extra_libs cp -R * ../gpac/extra_lib cd ../gpac chmod +x configure ./configure –use-js=no make lib make apps make install-lib make install cp bin/gcc/libgpac.so /usr/lib
Configure LD to add the path where gpac is installed:
code:
echo “/usr/lib” > /etc/ld.so.conf.d/gpac.conf
Refresh the LD cache:
code:
ldconfig -v
Install Ruby (Needed for FLVTool2):
code:
cd /usr/src wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.gz tar -zxvf ruby-1.9.1-p376.tar.gz cd ruby-1.9.1-p376 ls ./configure make make install
Install FLVTool2:
code:
cd /usr/src wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz tar -zxvf flvtool2-1.0.6.tgz cd flvtool2-1.0.6 ruby setup.rb config ruby setup.rb setup ruby setup.rb install
And that should be all! After you install the above software remember to change the paths for all in the Website Configuration settings in your ClipBucket website.
If you followed all the instructions properly the correct paths of the software should be like the ones below: