Install Guide - CentOS 6 / 7 - FFMPEG + MP4 + FLV, Mplayer + Clipbucket + Extras


#1

I will setup your server / Fix your server - Contact me
Most Problems are fixed in my Guide or by using the SEARCH BOX Use it !!

If you are looking for a Pre-Setup Server or VPS I sell them HERE – Contact me for 20% off + PROMOTIONAL CODE’S

NEW Shared CB Hosting - ClipBucket Shared Cpanel Hosting (click) - Realistic Shared solutions for people who are looking to get started and want a good quality host that wont oversell with unlimited everything promises.


BIGSTACK’S CLIP BUCKET INSTALL -----
— Needed Files Stored Safely on ----
Bstack.net Repo to prevent from ----
— link changes. ----------------------

NOTES - READ !!
This is for CentOS 5.x and 6.x ---- Version 3 will use the GIT install (A Known Working Copy) of FFMPEG

  • I recommend CentOS 6.x 64x - Easy to use and setup

CPANEL Based Server Section:
If your server have Cpanel on it or will have Cpanel on it you will need to edit a file first before installing this (you will change it back later)

WHM/CPANEL ONLY You will need to TEMPORARILY edit the yum config file for cpanel because perl / ruby is blocked for update / installs.

To do this edit this file as such: commands:

yum install nano -y nano /etc/yum.conf at the beginning of the file you will see this

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* [B]ruby*[/B] spamassassin* squirrelmail.......

you need to delete the following perl* AND ruby* — just arrow over to them and backspace over them leaving 1 space between the 2 other items there (like its not there)
so it should look like:

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* spamassassin* squirrelmail.......

#IMPORTANT - YOU WILL BREAK CPANEL if you DO NOT FOLLOW THIS #
You DO NOT / SHOULD NOT run any of the yum updates / php install / mysql installs if you are using CPANEL… you will only need to do add the RPM forge repo and then run the following commands and then Skip down to the Auto Installer Files. (php settings and other configs are done from Cpanel ROOT (WHM)

yum groupinstall 'Development Tools' -y yum install ruby -y yum install yasm subversion -y yum install git -y yum install freeglut-devel mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel

RUN THE AUTO INSTALLER

Do the MANUAL install of FLVTOOL at the bottom of my guide as the script has problems installing that with Cpanel installed…

After your done installed everything CHANGE THE FILE back to how it was originally. OR YOU WILL BREAK CPANEL!! *I warned you

-----END WHM/CPANEL-----

#INSTALL START#
-------- Start System Base ----------

# – Install RPM Forge --#

[CODE]32x:
CentOS 5.x:
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

CentOS 6.x :
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

64x:
CentOS 5.x :
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

CentOS 6.x :
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm[/CODE]#

– Install Atomicorp –

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh

-------- Install Updates and Services ----------

[CODE]yum update -y

yum groupinstall ‘Development Tools’ -y

yum install ruby -y

yum install httpd httpd-devel -y

/etc/init.d/httpd start

yum install mysql mysql-server mysql-devel -y

/etc/init.d/mysqld start[/CODE]

— PHP Install / Setup —

NOTE: You will end up with php 5.3.X
Some Systems Might have a DateTime() issue
once site is installed. If this Happens FIX Is at BOTTOM

yum install nano -y

NOTE - PHP 5.4 is now default for yum install… Please change:
Use nano to edit:

nano /etc/yum.conf

Look for an “exclude” value at the file if its not there add it in or add to it.

exclude=php*5.4* php*5.5*

Save with Control + O then Enter

Continue install:

yum install php php-mysql php-common php-gd php-mbstring php-devel php-xml gd gd-devel php-gd -y

yum install yasm subversion -y

yum install git -y

yum install freeglut-devel mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel

chkconfig mysqld on
chkconfig httpd on

— Webmin Install (if wanted / needed) ----
The next section will install WebMin if you are going to use a different control panel or already have one dont install webmin

rpm -Uhv http://repo.bstack.net/webmin/webmin-1.700-1.noarch.rpm

--------------- You Will see -----------------
Webmin install complete. You can now login to http://domain.com:10000/ as root with your root password.
-------- End webmin ----------

--------- FFMPEG / Codecs / Resources Install------------
Note: You will need to hit enter 2 times near the end when it asks you to checkout mplayer this will be toward the end of the install.

cd mkdir ffmpegauto cd ffmpegauto wget http://www.bstack.net/repo/ffmpegauto/ffmpegauto_v3.2.zip unzip ffmpegauto_v3.2.zip chmod 777 * ./install.sh
This will take Long time go grab a snack
--------- END FFMPEG / Codecs Install ------------

--------- Get Preset Files -------------

cd /usr/local/cpffmpeg/share/ffmpeg wget http://repo.bstack.net/ffmpegauto/libx264-hq.ffpreset wget http://repo.bstack.net/ffmpegauto/libx264-normal.ffpreset cd
-------- END Get Preset Files -------------

---- SINGLE INSTALLS -----

------- MP4Box Install ---------

cd /usr/local/src/ wget http://repo.bstack.net/mp4box/gpac-0.4.5.tar.gz wget http://repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gz tar -zxvf gpac-0.4.5.tar.gz tar -zxvf gpac_extra_libs-0.4.5.tar.gz cd gpac_extra_libs cp -r * /usr/local/src/gpac/extra_lib cd .. cd gpac chmod 755 configure ./configure make lib make apps make install lib make install cp bin/gcc/libgpac.so /usr/lib install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so chmod +x /usr/local/lib/libgpac.so ldconfigYou “MIGHT” Need to change the ClipBucket MP4Boc location: -#
/usr/local/bin/MP4Box

--------- MP4Box END ------------

-------- FLVtool Install ---------

yum install ruby -y cd /usr/local/src wget http://repo.bstack.net/flvtool/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
------ END FLVtool Install --------

---- Set PHP.ini File Limits and Properties —

nano /etc/php.inihit Ctrl w – Will bring up search (control key + w key)
Type:

post_max_size and hit enter
You will be taken to the line where that appears
Change the default value usually 8M

Change -- 8M to 1024M (this will be 1G)Don’t make this value larger than the amount of RAM in your server
Don’t Hit Enter or any keys just type the number
NEXT
Ctrl+w again
backspace or clear out the search box if needed
Search for

upload_max_filesizeDo the same thing as above change the Number

Lastly
Find

"short_open_tag" (Search it with ctrl+w)Set to “on”:

short_open_tag = OnNOW SAVE

Crtl+o then the Enter Keyexit nano

Ctrl+xReboot Your Server

reboot When it comes back up continue below

------------ Clip Bucket Install -------------------

------- Download Clip Bucket ---------
This is just a sample setup you are free to install however you want
Since im running webmin the path to public folder is /var/www/html
I will be installing it to /var/www/html/clip
Which will then make domain.com/clip the URL

cd cd /var/www/html## Change this if you want ##

mkdir clip cd clipNote 2.6 is what this link is I will try to keep up with new releases just change link
I have also manually fixed some known erros in files such as low quality problem *SQL injection patch included

wget http://repo.bstack.net/clipbucket/cb_2.6.1.zip unzip cb_2.6.1.zipThats it for the Download there will be a clip folder in html
You can now go install clipbucket – below is optional but will help
To make it easier on you later set the permissions on the files

** YOU ARE ABLE TO JUST HIGHLIGHT ALL THE LINES BELOW FOR CHMOD

chmod 777 includes chmod 777 files chmod 777 files/conversion_queue chmod 777 files/logs chmod 777 files/original chmod 777 files/temp chmod 777 files/thumbs chmod 777 files/photos chmod 777 files/videos chmod 777 files/mass_uploads chmod 777 files/temp/install.me chmod 777 images chmod 777 images/avatars chmod 777 images/backgrounds chmod 777 images/collection_thumbs chmod 777 images/category_thumbs chmod 777 images/groups_thumbs chmod 777 includes/langs/en.lang chmod 777 cache chmod 777 cache/comments chmod 777 cache/userfeeds chmod 777 cb_installthe permissions should show up green when you get to that page in the install

You now have to do the next part.
Go to WebMin Make a Database, Make a user, give permissions to user for database
remember what you have made
Go to your site or IP
for my example i would use
http://domain.com/clip OR http://IP.Address/clip

Possible Fixes for problems and extras at the bottom

#— Extras —#

-----------PHP DATE TIME ERROR -----------
If you see this all over your site:

“Warning: date(): It is not safe to rely on the system’s timezone settings…”

Depending on you knowledge of the php.ini file you can either manually put in you date time code:
Once again open up your php.ini file

nano /etc/php.iniHold Control + vThis pages down when you read the edd of the file put this in
!! NOTE !!! — my server is in this area it is best if you look up the proper “AREA CITIES” for your server
Find yours here – http://www.php.net/manual/en/timezones.php

date.timezone = "America/New_York"[/CODE][CODE]Crtl+o  then Enter
Exit Crtl+x[/CODE]Restart httpd
[CODE]service httpd restart[/CODE]
------- END PHP FIX -----------

**------ Start FLVtool++ Install ---------**
[CODE]cd
yum install wget boost-devel gcc gcc-c++ -y
rpm -ivh http://repo.bstack.net/scons/scons-1.3.1-1.noarch.rpm
mkdir flvtool++
cd flvtool++
wget http://repo.bstack.net/flvtool++/flvtool++-1.2.1.tar.gz
tar zxf flvtool++-1.2.1.tar.gz
scons
mv flvtool++ /usr/local/bin
flvtool++
  • In your Clip Bucket Admin change the path for FLVTool ++ to
    /usr/local/bin/flvtool++

------- END FLVtool++ Install --------

*------- PHPmyADMIN Install CentOS ONLY ---------
Install/enable EPEL repository

rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm

Now update repositories - SAY “n” to getting the updates just run and say no

yum update

Install phpMyAdmin (make sure u keep the CAPS)

yum install phpMyAdmin

restart httpd service

service httpd restart

Open /etc/httpd/conf.d/phpMyAdmin.conf use nano (like above) find ALL the lines that have:
Deny from All and erase the lines should be 3 or 4 of them.
Visit: http://ur.IP.Addess/phpMyAdmin

*You will have to set a MySQL root password via putty if you have not already.

mysqladmin -u root password [I][COLOR=#0000FF]NEWPASSWORD[/COLOR][/I]

reference http://www.cyberciti.biz/faq/mysql-change-root-password/ for more info.

-------- PHPMyADMIN END ---------

------ PHP Shield --------
Clip Bucket Does NOT NEED THIS so IM NOT going to go threw this
However if you wish to isntall it you can get it here
NOTE - Unless you Know Linux Well I wouldnt Install this !!
PHP 5.3.x -> http://wiki.phpmotion.com/PHPShield53
PHP 5.2.x -> http://wiki.phpmotion.com/PHPShield525

Please let me know if you need help with anything and if you are looking for server / hosting I can provide them as I am a hosting provider.

I Will also Install all of this for you just hit me up with a donation after.

Best of Luck
Bigstack


If my posts have helped you please feel free to donate so that my servers can stay online

  • I will setup your server / Fix your server - Contact me for Pricing
  • Server Install and CB Setup Guide: CLICK HERE
  • Most Problems are fixed in my Guide or by using the SEARCH BOX Use it !!
  • If you are looking for a Pre-Setup Server or VPS I sell them HERE – Contact me for 20% off + PROMOTIONAL CODE’S

NEW Shared CB Hosting - ClipBucket Shared Cpanel Hosting (click)

  • Realistic Shared solutions for people who are looking to get started
    and want a good quality host that wont oversell with unlimited
    everything promises.

20% off for life of product. Use Promo Code: CBnewShared1 at checkout


Black/No thumbs created after video conversion
Failed video conversion 2
#2

hey
i install FFMPEG i see this message

                          Don't forget to do the following


            Edit your php.ini and increase the value of post_max_size if you need to post big files via php scripts


                            Don't forget to do the following


            Edit your php.ini and increase the value of post_max_size if you need to post big files via php scripts
            Edit your php.ini and  increase the value of upload_max_filesize if you need to upload big vidoe file
            Reboot web server
            Test the installation
            Edit your php.ini and  increase the value of upload_max_filesize if you need to upload big vidoe file
            Reboot web server
            Test the installation
            If you wish to grow this script  please make a donation at our website Bstack.net
            If you need  Server Management Contact us  https://bstack.net

            If you wish to grow this script  please make a donation at our website Bstack.net
            If you need  Server Management Contact us  https://bstack.net

[root@s18089183 ffmpegauto]#

but in my website i dont see ffmpeg :frowning:


#3

It will show up RED on the install screen the 2.6 CB installer checker cant detect the version of FFMPEG that gets installed (newest version that will work with CB 2.6 which is 0.9.1) Just continue through. It will be green in the main admin area.


#4

Ok thanks for info @BigStack :slight_smile:


#5

I’ve experience of the piece, but it did not work
I have to cPanel Control Panel
The installation of Apache and PHP automatically
Where to Start explanation?
Can I writing problems here


#6

I have used the guide to install this on countless number of Cpanel Servers. Just follow the steps inside the Cpanel section. Read EVERY line BEFORE you start running commands. It will explain what to skip / and what to use… Basically for Cpanel its get the RPM FORGE repo from the main code area then do the few lines in the Cpanel Section then do the Auto Installer.


#7

Can you give me your account at Skype


#8

Started on 2014-12-24 14:13:01 - 2014 Dec 24

Checking File …
File : /home/server1/public_html/files/conversion_queue/141943035102444.mp4
File Exists : Yes

Preparing file…
Unknown file details - Unable to get video details using FFMPEG

Converting Video
Conversion Command : /usr/local/bin/ffmpeg -i /home/server1/public_html/files/conversion_queue/141943035102444.mp4 -f flv -vcodec libx264 -vpre normal -r 25 -s 0x0 -aspect 0 -padcolor 000000 -padtop 0 -padbottom 0 -padleft 0 -padright 0 -acodec libfaac -ab 128000 -an /home/server1/public_html/files/videos/141943035102444.flv 2> /home/server1/public_html/files/temp/1419430381ac532.tmp

Conversion Details

ffmpeg version 0.9.1-syslint, Copyright © 2000-2012 the FFmpeg developers
built on Dec 24 2014 16:27:17 with gcc 4.4.7 20120313 (Red Hat 4.4.7-11)
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 4 / 53. 42. 4
libavformat 53. 24. 2 / 53. 24. 2
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 0x259b7a0] Read error
/home/server1/public_html/files/conversion_queue/141943035102444.mp4: Input/output error
Failed to stat file /home/server1/public_html/files/videos/141943035102444.flv!
Failed to stat file /home/server1/public_html/files/videos/141943035102444.flv!

Unknown file details - Unable to get output video details using FFMPEG

Time Took : 0.0323 seconds

conversion_status : failed


#9

opic compositor/visual_manager_3d_gl.opic compositor/x3d_geometry.opic laser/lsr_enc.opic laser/lsr_dec.opic laser/lsr_tables.opic -lm -L/usr/local/lib -L/usr/X11R6/lib -lGL -lglut -lz -ljpeg -lpng -lpthread -ldl
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make[1]: *** [libgpac.so] Error 1
make[1]: Leaving directory /usr/local/src/gpac/src' make: *** [lib] Error 2 [root@raptown gpac]# make apps make -C applications all make[1]: Entering directory/usr/local/src/gpac/applications’
set -e; for i in mp4box mp4client testapps/mp4_streamer testapps/mp42ts generators ; do make -C $i all; done
make[2]: Entering directory /usr/local/src/gpac/applications/mp4box' gcc -O3 -fno-strict-aliasing -Wno-pointer-sign -I/usr/local/src/gpac/include -c -o main.o main.c gcc -O3 -fno-strict-aliasing -Wno-pointer-sign -I/usr/local/src/gpac/include -c -o filedump.o filedump.c gcc -O3 -fno-strict-aliasing -Wno-pointer-sign -I/usr/local/src/gpac/include -c -o fileimport.o fileimport.c gcc -Wl --warn-common -o ../../bin/gcc/MP4Box main.o filedump.o fileimport.o -L../../bin/gcc -lgpac -lz -L/usr/X11R6/lib -lGL -lglut /usr/bin/ld: cannot find -lgpac collect2: ld returned 1 exit status make[2]: *** [MP4Box] Error 1 make[2]: Leaving directory/usr/local/src/gpac/applications/mp4box’
make[1]: *** [apps] Error 2
make[1]: Leaving directory /usr/local/src/gpac/applications' make: *** [apps] Error 2 [root@raptown gpac]# make install lib install -d "/usr/local" install -d "/usr/local/bin" install -m 755 bin/gcc/MP4Box "/usr/local/bin" install: cannot statbin/gcc/MP4Box’: No such file or directory
make: *** [install] Error 1
[root@raptown gpac]# make install
install -d “/usr/local”
install -d “/usr/local/bin”
install -m 755 bin/gcc/MP4Box “/usr/local/bin”
install: cannot stat `bin/gcc/MP4Box’: No such file or directory
make: *** [install] Error 1
[root@raptown gpac]#

How to fix ?


#10

any tips for ffmpeg install on debian linux?


#11

nt work for me cd: /usr/bin/ffmpeg: Not a directory


#12

I think chmod 777 -> chmod -R 777 is better,especially you want to change language


#13

Without doubt I prefer Debian


#14

I have this error.

No FFmpeg checkout, press enter to download one with git or CTRL+C to abort


#15

i try to install on fresh CentOS 6.7 64bit but getting the following error i tried twice
no cpanel etc install just install centos fresh on vps.

make[1]: *** [libavcodec/vaapi_encode_h264.o] Error 1
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2
make[1]: Leaving directory `/usr/src/ffmpegscript/mplayer/ffmpeg'
make[1]: Leaving directory `/usr/src/ffmpegscript/mplayer/ffmpeg'
cp: cannot create regular file `/usr/local/cpffmpeg/etc/mplayer/codecs.conf': No such file or directory
Installation of mplayer.tar.gz ....... Completed
Installation of mplayer.tar.gz ....... Completed


   Mplayer installation Failed :(  Many reasons possible. Check if x264 installed correctly




   Mplayer installation Failed :(  Many reasons possible. Check if x264 installed correctly

#16

install nux desktop repo and install mplayer.
http://ask.xmodulo.com/enable-nux-dextop-repository-centos-rhel.html


#17

i have install nux desktop repo and still facing the same issue…


Video wont convert
#18

you using an auto installer?


try this set of directions looks like libavcodec did not install right
have to open the file in text editor and do steps manuually


#19

I will have to update the script its trying to pull from the old GIT repo link.


#20

@BigStack i read some where in this forum Saqib told some one … the mplayer role is over… clip bucket is not using mplayer anymore… it will be good if you remove mplayer from your auto-installer.

waiting for the latest auto-installer repo.

yes i found the thread : http://discourse.clipbucket.com/t/clipbucket-2-8-1-beta-1-ffmpeg-and-mp4box-wrong-default-path-and-blank-mplayer-field/1767