FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Technical Support » Linux Dedicated Servers

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 16-02-11, 01:27 PM
Moderator
 
Join Date: Nov 2010
Posts: 131
Default Install FFMPEG on LINUX server

How to install FFMPEG on LINUX server

I got the script from my technical team member roonie. The procedure will guide you how to install the FFMPEG on any of the Linux cPanel server. Please follow the steps for installation of ffmpeg on the cpanel server. But Every time I got new errors. so I have found these manually FFMPG installation.

================================
Download the required files for it processing :

cd /usr/local/src

Quote:
wget Download LAME (Lame Aint an MP3 Encoder) from SourceForge.net
wget http://downloads.xiph.org/releases/o...g-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/v...s-1.1.2.tar.gz
wget http://www1.mplayerhq.hu/MPlayer/rel...061022.tar.bz2
Extract All Files :
--------------------------------------------
tar zxvf lame-3.97.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar jxvf essential-20061022.tar.bz2
--------------------------------------------

chown root.root * -R

yum install subversion ruby ncurses-devel

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
If you are using secure tmp:

--------------------------------------------
mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp
Installing Lame:
--------------------------------------------


cd /usr/local/src/lame-3.97
./configure
make && make install
Installing Libogg:

--------------------------------------------
cd /usr/local/src/libogg-1.1.3
./configure && make && make install
Installing libvorbis:
--------------------------------------------

cd /usr/local/src/libvorbis-1.1.2

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

./configure && make && make install
Installing flvtool2:
Quote:
gem install flvtool2
Installing ffmpeg:

--------------------------------------------
cd /usr/local/src/ffmpeg/
./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
make && make install

ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
ln -s /usr/local/lib/libavcodec.so.52 /usr/lib/libavcodec.so.52
ln -s /usr/local/lib/libavutil.so.50 /usr/lib/libavutil.so.50
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
ln -s /usr/local/lib/libavfilter.so.1 /usr/lib/libavfilter.so.1
ln -s /usr/local/lib/libswscale.so.0 /usr/lib/libswscale.so.0
ln -s /usr/local/lib/libogg.so.0 /usr/lib/libogg.so.0
ln -s /usr/local/lib/libogg.so.0 /usr/lib/libogg.so.0

Installing ffmpeg-php:
--------------------------------------------
cd /usr/local/src

svn co https://ffmpeg-php.svn.sourceforge.n...oot/ffmpeg-php ffmpeg-php

cd /usr/local/src/ffmpeg-php/trunk/ffmpeg-php

phpize
./configure

cp ffmpeg_frame.loT ffmpeg_frame.lo

make && make install
cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so /usr/local/lib/php/extensions/

Install mplayer & mencoder:
--------------------------------------------
mkdir /usr/local/lib/codecs/

mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

later
--------------------------------------------
yum install mplayer mencoder
--------------------------------------------

Restart apache:
__________________
UK VPS Hosting || SEO Server || Cloud Hosting
Looking for extra income ?
Join our webhosting affiliate program and earn upto £300 Webhosting UK Affiliate
Reply With Quote

  #2 (permalink)  
Old 09-05-11, 01:58 AM
~Phil~'s Avatar
Member
 
Join Date: Aug 2010
Posts: 32
Default

Hello Jeffrey,

I Thank Jeffrey and Ronnie fully endorse the steps provided here to install FFMPEG on LINUX server.

The steps here are manual way of installing FFMPEG, if you wish to do the same thing in automated way here is the script.

Please follow these steps carefully.
Quote:
1. root@server [~]# cd /usr/src/ (to go into the directory /usr/src/ )

2. root@server [~]# Download ffmpeginstaller 3 series Latest Stable Release at using the following command
root@server [~]# wget http://mirror.ffmpeginstaller.com/ol...l.3.2.1.tar.gz

Note: ffmpeginstaller 3 scripts will install stable versions of all binaries. ffmpeginstaller version 4 will install all latest dependencies of ffmpeg and mplayer, and also use svn version of ffmpeg and mplayer. Version 4 and 5 may cause problem on your VPS. I recommend you install Version 3.

3. root@server [~]# Unzip the file
tar -xzvf ffmpeginstall.3.2.1.tar.gz
cd ffmpeginstall.3.2.1

4. Run the installer.
root@server [~]# ./install.sh

The script will find your php.ini, enter the php.ini full path to confirm the installation.

Which generally can be found out using the command

root@server [~]# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
Just use the above path and you are done..!

To check if the FFMPEG is installed successfully use the following command and check the output. If you get this output consider job well done..!

Quote:
root@server [~]#which ffmpeg
/usr/bin/ffmpeg
Reply With Quote

  #3 (permalink)  
Old 24-05-11, 01:01 PM
Moderator
 
Join Date: Nov 2010
Posts: 131
Default

Quote:
Originally Posted by ~Phil~ View Post
Hello Jeffrey,

I Thank Jeffrey and Ronnie fully endorse the steps provided here to install FFMPEG on LINUX server.

The steps here are manual way of installing FFMPEG, if you wish to do the same thing in automated way here is the script.

Please follow these steps carefully.


Just use the above path and you are done..!

To check if the FFMPEG is installed successfully use the following command and check the output. If you get this output consider job well done..!
Thanks Phil for the updates
__________________
UK VPS Hosting || SEO Server || Cloud Hosting
Looking for extra income ?
Join our webhosting affiliate program and earn upto £300 Webhosting UK Affiliate
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 09:01 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials