Results 1 to 30 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
    541
    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
    541
    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





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

  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
    541
    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
    541
    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
    [email protected] 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
    Top Secret
    Posts
    11,686
    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)
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

  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

  26. #26
    Join Date
    Feb 2003
    Location
    Montreal. Canada
    Posts
    222
    im getting this error when trying to ./configure ffmpeg-php after ive done a phpize.

    i did configure ffmpeg as --enable shared so im not sure why i am getting this error.

    Can anyone help ? im running CentOS

    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking whether gcc and cc understand -c and -o together... yes
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i686-redhat-linux-gnu
    checking host system type... i686-redhat-linux-gnu
    checking target system type... i686-redhat-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
    checking for PHP extension directory... /usr/lib/php/modules
    checking for PHP installed headers prefix... /usr/include/php
    checking for re2c... no
    configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking for ffmpeg support... yes, shared
    checking whether to force gd support in ffmpeg-php... no
    checking for ffmpeg headers... ...found in /usr/local/include/libav*
    checking for ffmpeg libavcodec.so...
    configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
    [[email protected] ffmpeg-php]# make
    make: *** No targets specified and no makefile found. Stop.

  27. #27
    Join Date
    Oct 2007
    Location
    Kochi,INDIA
    Posts
    331
    Hi,

    Here is the fully working ffmpeg installation instruction with AMR-NB and AMR-WB support (3gp)

    http://gnusys.net/install-ffmpeg-wit...mr-wb-support/
    http://xtendweb.gnusys.net/
    Plug in Nginx & Plug in performance on cPanel systems
    WebOps on cPanel . Deploy webapps to multiple servers and scale horizontally

  28. #28
    Join Date
    Jan 2005
    Location
    WHT, where else?
    Posts
    416
    I have problem when installing ffmpeg with the configure step:

    here's the command I tried to run gives me error:

    Code:
    ./configure -enable-shared -enable-gpl -enable-libxvid -enable-libvorbis -enable-nonfree -enable-libamr-nb -enable-libamr-wb -enable-libfaac -enable-libfaad -enable-libfaadbin -enable-libgsm -enable-libmp3lame -enable-libtheora
    The error is:
    Unknown option "-enable-shared".
    then I run './configure --help' to see available options:

    Code:
    Usage: configure [options]
    Options: [defaults in brackets after descriptions]
    
    Standard options:
      --help                   print this message
      --logfile=FILE           log tests and output to FILE [config.err]
      --disable-logging        do not log configure debug information
      --prefix=PREFIX          install in PREFIX []
      --bindir=DIR             install binaries in DIR [PREFIX/bin]
      --libdir=DIR             install libs in DIR [PREFIX/lib]
      --shlibdir=DIR           install shared libs in DIR [PREFIX/lib]
      --incdir=DIR             install includes in DIR [PREFIX/include]
      --mandir=DIR             install man page in DIR [PREFIX/share/man]
      --enable-static          build static libraries [default=yes]
      --disable-static         do not build static libraries [default=no]
      --enable-shared          build shared libraries [default=no]
      --disable-shared         do not build shared libraries [default=yes]
      --enable-gpl             allow use of GPL code, the resulting libav*
                               and ffmpeg will be under GPL [default=no]
      --enable-nonfree         allow use of nonfree code, the resulting libav*
                               and ffmpeg will be unredistributable [default=no]
      --enable-postproc        enable GPLed postprocessing support [default=no]
      --enable-swscale         software scaler support [default=no]
      --enable-avfilter        video filter support (replaces vhook) [default=no]
      --enable-avfilter-lavf   video filters dependant on avformat [default=no]
      --enable-beosthreads     use BeOS threads [default=no]
      --enable-os2threads      use OS/2 threads [default=no]
      --enable-pthreads        use pthreads [default=no]
      --enable-w32threads      use Win32 threads [default=no]
      --enable-x11grab         enable X11 grabbing [default=no]
    
    External library support:
      --enable-mlib            use Sun medialib [default=no]
      --enable-avisynth        allow reading AVISynth script files [default=no]
      --enable-libamr-nb       enable libamr-nb floating point audio codec
      --enable-libamr-wb       enable libamr-wb floating point audio codec
      --enable-libdc1394       enable IIDC-1394 grabbing using libdc1394
                               and libraw1394 [default=no]
      --enable-libdirac        enable Dirac support via libdirac [default=no]
      --enable-libfaac         enable FAAC support via libfaac [default=no]
      --enable-libfaad         enable FAAD support via libfaad [default=no]
      --enable-libfaadbin      open libfaad.so.0 at runtime [default=no]
      --enable-libgsm          enable GSM support via libgsm [default=no]
      --enable-libmp3lame      enable MP3 encoding via libmp3lame [default=no]
      --enable-libnut          enable NUT (de)muxing via libnut,
                               native demuxer exists [default=no]
      --enable-libschroedinger enable Dirac support via libschroedinger [default=no]
      --enable-libtheora       enable Theora encoding via libtheora [default=no]
      --enable-libvorbis       enable Vorbis encoding via libvorbis,
                               native implementation exists [default=no]
      --enable-libx264         enable H.264 encoding via x264 [default=no]
      --enable-libxvid         enable Xvid encoding via xvidcore,
                               native MPEG-4/Xvid encoder exists [default=no]
    
    Advanced options (experts only):
      --source-path=PATH       path to source code [/usr/src/install/ffmpeg]
      --cross-prefix=PREFIX    use PREFIX for compilation tools []
      --enable-cross-compile   assume a cross-compiler is used
      --target-os=OS           compiler targets OS [linux]
      --cc=CC                  use C compiler CC [gcc]
      --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS [ -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112]
      --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS []
      --extra-libs=ELIBS       add ELIBS []
      --extra-version=STRING   version string suffix []
      --build-suffix=SUFFIX    suffix for application specific build []
      --arch=ARCH              select architecture  [i686]
      --cpu=CPU                selects the minimum cpu required (affects
                               instruction selection, may crash on older CPUs)
      --enable-powerpc-perf    enable performance report on PPC
                               (requires enabling PMC)
      --disable-mmx            disable MMX usage
      --disable-mmx2           disable MMX2 usage
      --disable-ssse3          disable SSSE3 usage
      --disable-armv5te        disable armv5te usage
      --disable-armv6          disable armv6 usage
      --disable-armvfp         disable ARM VFP usage
      --disable-iwmmxt         disable iwmmxt usage
      --disable-altivec        disable AltiVec usage
      --disable-network        disable network support [default=no]
      --disable-ipv6           disable ipv6 support [default=no]
      --disable-zlib           disable zlib [default=no]
      --disable-bzlib          disable bzlib [default=no]
      --disable-vhook          disable video hooking support
      --disable-mpegaudio-hp   faster (but less accurate)
                               MPEG audio decoding [default=no]
      --enable-gray            enable full grayscale support (slower color)
      --disable-ffmpeg         disable ffmpeg build
      --disable-ffserver       disable ffserver build
      --disable-ffplay         disable ffplay build
      --enable-small           optimize for size instead of speed
      --enable-hardcoded-tables use hardcoded tables instead of runtime generation
      --enable-memalign-hack   emulate memalign, interferes with memory debuggers
      --disable-encoder=NAME   disables encoder NAME
      --enable-encoder=NAME    enables encoder NAME
      --disable-decoder=NAME   disables decoder NAME
      --enable-decoder=NAME    enables decoder NAME
      --disable-encoders       disables all encoders
      --disable-decoders       disables all decoders
      --disable-muxer=NAME     disables muxer NAME
      --enable-muxer=NAME      enables muxer NAME
      --disable-muxers         disables all muxers
      --disable-demuxer=NAME   disables demuxer NAME
      --enable-demuxer=NAME    enables demuxer NAME
      --disable-demuxers       disables all demuxers
      --enable-parser=NAME     enables parser NAME
      --disable-parser=NAME    disables parser NAME
      --disable-parsers        disables all parsers
      --enable-bsf=NAME        enables bitstream filter NAME
      --disable-bsf=NAME       disables bitstream filter NAME
      --disable-bsfs           disables all bitstream filters
      --enable-protocol=NAME   enables protocol NAME
      --disable-protocol=NAME  disables protocol NAME
      --disable-protocols      disables all protocols
      --disable-devices        disables all devices
      --enable-filter=NAME     enables filter NAME
      --disable-filter=NAME    disables filter NAME
      --disable-filters        disables all filters
      --list-decoders          show all available decoders
      --list-encoders          show all available encoders
      --list-muxers            show all available muxers
      --list-demuxers          show all available demuxers
      --list-parsers           show all available parsers
      --list-protocols         show all available protocols
      --list-bsfs              show all available bitstream filters
      --list-indevs            show all available input devices
      --list-outdevs           show all available output devices
      --list-filters           show all available filters
    
    Developer options (useful when working on FFmpeg itself):
      --disable-debug          disable debugging symbols
      --enable-debug=LEVEL     set the debug level []
      --enable-gprof           enable profiling with gprof []
      --disable-optimizations  disable compiler optimizations
      --enable-extra-warnings  enable more compiler warnings
      --disable-stripping      disable stripping of executables and shared libraries
    
    NOTE: Object files are built at the place where configure is launched.
    See that 'shared' is enabled, I don't understand why I got that error. Anyone could help me out? pls

    thanks
    Tubenode.com - FFMPEG, PHP & RoR Hosting
    RCholic.com - R/C videos sharing

  29. #29
    Join Date
    Oct 2006
    Location
    /usr/src/linux/
    Posts
    699
    --enable-shared instead of -enable-shared same applies for the other options you supplied.

  30. #30
    Join Date
    Jan 2005
    Location
    WHT, where else?
    Posts
    416
    Quote Originally Posted by DigitalLinx View Post
    --enable-shared instead of -enable-shared same applies for the other options you supplied.
    thanks! that helps me resolve the problem I had. However, I got a new problem when trying to install ffmpeg-php.

    I followed this tutorial to install ffmpeg-php: http://www.hostgeekz.com/guides/Othe...FFmpeg-PHP.htm

    The output for 'php -i | grep ffmpeg' is:

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: undefined symbol: av_free_static in Unknown on line 0
    PWD => /usr/src/install/ffmpeg-php-0.5.0
    _SERVER["PWD"] => /usr/src/install/ffmpeg-php-0.5.0
    _ENV["PWD"] => /usr/src/install/ffmpeg-php-0.5.0
    When I 'make test' of the ffmpeg-php package, I got these failed errors:
    Code:
    =====================================================================
    Number of tests :   31                19
    Tests skipped   :   12 ( 38.7%) --------
    Tests warned    :    0 (  0.0%) (  0.0%)
    Tests failed    :   19 ( 61.3%) (100.0%)
    Tests passed    :    0 (  0.0%) (  0.0%)
    ---------------------------------------------------------------------
    Time taken      :    2 seconds
    =====================================================================
    
    =====================================================================
    FAILED TEST SUMMARY
    ---------------------------------------------------------------------
    ffmpeg getAudioBitRate test [tests/getAudioBitRate.phpt]
    ffmpeg getAudioChannels test [tests/getAudioChannels.phpt]
    ffmpeg getAudioCodec test [tests/getAudioCodec.phpt]
    ffmpeg getAudioSampleRate test [tests/getAudioSampleRate.phpt]
    ffmpeg getBitRate test [tests/getBitRate.phpt]
    ffmpeg getDuration test [tests/getDuration.phpt]
    ffmpeg getFileName test [tests/getFileName.phpt]
    ffmpeg getFrameCount test [tests/getFrameCount.phpt]
    ffmpeg getFrameHeight test [tests/getFrameHeight.phpt]
    ffmpeg getFrameNumber test [tests/getFrameNumber.phpt]
    ffmpeg getFrameRate test [tests/getFrameRate.phpt]
    ffmpeg getFrameWidth test [tests/getFrameWidth.phpt]
    ffmpeg getID3Info() test [tests/getID3Info.phpt]
    ffmpeg getPixelAspectRatio test [tests/getPixelAspectRatio.phpt]
    ffmpeg getPixelFormat test [tests/getPixelFormat.phpt]
    ffmpeg getVideoBitRate test [tests/getVideoBitRate.phpt]
    ffmpeg getVideoCodec test [tests/getVideoCodec.phpt]
    ffmpeg hasAudio test [tests/hasAudio.phpt]
    ffmpeg persistent movie test [tests/persistentMovie.phpt]
    =====================================================================
    anyone has a clue how to fix it?

    appreciate it.
    Tubenode.com - FFMPEG, PHP & RoR Hosting
    RCholic.com - R/C videos sharing

Posting Permissions

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