How to install ClipBucket requirements on RedHat Enterprise 5 Server with cPanel
Hey folks!
Since I have received tons of messages about what hosting provider I recommend to run ClipBucket with FFMPEG I have decided to share with you this great company where I moved all my websites to, they are Linode. They offer GREAT SERVICE & SUPPORT (They answered my ticket to add an additional IP to my VPS in less than 5 minutes!) and also they have pretty cheap rates starting at $19.95 for a 512Mb Linux VPS with 16Gb of RAM. For more info click the image below:
Last update: 06/08/2010
Due to the high amount of messages and questions on this post, we at AM Technology & Systems thought that will be great to offer this installation or troubleshoot FFMPEG issues as one of our services, so…
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 so I documented it and now I am sharing with you so you don’t have to research like I did to met all the requirements for Clip Bucket because in their website they don’t have a guide showing how to install it. Let’s get our hands dirty!
Install Development Tools:
yum groupinstall ‘Development Tools’
Install RPMForge Repository:
For 32 Bits installations: rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
For 64 Bits installations: rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
Install yasm package:
yum install yasm
Install SVN (subversion) package:
yum install subversion
Install OpenCore-AMR:
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 -)
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:
cd /usr/srcwget http://svn.xiph.org/releases/ogg/libogg-1.2.0.tar.gztar -zxvf libogg-1.2.0.tar.gzcd libogg-1.2.0./configuremakemake install
Refresh Libraries installed in the system:
ldconfig -v
Install Vorbis:
cd /usr/src
svn checkout -r 17000 http://svn.xiph.org/trunk/vorbis/ vorbis
cd vorbis
./autogen.sh
make
make install
Install XVid codec:
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 -)
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:
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:
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 -)
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 installNote: 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:
echo “/usr/local/lib” > /etc/ld.so.conf.d/ffmpeg.conf
Refresh the LD cache: ldconfig -v
Install MP4Box (gpac):
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:
echo “/usr/lib” > /etc/ld.so.conf.d/gpac.conf
Refresh the LD cache: ldconfig -v
Install Ruby (Needed for FLVTool2):
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:
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 guide the correct paths of the software should be like the ones in the images which are:
FFMPEG: /usr/local/bin/ffmpeg
PHP: /usr/bin/php
FLVTool2: /usr/local/bin/flvtool2
MP4BOX: /usr/local/bin/MP4Box
Here is a screenshot with all the required software up & running on the server:
Prior Updates:
Last update: 02/08/2010
I have made some corrections and adds to the howto, for example running ldconfig -v in some places to refresh libraries in the system, upgrading FFMPEG version to 22733 because as Arandas said the old version break swscale lib. I have found some issues with the ClipBucket not detecting libfaac or libtheora with the version 22733 but it is enabled and working in FFMPEG, so have that in mind when you do the module check.
Last update: 23/07/2010
I have fixed a typo in the FAAC download link, thanks to Arandas comment
Last update: 17/06/2010
I have changed the version of FFMPEG (r22608) after some issues with last FFMPEG trunk versions with MP4Box(gpac). Also I have changed some links to make them easier to copy and paste.




congratulations for this tutorial.
A script for all this steps is a good idea too.
thanks
@alyson
Hi Alyson,
Yes that is an idea that I had, but currently I am very busy to develop a script for this, but maybe someone who check this can write a script for all of us
Thank you for your comment!
a correction:
wrong: cd opencore-amr-0.1.2.tar.gz
correct: cd opencore-amr-0.1.2
Hi Alyson,
Thank you for the correction, I have fixed a similar line in the installation of LAME, so I think it should work now.
Please let me know if you find another typo
Thank you very much for your input!
Best regards,
Andres Montalban
Well, i´m get this problem:
http://www.broalliance.com.br/ss/ss/image-FF38_4BAA2251.jpg
Some sugestion?
Hi Alyson,
What Linux Distribution are you using? What is the version of your automake? Mine is 1.9.6. Please try to update all your currently installed packages to the last version (Specially the one related to development).
Thanks,
Andres Montalban
CentOS 64bits
How i see my automake version and update intalled packages?
Or some link to do this, i am windows user :X
I try several times try install ClipBucket, this time i think i will have some sucess with this tutorial. thanks a lot
Hi Alyson,
You can check your automake version doing: automake –version
To update your installed packages you need to execute: yum update
That should update all your installed packages, do you installed the Development Tools as I explain in the first step right?
I hope you can install ClipBucket this time
. By the way, how did you found this post?
Thank you,
Andres Montalban
automake version 1.9.6
yes i do all step at this point: Install Vorbis
i try : yum update
get this: http://www.broalliance.com.br/ss/ss/image-C11D_4BAA39AF.jpg
Hi Alyson,
I see, I have updated the RPMForge links because they were old, please do this:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
Then you can do yum update if this gives you an error again then execute:
yum clean all && yum update
And if it still give you errors then you can do this:
yum update –exclude=syslinux
And then you should be able to update your CentOS, I hope this helps you.
Best regards,
Andres Montalban
Thanks a lot for your suport.
i do your instructions and when i do “yum update –exclude=syslinux” and pres Y
http://www.broalliance.com.br/ss/ss/image-E6A1_4BAA762C.jpg
¬¬”
http://www.broalliance.com.br/ss/ss/image-FD3A_4BAA7754.jpg
yes i do rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
and i found your blog in this place:
http://forums.clip-bucket.com/showthread.php?4529-TUTORIAL-Installing-FFMPEG-and-all-the-required-software-to-run-ClipBucket
Hi Alyson,
Mmm, that server is a naughty boy right? Hahaha, what I recommend you to do is this:
yum remove subversion
yum update –exclude=syslinux
yum install subversion
And should fix the issue, however according to the output of your yum update command your server only needs to update 9 packages and no development-related packages are displayed.
What revision of Vorbis SVN you have?
I have this:
root@server1 [~/amts/src/vorbis]# svn info
Path: .
URL: http://svn.xiph.org/trunk/vorbis
Repository Root: http://svn.xiph.org
Repository UUID: 0101bb08-14d6-0310-b084-bc0e0c8e3800
Revision: 16992
Node Kind: directory
Schedule: normal
Last Changed Author: xiphmont
Last Changed Rev: 16963
Last Changed Date: 2010-03-11 01:41:42 -0600 (Thu, 11 Mar 2010)
If the subversion version is not working then you can install it from a tar.gz file:
http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.3.tar.gz
Decompress it and do the same.
PS: Oh yes, I posted that on the forum but I thought you found it via Google.
Thank you very much.
Best regards,
Andres Montalban
version 1.6.9 (r901367)
compiled Mar 22 2010, 00:30:45
Ok everythinq is fine, i do:
yum remove subversion
yum update –exclude=syslinux
yum install subversion
And don´t have erros.
Back to the steps of your tutorial:
Vorbis:
I do this:
cd /usr/src
svn checkout http://svn.xiph.org/trunk/vorbis/ vorbis
cd vorbis
./autogen.sh
make
see my screen:
http://www.broalliance.com.br/ss/ss/image-7ED4_4BAA8255.jpg
If help:
http://www.broalliance.com.br/ss/ss/image-B07E_4BAA8255.jpg
Sorry for so many questions, but I decided that this time I install these codecs that both tried to install and never had success
sorry double post, wrong version, this is correct of vorbis:
root@server [/usr/src/vorbis]# svn info
Path: .
URL: http://svn.xiph.org/trunk/vorbis
Repository Root: http://svn.xiph.org
Repository UUID: 0101bb08-14d6-0310-b084-bc0e0c8e3800
Revision: 17021
Node Kind: directory
Schedule: normal
Last Changed Author: xiphmont
Last Changed Rev: 17021
Last Changed Date: 2010-03-24 05:29:41 -0400 (Wed, 24 Mar 2010)
Hi Alyson,
Please do this, remove the vorbis folder:
cd /usr/src
rm -rf vorbis
And download the same revision that I have (I checked out on Sunday is really weird that in some days a lot of changes were made)
svn checkout -r 16992 http://svn.xiph.org/trunk/vorbis/ vorbis
If this doesn’t work then you will have to contact our support at http://www.am-techsys.com and click the support button and create a support ticket, but we will charge you for the installation of this software.
Thank you very much.
Best regards,
Andres Montalban
Hi Alyson,
I have just tested checking out the last version of Vorbis via SVN and ran ./autogen.sh without any issue in a CentOS 5.4 i686 installation and in a Ubuntu Jaunty i686 so I think you have an issue with your CentOS installation, is this a clean CentOS installation?
I hope you can get that working.
Thank you for your input.
Best regards,
Andres Montalban
ok every is fine, but i get this problem:
root@server [/usr/src/ffmpeg]# ./configure –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 –enable-libfaad
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.
i read about this in google, but not good solution found
ok i resolve the problem :
Make a directory called tmp in your home dir
export TMPDIR=$HOME/tmp
now i get “ERROR: libmp3lame not found”
i try without this option and i have sucess lol
How i can configure with limb3lame?
Package lame-3.98.2-1.el5.rf.x86_64 already installed and latest version
ok i resolved the problems and finished your tutorial
the result:
http://www.broalliance.com.br/ss/ss/image-E0BA_4BAB5D11.jpg
hahahaha
Hi Alyson,
Please check your PATHs in the Website Configuration settings under ClipBucket, if you followed the all the steps (And you don’t have installed any prior software that is interfering with the one we installed) then the correct PATHs are:
FFMPEG: /usr/local/bin/ffmpeg
PHP: /usr/bin/php
FLVTool2: /usr/local/bin/flvtool2
MP4BOX: /usr/local/bin/MP4Box
You are close now, keep trying
Best regards,
Andres Montalban
OH YESSSSSSSSS
http://www.broalliance.com.br/ss/ss/image-E47A_4BAB80C7.jpg
Thanks a lot my friend!
Best regards,
Alyson Veras
Hi Alyson,
Glad it worked for you too
. If you make a website using ClipBucket a link to my website would be great hehehe.
Take care!
Best regards,
Andres Montalban
hello, when I try to use rpm I get message:
rpm: command not found
how to configure that?
ive istalled yum but it does not work anyway
distro is gentoo
@marian
This guide is not for Gentoo, however if you have Gentoo installed you should have the knowledge to install the required software without issues. You should emerge ffmpeg with the required USE flags (xvid, ogg, vorbis, faad, etc), I have used Gentoo in the past but I don’t use it now.
If you need assistance to have ClipBucket installed on your Gentoo server, please go to http://www.am-techsys.com and our team will be glad to help you with that and any other issue you may have.
Thank you for your time.
Best regards,
Andres Montalban
Hello I’m install on ubuntu i can’t rady to use help me Please
Hi Boat,
Sorry but I don’t understand you, this guide is for any RedHat based distro like CentOS or Red Hat Enterprise, but it should be the same for any other distro.
The only steps that change are the first ones, you need to do this:
apt-get install build-essential yasm subversion
Then you can follow with the installation from the step where you install Opencore-AMR
If you need further assistance let me know.
Thank you very much for visiting my blog.
Best regards,
Andres Montalban
@Andres Montalban
Thank you
I have problem
I can’t make Install Ogg codec
root@iBoat:/usr/src/ogg# ./autogen.sh
checking for autoconf…
You must have autoconf installed to compile libogg.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/
checking for automake 1.6 or later… no
checking for aclocal 1.6 or later… no
You must have automake installed to compile libogg.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/
root@iBoat:/usr/src/ogg# make
make: *** No targets specified and no makefile found. Stop.
root@iBoat:/usr/src/ogg#
and Install Lame (libmp3lame): can’t use option (./configure –with-vorbis) so i use ./configure
Hi Boat,
Ok you need to install autoconf and automake too, to do that you need to execute:
apt-get install automake autoconf
Regarding the Lame (libmp3lame) the configure parameter is –with-vorbis (With two – at the begining)
Thank you.
Best regards,
Andres Montalban
@Andres Montalban
Can’t make
root@iBoat:/usr/src/ogg# ./autogen.sh
checking for autoconf…
checking for automake 1.6 or later… automake
checking for aclocal 1.6 or later… aclocal
checking for libtool… libtoolize
I am going to run ./configure with no arguments – if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
Generating configuration files for libogg, please wait….
aclocal
aclocal:configure.in:18: warning: macro `AM_PROG_LIBTOOL’ not found in library
libtoolize –automake
autoheader
automake –add-missing
src/Makefile.am:5: Libtool library used but `LIBTOOL’ is undefined
src/Makefile.am:5:
src/Makefile.am:5: The usual way to define `LIBTOOL’ is to add `AC_PROG_LIBTOOL’
src/Makefile.am:5: to `configure.in’ and run `aclocal’ and `autoconf’ again.
root@iBoat:/usr/src/ogg# make
make: *** No targets specified and no makefile found. Stop.
root@iBoat:/usr/src/ogg#
Thank you.
Hi Boat,
We can install all the software listed here in this page and ClipBucket in your server for $50, if you want to contract our services please go to http://www.am-techsys.com and click on Support button to create a new ticket and we will send you the instructions to do the payment.
Thank you very much for your time.
Best regards,
Andres Montalban
Thank you for your time.
I install Complete
But I upload video to my web can’t play and file size 1k and path can’t find
Ex. http://192.168.1.250/upload/video/6765SA96X7NB/sdf
help me Please
I followed everything to the letter, but I can’t get OGG or FFMPEG installed correctely.
When intalling vorbis it says:
checking for OGG… no
checking for Ogg… no
*** Could not run Ogg test program, checking why…
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding Ogg or finding the wrong
*** version of Ogg. If it is not finding Ogg, you’ll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: must have Ogg installed!
Hi Jeremy,
Don’t know in what part of this howto you are but as the error show you should either execute ldconfig to refresh the libraries installed on your server or to modify the paths in your LD_LIBRARY_PATH to scan the directory where your OGG library is.
If you require further assistance we can take a look at your server, please visit http://www.amtechhelp.com and contact us either using the support tab or the contact section.
Thank you very much for checking our my website.
All the best,
Andres Montalban
Great work … I have install it on Debian lenny .. It works great .. the modification is as follows:
1. get the multimedia-keyring from wget http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb and install it.
2. add to /etc/apt/sources.list:
deb http://www.debian-multimedia.org lenny main
deb-src http://www.debian-multimedia.org lenny main
3. run apt-get update
4. follow the procedure starting from installing yasm.
5. FAAC url is not working, just fetch it from audiocoding site.
6. Thanks to for Andres who posted this howto
Hi Arandas!
Thank you for sharing that with us, I have fixed the FAAC URL it was a typo (Missing s in projects), now it should work. Regarding your guide in Debian, I am wondering if you feel comfortable writing a howto for Debian Lenny so we can post it in another howto, let me know what you think.
Thank you very much for your time!
Have a great weekend.
All the best,
Andres Montalban
Hi Andres,
Sure man, i will prepare the full steps asap and post it here..
thanks alot for the suggestion
great weekend for you too
Andres,
i think the updated svn 22608 has a bug .. this is what the out of ffmpeg make:
/usr/src/ffmpeg/libswscale/libswscale.so: undefined reference to `av_bswap16′
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
i changed to older version and it works …
thanks
Hi Arandas,
Yes you were right, it seems that the libswscale needed a more recent FFMPEG version, I have updated the howto in order to fix this since I ran with the same issue when I was installing FFMPEG in a customer server.
Thank you for the input!
All the best,
Andres Montalban
when i install ffmpeg and mp4box is shows some error, can you help me to install it to make it run? when i check in clip-bucket server module it show some triangle sign on some module. pls email me. thanks
Hi Edward,
Thanks for checking out this howto, yes we can help you to install FFMPEG on your server to run ok in your server, please visit http://amtechhelp.com and click on the support tab or in the contact section and we will assist you.
Thank you very much for your time.
All the best,
Andres Montalban
now i have this problem with the make: *** [x264_g] Error 1
Hi andres,
when im trying to install the ffmpeg o get this:
[ffmpeg_g] Error 1
and in the clipbucket i have this modules with errors:
libfaac
libx264
libtheora
Please help!!!
Hi Dimitris,
Can you post more information about the errors? With the provided information I am unable to help, try to add at least 5 lines before the error. If you want please go to our website at http://amtechhelp.com and we can assist you with your FFMPEG server installation, for more information you can check the particular section of FFMPEG installation at http://amtechhelp.com/ffmpeg-installation/
Thank you very much for your time.
All the best,
Andres Montalban
Can you also create a tutorial for Debian Lenny. Because I come not just continue PLEASE
i get this error… and i think that the svn ffmpeg has problem
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_o pen_98′
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_d elayed_frames’
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_picture_i nit’
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
I have installed FFMPEG (FFmpeg version SVN-r25146)and MP4box (MP4Box – GPAC version 0.4.5) but my Paths are not correct, I am using Cpanel what should I do ?
FFMPEG /usr/bin/ffmpeg /usr/bin/ffmpeg/
PHP /usr/bin/php /usr/bin/local/php
FLVTool 2 /usr/bin/flvtool2 /usr/bin/flvtool2
MP4Box /usr/local/bin/MP4Box /usr/bin/MP4Box
Hola Andrés, no sé si prefieres que me comunique contigo en español o en inglés. Me es indiferente. Simplemente quería decirte que recurro a ti porque he seguido tu guía de instalación de paquetes para poner en marcha ClipBucket. ClipBucket no me ha presentado problemas a la hora de instalar. El problema viene a la hora de comprimir vídeo. Cuando quiero subir algún vídeo desde mi equipo local a ClipBucket, me es imposible debido a la compresión de este. En la información de módulos del servidor, muestra libxvid y libvorbis en rojo y con el icono de admiración (warning) y ffmpeg con el icono de admiración también. No sé porqué sucede esto ya que tengo la librería de libvorbis instalad y la librería xvidcore instalada también. Ffmpeg está también instalada. He llegado a tal punto que si dominas este tema, estoy dispuesto a concederte las credenciales para que puedas acceder a la máquina en cuestión para intentar resolver el problema, ya que yo he intentado numerosas soluciones propuestas en la red y todas y cada una de ellas no me han dado una solución válida.
Gracias por tu tiempo y atención.
Saludos.
you have omitted the references of the repositories that you have used, please can you specify it?
I would use git clone git://git.videolan.org/x264.git for VLAN’s server so you get the most updated version.