Results 1 to 25 of 30
Thread: HOWTO install FFMPEG
-
11-27-2006, 08:43 PM #1Web Hosting Evangelist
- Join Date
- Apr 2004
- Posts
- 500
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.Last edited by anon-e-mouse; 12-28-2006 at 07:21 AM.
... -
-
12-25-2006, 06:54 AM #2Junior Guru Wannabe
- Join Date
- May 2006
- Posts
- 74
Very nice.
I will be installing this pretty soon.
-
12-28-2006, 06:33 AM #3Web Hosting Evangelist
- Join Date
- Apr 2004
- Posts
- 500
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#post4234345Last edited by anon-e-mouse; 12-28-2006 at 07:22 AM.
... -
-
12-31-2006, 09:44 AM #4Web Hosting Master
- Join Date
- Apr 2004
- Location
- Atlanta, GA
- Posts
- 550
Originally Posted by Blueheaven
-
12-31-2006, 10:45 AM #5Web Hosting Master
- Join Date
- Apr 2004
- Location
- Atlanta, GA
- Posts
- 550
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
-
01-14-2007, 04:19 PM #6Newbie
- Join Date
- Jan 2006
- Posts
- 23
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 [~]#
-
01-14-2007, 09:22 PM #7Web Hosting Evangelist
- Join Date
- Apr 2004
- Posts
- 500
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.... -
-
01-24-2007, 09:45 PM #8Web Hosting Master
- Join Date
- Apr 2004
- Location
- Atlanta, GA
- Posts
- 550
Originally Posted by Blueheaven
-
01-25-2007, 08:57 AM #9Web Hosting Evangelist
- Join Date
- Apr 2004
- Posts
- 500
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.... -
-
01-29-2007, 05:18 PM #10New Member
- Join Date
- Jan 2007
- Posts
- 1
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
-
01-29-2007, 05:36 PM #11Web Hosting Master
- Join Date
- Apr 2004
- Location
- Atlanta, GA
- Posts
- 550
there is a better install how-to on http://forums.theplanet.com go to the How-to section. it worked for me.
-
03-01-2007, 03:52 PM #12New Member
- Join Date
- Mar 2007
- Posts
- 1
Hi
Originally Posted by Fay808
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
-
05-15-2007, 04:43 PM #13Newbie
- Join Date
- Feb 2007
- Posts
- 11
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!
-
05-19-2007, 11:54 AM #14WHT Addict
- Join Date
- Jul 2004
- Posts
- 148
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
-
05-22-2007, 07:23 AM #15New Member
- Join Date
- May 2007
- Posts
- 1
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
-
05-24-2007, 07:00 PM #16Web Hosting Evangelist
- Join Date
- Apr 2004
- Posts
- 500
FFmpeg Installation in 5 minutes
You can set up ffmpeg now in less than 5 minutes, check out this guide we wrote yesterday.
http://www.cihilt.com/ffmpeg_installation_in_5min... -
-
05-24-2007, 07:32 PM #17Web Hosting Guru
- Join Date
- Feb 2007
- Posts
- 304
Cool, thanks for the link...
-
08-17-2007, 01:56 PM #18Web Hosting Evangelist
- Join Date
- Jul 2004
- Posts
- 520
-
10-04-2007, 08:56 AM #19Web Hosting Evangelist
- Join Date
- Jul 2003
- Posts
- 533
so far i can conver most video formats BUT i have problems with RM and RAM files
they want convert
this is a sample
PHP Code:# /usr/local/bin/mencoder 1941.ram -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi
MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
98 audio & 216 video codecs
success: format: 0 data: 0x0 - 0x4cf53a
REAL file format detected.
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Stream mimetype: logical-fileinfo
VIDEO: [RV30] 312x220 24bpp 15.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:11 fourcc:0x30335652 size:312x220 fps:15.00 ftime:=0.0667
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/local/cpffmpeg/lib/codecs//drvc.so: cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/local/cpffmpeg/lib/codecs//drv3.so.6.0: cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drv3.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
ERROR: Could not open required DirectShow codec drv33260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/local/cpffmpeg/lib/codecs//drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x30335652.
Read DOCS/HTML/en/codecs.html!
==========================================================================
-
01-26-2008, 04:54 PM #20New Member
- Join Date
- Jan 2008
- Posts
- 1
Hi!
i get
./bootstrap: line 3: aclocal: command not found
./bootstrap: line 4: autoheader: command not found
./bootstrap: line 5: libtoolize: command not found
./bootstrap: line 6: automake: command not found
./bootstrap: line 7: autoconf: command not found
how can i fix that?, sorry this is my first time.
-
02-02-2008, 03:49 AM #21WHT Addict
- Join Date
- Jun 2004
- Posts
- 173
Alternative HOWTO - newbies friendly
Here is another HOWTO for those in a hurry (works on RH and CentOS):
1. Configure Dag Wieers's RPM repository as explained here.
2. Run
Code:yum install ffmpeg
-
02-02-2008, 08:46 PM #22
That does about 1/2 the job, and relies on RPMS. The more efficient way to do this is to compile things as they are constantly updated. There's a few pretty good tutorials out there, but nothing great, as most of this stuff is months old.
I'm in the process of working on a live script that will allow users to just change version numbers, not sure how I'll release it quite yet, but we'll see.
yum install ffmpeg will install 'ffmpeg', but nothing more. It won't get the required codecs, it won't get the php stuff, mplayer stuff, and other required materials for running php based sites (such as clipshare)Tom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
02-03-2008, 04:03 AM #23WHT Addict
- Join Date
- Jun 2004
- Posts
- 173
I am not quite sure what you mean by "more efficient way to do this", certainly, not the amount of time spent on the installation
I also wonder whether you actually took the time to check Dag's repository or at the very least tried to do "yum install ffmpeg" and see what gets installed (last time I checked it, there were 16 packages or so in total).
Of course, compiling from sources gives you more control, but I don't think everyone wants or needs more control, some people just want to get started... the easy way
-
04-18-2008, 05:13 PM #24Newbie
- Join Date
- Sep 2007
- Posts
- 15
Here's a quicker way to install much of the optional libs for ffmpeg and mplayer:
Step 1: Install Yum (redhat based distro) / apt-get (debian based distro)
Step 2: Add the multimedia repos for your OS
example on Ubuntu dapper:
Step 3:
On debian based distros do:Step 4: REMOVE multimedia repos as they contain unstable packages and you don't want to update your OS with them
apt-get install libogg-dev libvorbis-dev libtheora-dev libfaad2-dev libfaac-dev liblame-dev libdca-dev liba52-0.7.4-dev libxvidcore4-dev x264-dev libgsm1-dev libjpeg62-dev libdc1394-dev libimlib2-dev
On redhat based distros do:
yum install libogg-devel libvorbis-devel libtheora-devel faad2-devel faac-devel lame-devel libdca-devel a52dec-devel xvidcore-devel x264-devel libgsm1-devel libjpeg62-dev libdc1394-devel libimlib2-dev
You now only need to install amr-nb and amr-wb from source.
After which you can compile ffmpeg with 3GP support with this:
cd ffmpeg \
&& mkdir working \
&& cd working \
&& wget 3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip \
&& wget 3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip \
&& unzip -q 26104-510.zip \
&& unzip -q 26204-510.zip \
&& cd .. \
&& mkdir libavcodec/amr_float \
&& mkdir libavcodec/amrwb_float \
&& cd libavcodec/amr_float \
&& unzip -q ../../working/26104-510_ANSI_C_source_code.zip \
&& cd ../amrwb_float \
&& unzip -q ../../working/26204-510_ANSI-C_source_code.zip \
&& cd ../../ && ./configure --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads \
--enable-liba52 --enable-liba52bin \
--enable-libamr-nb --enable-libamr-wb --enable-libdc1394 \
--enable-libfaac --enable-libfaad --enable-libfaadbin \
--enable-libmp3lame --enable-libtheora --enable-libvorbis \
--enable-libx264 --enable-libxvid \
&& make && make install && ldconfig && cd ..
This ffmpeg is ultimate. It supports every single codec possible at the moment by ffmpeg.
<<snipped>>Last edited by bear; 04-19-2008 at 07:47 AM.
-
05-10-2008, 11:20 PM #25Temporarily Suspended
- Join Date
- May 2008
- Posts
- 6
thanks for the tutorial