Page 1 of 2 12 LastLast
Results 1 to 25 of 30
  1. #1
    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.
    Last edited by anon-e-mouse; 12-28-2006 at 07:21 AM.
    Video Script - www.cihilt.com

  2. #2
    Join Date
    May 2006
    Posts
    69
    Very nice.
    I will be installing this pretty soon.

  3. #3
    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
    Last edited by anon-e-mouse; 12-28-2006 at 07:22 AM.
    Video Script - www.cihilt.com

  4. #4
    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. #5
    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. #6
    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. #7
    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. #8
    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. #9
    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. #10

    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. #11
    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. #12

    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. #13

    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. #14
    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. #15

    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

  16. #16
    Join Date
    Apr 2004
    Posts
    476

    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
    Video Script - www.cihilt.com

  17. #17
    Join Date
    Feb 2007
    Posts
    301
    Cool, thanks for the link...

  18. #18
    Join Date
    Jul 2004
    Posts
    518
    Quote Originally Posted by Blueheaven View Post
    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
    Hey, the guide seem to be down. Can you paste it to here? Thanks a lot!
    |ーWe are all born to this world To meet a certain person; it must be soー|

  19. #19
    Join Date
    Jul 2003
    Posts
    527
    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 (C2000-2006 MPlayer Team
    CPU
    Intel(RCore(TM)2 CPU          6600  2.40GHz (Family6Model15Stepping6)
    CPUflagsType6 MMX1 MMX21 3DNow0 3DNow20 SSE1 SSE21
    Compiled 
    for x86 CPU with extensionsMMX MMX2 SSE SSE2

    98 audio 
    216 video codecs
    success
    format0  data0x0 0x4cf53a
    REAL file format detected
    .
    Stream descriptionVideo 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)
    [
    Vfilefmt:11  fourcc:0x30335652  size:312x220  fps:15.00  ftime:=0.0667
    Opening video filter
    : [expand osd=1]
    Expand: -1 x -1, -; -1osd1aspect0.000000round1
    ==========================================================================
    Opening video decoder: [realvidRealVideo decoder
    Error
    : /usr/local/cpffmpeg/lib/codecs//drvc.so: cannot open shared object file: No such file or directory
    ERRORCould not open required DirectShow codec drvc.so.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvidRealVideo decoder
    Error
    : /usr/local/cpffmpeg/lib/codecs//drv3.so.6.0: cannot open shared object file: No such file or directory
    ERRORCould not open required DirectShow codec drv3.so.6.0.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvidRealVideo decoder
    ERROR
    Could not open required DirectShow codec drv33260.dll.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvidRealVideo decoder
    Error
    : /usr/local/cpffmpeg/lib/codecs//drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
    ERRORCould 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!
    ========================================================================== 

  20. #20

    Unhappy

    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.

  21. #21

    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
    That's it
    :: Mountain Network Systems :: 323-933-9291
    eCommerce solutions since 1995
    http://www.webcart.net/

  22. #22
    Join Date
    Sep 2002
    Location
    Among the corn
    Posts
    10,648
    Quote Originally Posted by Webcart View Post
    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
    That's it
    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)

  23. #23
    Quote Originally Posted by linux-tech View Post
    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)
    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
    :: Mountain Network Systems :: 323-933-9291
    eCommerce solutions since 1995
    http://www.webcart.net/

  24. #24
    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:

    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
    Step 4: REMOVE multimedia repos as they contain unstable packages and you don't want to update your OS with them
    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.

  25. #25
    Join Date
    May 2008
    Posts
    3
    thanks for the tutorial

Page 1 of 2 12 LastLast

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •