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 » Web Hosting and Domains » FAQ's / Tutorials.

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 15-09-10, 09:02 AM
WHUK-Ralf's Avatar
Technical Support
 
Join Date: Oct 2008
Posts: 24
Cool FFMPEG installation on CentOS

Hi,

FFMPEG is an open source application and developed in Linux which allows to convert the audio and video files easily in different formats. It supports most of the codec and converts from one file format to another. It includes libavcodec, a leading audio/video codec library.



yum, rpm, wget commands must be configured on your server and you must know how to use these commands. These installation process worked well for me and my colleges. But I suggest you totake backup of your system files, before modifying them.

Installation Process

Before installing FFMPEG, install all external codec libraries. Now, connect to your server with the help of any SSH client like putty by providing hostname of the server, username and password.

Quote:
#cd /usr/local/src/
Create a directory for all further steps.

Quote:
#mkdir installation

#cd installation
Install LAME MP3 Encoder

You need to download LAME MP3 Encoder from here;

Untar the lame file by using

Quote:
#tar zxvf lame-3.98.4.tar.gz
Assign 777 permission to the lame directory

Quote:
#chmod 777 lame -R
Now move to lame directory

Quote:
#cd lame

#./configure

#make

#make install
Adding the DAG repository.

Create and edit a new file

Quote:
#vi /etc/yum.repos.d/dag.repo
Add the following lines to the mentioned file

Quote:
[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
Save and quit from the file.

To use DAG repository with command yum successfully, you need to add GPG Key. Failure to do so result in an error:

Quote:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Public key for faac.x86_64.1.26-1.el5.rf.rpm is not installed
To add the the GPG Keyfor DAG, execute following command;

If you don't want to validate the GPG Key, edit the file /etc/yum.repos.d/dag.repo and change gpgcheck=1 to gpgcheck=0.

Now, update all packages on server

Quote:
#yum update
Now, your server is ready to install FFMPEG with yum. First, we will search available packages of FFmpeg.

Quote:
#yum search ffmpeg
In result, I get three packages to be installed. Packages are as follows"ffmpeg, ffmpeg-devel, and ffmpeglibpostproc"

Quote:
#yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc
Install supporting packages 'mplayer, mencoder, flvtool2"

Quote:
#yum -y install mplayer mencoder flvtool2
In order to work FFMPEG with PHP, we need to install following packages;

Quote:
ffmpeg-0.4.9_pre1 or higher
php-4.3.0 or higher
gd-2.0 or higher
php-devel
And to install above packages, execute below commands;

Quote:
#yum install php-gd
Now, you are ready to install FFMPEG-PHP;

Download latest avalible package for ffmpeg-php

Untar the package file

Quote:
#tar -xjf ffmpeg-php-0.6.0.tbz2
Move into ffmpeg-php-0.6.0 directory

Quote:
#cd ffmpeg-php-0.6.0

#phpize

#./configure && make

#make install
With the help of above, ffmpeg.so module will copy to default location of php modules. Now, you need to add the ffmpeg.so in php.ini of the server to enable it. And add following line in it.

Quote:
#vi /usr/local/lib/php.ini
extension=ffmpeg.so
To get effective the changes, you need to restart the apache service on the server.

Quote:
#/etc/init.d/httpd restart
And to confirm that ffmpeg module is listed in php configuration of server.

Quote:
#php -m | grep ffmpeg
That's all you are done.
__________________
WHUK-Ralf
http://www.webhosting.uk.com
Reply With Quote

  #2 (permalink)  
Old 03-12-10, 09:23 AM
new member
 
Join Date: Dec 2010
Posts: 1
Default

i m searching that from last 4 hours on google.a big thnx for your post.i really need it.
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 06:53 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