hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Security and Technology Tutorials : HOWTO install FFMPEG
Reply

Forum Jump

HOWTO install FFMPEG

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476

HOWTO install FFMPEG


FFMPEG INSTALLATION FROM SOURCE
FFMPEG INSTALLATION FROM SOURCE
installed by:
Robertas Dereskevicius
Edited by Jon Nikolakakis
OS/ Fedora Core 5

Summary
download and install:
libffac
libffad2
xvid
libogg,libvorbis
mp3lame
ffmpeg

Setting Up Install Folder, Logging and download Packages
1)Log into ssh
2) cd /usr/src && mkdir install && cd install
3) Download faad2 and faac
from http://faac.sourceforge.net/oldsite/download.php get Faad2 and faac (new versions)

wget http://prdownloads.sourceforge.net/f...ar.gz?download
wget http://prdownloads.sourceforge.net/f...ar.gz?download

4) Verify that you have these components are installed
rpm -qa automake
rpm -qa autoconf
rpm -qa libtool
rpm -qa m4
rpm -qa gcc-c++

If any are missing than simply yum install (packagename), if you dont have a package manager than get one, it will save you alot of time
and headaches.

Installing Faac
5)tar -zxvf faac-1.24.tar.gz && cd faac
6) sh bootstrap
7) ./configure
8) make
9) make install
10) cd ..

Installing Faad2
11) tar -zxvf faad2-2.0.tar.gz
12) cd faad2 && less README.linux
13) There is 2 bugs with this package, so need to manually edit these files
14) nano Makefile.am
Edit the file to look like this
SUBDIRS = libfaad common frontend plugins
EXTRA_DIST = faad2.spec

15) cd common/mp4ff && nano mp4ffint.h
16) Comment out this line
//void mp4ff_track_add(mp4ff_t *f);

17)Save file and cd ../..
18)autoreconf -vif
19) ./configure
20) make
21) make install

Installing Libogg and Libvorbis
22)cd .. and then Check to see if libogg and libvorbs
rpm -qa libogg-devel
rpm -qa libvorbis-devel
rpm -qa libncurses-devel

If not installed then simply Package Install (replace yum and install settings with your package manager)
yum install libogg-devel
yum install libvorbis-devel
yum install libncurses-devel

Installing LAME (for audio)
23)go into lame sourceforge - http://sourceforge.net/project/showf...package_id=309
24)wget http://mesh.dl.sourceforge.net/sourc...me-3.97.tar.gz
25)tar -zxvf lame-3.97.tar.gz
26)cd lame*
27) ./configure; make;make install

Installing Xvid
28) cd .. && wget http://downloads.xvid.org/downloads/...e-1.1.2.tar.gz
29)tar -zxvf xvidcore-1.1.2.tar.gz && cd xvid*/build/generic/
30) ./configure; make; make install;
31) cd ../../..

Installing ffmpeg
32) rpm -q subversion If not install, then install subversion
33)svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg && cd ffmpeg
34) ./configure --enable-shared --enable-xvid --enable-vorbis --enable-libogg --enable-mp3lame --enable-gpl --enable-faad --enable-faac --enable-a52
35)make
36)make install

If Installation went ok, run
ldd ./ffmpeg
If Path to Lib Libraries are not ok

37)Check to see if /usr/local/lib exists on this file
cat /etc/ld.so.conf

If not
echo /usr/local/lib >>/etc/ld.so.conf

38) cat/etc/ld.so.conf Now check to see if (/usr/local/lib exist)
39) save file
40) ldconfig
41) run ldd ./ffmpeg

FFmpeg should be complete and installed. On some servers you may need to add Disable Shared and enable flags.

__________________
Video Script - www.cihilt.com


Last edited by anon-e-mouse; 12-28-2006 at 07:21 AM.


Sponsored Links
  #2  
Old
Junior Guru Wannabe
 
Join Date: May 2006
Posts: 69
Very nice.
I will be installing this pretty soon.

  #3  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
New Version, improved some of the writing.
I've been doing many ffmpeg installations and made some adjustments.

Estimated time to install is less than 20 minutes if everything runs smoothly. Which it hardly ever does. My record is 16 minutes.

I will try to keep this up2date at
http://www.webhostingtalk.com/showth...45#post4234345

__________________
Video Script - www.cihilt.com


Last edited by anon-e-mouse; 12-28-2006 at 07:22 AM.
Sponsored Links
  #4  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 535
Quote:
Originally Posted by Blueheaven
New Version, improved some of the writing.
I've been doing many ffmpeg installations and made some adjustments.

Estimated time to install is less than 20 minutes if everything runs smoothly. Which it hardly ever does. My record is 16 minutes.

I will try to keep this up2date at
http://www.webhostingtalk.com/showth...45#post4234345
hi i want to add 3gp support can you do an example with amr and 3pg like shown here http://flowplayer.sourceforge.net/encoding.html

  #5  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 535
i'm also getting this error when running "make instal"l for Faac on my linux redhat server

In file included from /usr/local/include/mp4.h:35,
from main.c:33:
/usr/local/include/mpeg4ip.h:41:28: mpeg4ip_config.h: No such file or directory
In file included from input.h:26,
from main.c:73:
../config.h:92:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from /usr/local/include/mp4.h:35,
from main.c:33:
/usr/local/include/mpeg4ip.h:47:1: warning: this is the location of the previous definition
In file included from input.h:26,
from main.c:73:
../config.h:95:1: warning: "PACKAGE_NAME" redefined
In file included from /usr/local/include/mp4.h:35,
from main.c:33:
/usr/local/include/mpeg4ip.h:48:1: warning: this is the location of the previous definition
In file included from input.h:26,
from main.c:73:
../config.h:98:1: warning: "PACKAGE_STRING" redefined
In file included from /usr/local/include/mp4.h:35,
from main.c:33:
/usr/local/include/mpeg4ip.h:49:1: warning: this is the location of the previous definition
In file included from input.h:26,
from main.c:73:
../config.h:101:1: warning: "PACKAGE_TARNAME" redefined
In file included from /usr/local/include/mp4.h:35,
from main.c:33:
/usr/local/include/mpeg4ip.h:50:1: warning: this is the location of the previous definition
In file included from input.h:26,
from main.c:73:
../config.h:104:1: warning: "PACKAGE_VERSION" redefined
In file included from /usr/local/include/mp4.h:35,
from main.c:33:
/usr/local/include/mpeg4ip.h:51:1: warning: this is the location of the previous definition
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/usr/src/install/faac/frontend'
make: *** [install-recursive] Error 1

  #6  
Old
Newbie
 
Join Date: Jan 2006
Posts: 22
im stuck on this part:

Installing ffmpeg
32) rpm -q subversion If not install, then install subversion
33)svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg && cd ffmpeg
34) ./configure --enable-shared --enable-xvid --enable-vorbis --enable-libogg --enable-mp3lame --enable-gpl --enable-faad --enable-faac --enable-a52
35)make
36)make install





root@server [~]# rpm -q subversion
package subversion is not installed
root@server [~]# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg && cd ffmpeg
-bash: svn: command not found
root@server [~]#

  #7  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
I suggest to either install subversion via source, or ffmpeg via source, it wont make much difference.

once you have tar zxvf the .bz2 ffmpeg package, then just run the configure lines.

Also when I have some more time, I will write more info about how to install and with 3gp support.

__________________
Video Script - www.cihilt.com

  #8  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 535
Quote:
Originally Posted by Blueheaven
I suggest to either install subversion via source, or ffmpeg via source, it wont make much difference.

once you have tar zxvf the .bz2 ffmpeg package, then just run the configure lines.

Also when I have some more time, I will write more info about how to install and with 3gp support.
can you tell me how to install 3gp support

  #9  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
Yes I have a new guide to install with 3gp support and x264, along with installing ffmpeg on Dreamhost, will rewrite these guides very soon.

Theres also some editing that needs to be done for the guide above to make it work on some servers.

__________________
Video Script - www.cihilt.com

  #10  
Old
New Member
 
Join Date: Jan 2007
Posts: 0
NEW to SSH

Hi I am having trouble making a directory in SSH bash

nothing I do seems to work - it won't allow it

Help is very much appreciated. Thanks

  #11  
Old
Web Hosting Evangelist
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 535
there is a better install how-to on http://forums.theplanet.com go to the How-to section. it worked for me.

  #12  
Old
New Member
 
Join Date: Mar 2007
Posts: 0
Hi

Quote:
Originally Posted by Fay808
Hi I am having trouble making a directory in SSH bash

nothing I do seems to work - it won't allow it

Help is very much appreciated. Thanks

HI, R U STILL HAVING THAT PROBLEM?
TRY LOGING AS "ROOT" IF U HAVNT.

IF YOU HAVE ISTALLED FFMPEG, THEN I WOULD REALLY APRECIATE YOUR HELP ANSWERING ONE QUESTION FOR ME.

LET ME KNW
THANX

  #13  
Old
Newbie
 
Join Date: Feb 2007
Posts: 10
I stuck with step Installing FFMPEG. Please help!

HI.

As soon as i run the step 34 ./congifure i got this error in SSH:

Unable to create and execute files in /tmp. Set the TMPDIR environment
variable to another directory and make sure that /tmp is not mounted
noexec.
Sanity test failed.
If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.


Please show me how to fix this so that i can go to next step.

__________________
Happy New Year 2011!

  #14  
Old
WHT Addict
 
Join Date: Jul 2004
Posts: 146
For anyone having problems with faac and faad2, these older versions should work nicely:

wget http://dfn.dl.sourceforge.net/source...ac-1.24.tar.gz
tar zxvf faac-1.24.tar.gz
cd faac
chmod 777 bootstrap
./bootstrap
./configure
make
make install
cd ../
make install
cd ../
rm -rf faac

wget http://dfn.dl.sourceforge.net/source...2.0-rc3.tar.gz
tar zxvf faad2-2.0-rc3.tar.gz
cd faad2
chmod 777 bootstrap
./bootstrap
./configure
make
make install
cd ../
rm -rf faad2

  #15  
Old
New Member
 
Join Date: May 2007
Posts: 0
Installed ffmpeg or not

Hi
I followed your instructions for the ffmpeg only
I got this reply
# ldd ./ffmpeg
libavformat.so.51 => not found
libavcodec.so.51 => not found
libavutil.so.49 => not found
libm.so.6 => /lib/tls/libm.so.6 (0xb7fbb000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7e8f000)
/lib/ld-linux.so.2 (0xb7fe8000)

I am just stuck. Is the ffmpeg installed on the server?

Or I have to do it again.

Is installing ffmpeg enough to convert files of other formats to .flv by using php?

Regards
Alpine

Reply

Related posts from TheWhir.com
Title Type Date Posted
AHosting Launches ClipBucket-Optimized Web Hosting Web Hosting News 2014-07-21 10:29:12
Tweet that Claims the US Government Wants to Ban Bitcoin Actually Spreading Malware Web Hosting News 2014-05-23 13:57:57
Veterans Website, IE 10 Users Targeted in Possible Attempt to Steal Military Secrets Web Hosting News 2014-02-14 13:36:54
Arvixe Partners with SiteApps for SMB App Marketplace Web Hosting News 2014-05-01 08:22:20
Web Hosting Sales and Promos Roundup - November 8, 2013 Web Hosting News 2014-05-23 15:42:41


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?