Page 1 of 2 12 LastLast
Results 1 to 15 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

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
  •