Installing FFMPEG – The easy way!

General, dynamic, ffmpeg, ffmpeg-php, php, servers, technical, web hosting Add comments

A lot of people are getting hiring people to install FFMPEG as they think it’s a difficult task, but it’s much easier than you think if you follow these instructions. You should have root access & basic Linux knowledge to the server to follow these instructions.

1. Create a directory to do our work in
mkdir ~/ffmpeg
cd ~/ffmpeg

2. Get all the source files
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/ essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/ flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/ lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/ vorbis/libvorbis-1.1.2.tar.gz

3. Extract all the source files
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz

4. Create the codecs directory & import them
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)
yum install subversion
yum install ruby
yum install ncurses-devel

6. Get the latest FFMPEG/MPlayer from the subversion
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

7. Compile LAME
cd ~/ffmpeg/lame-3.97
./configure
make
make install

8. Compile libOGG
cd ~/ffmpeg/libogg-1.1.3
./configure
make
make install

9. Compile libVorbis
cd ~/ffmpeg/libvorbis-1.1.2
./configure
make
make install

10. Compile flvtool2
cd ~/ffmpeg/flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

11. Compile MPlayer
cd ~/ffmpeg/mplayer
./configure
make
make install

12. Compile FFMPEG
cd ~/ffmpeg/ffmpeg
./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
echo '#define HAVE_LRINTF 1' >> config.h
make
make install

13. Finalize the codec setups
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

14. Compile FFMPEG-PHP
cd ~/ffmpeg/ ffmpeg-php-0.5.0
phpize
./configure
make
make install

15. Install FFMPEG-PHP (make sure the php.ini path is correct.)
echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini

16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)
service httpd restart

17. Verify if it works
php -r 'phpinfo();' | grep ffmpeg

If you get a few lines such as
ffmpeg
ffmpeg support (ffmpeg-php) => enabled
ffmpeg-php version => 0.5.0
ffmpeg.allow_persistent => 0 => 0

Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder & libOGG.

161 Responses to “Installing FFMPEG – The easy way!”

  1. Jason Says:

    Can ffmpeg be compiled for php5?

  2. vexxhost Says:

    Jason,

    It is possible, the same procedure should work except if PHP5 is in a different path, you should run a different the “phpize” of the PHP5 path and the “php-config” of the PHP5 path.

    Not forgetting to put the right php.ini path too. :)

  3. Jason Says:

    thanks I was able to get it working I had a mis typed directory in my php.ini

    Cheers,

    Jay

  4. Eric Says:

    i like your numbering ..9,10,11,11,12,12,13….

  5. vexxhost Says:

    Woops. Fixed. :)

  6. Dennis Says:

    ahh, nice instructions. The latest ffmpeg svn source requires –enable-libmp3lame –enable-libogg –enable-libvorbis

    Everything seems to compile fine, but when I run ffmpeg I get this error:

    ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avcodec_alloc_context2

    I can’t even find avcodec_alloc_context2 googling…

  7. Dennis Says:

    oops, was trying to run with system version of one of the libraries, rather than the version in /usr/local. adjusting LD_LIBRARY_PATH fixed this problem.

  8. Paul Says:

    Thanks! Very helpful.
    For RHEL4 you need:

    up2date install subversion
    up2date install ruby

    My distribution already had ncurses-devel

    I also needed to add:
    /usr/local/lib

    to etc/ld.so.conf

    and then run ldconfig

    also, I think, for step 15 I used:
    echo ‘extension=ffmpeg.so’ >> /etc/php.ini

    PHP - CLI, I believe, is not there default for RHEL4, so I set up a simple php file with phpinfo(); for step 17. Everything appears to be there…

    Thanks again!

  9. Shane Holloman Says:

    All was going very smoothly untill I hit this road block configuring libvorbis-1.1.2:

    Here’s the tail end of the config process:

    checking for pkg-config… yes
    checking for pkg-config… /usr/bin/pkg-config
    checking for ogg >= 1.0… Package ogg was not found in the pkg-config search path.
    Perhaps you should add the directory containing `ogg.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘ogg’ found
    checking for Ogg… no
    *** Could not run Ogg test program, checking why…
    *** The test program compiled, but did not run. This usually means
    *** that the run-time linker is not finding Ogg or finding the wrong
    *** version of Ogg. If it is not finding Ogg, you’ll need to set your
    *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
    *** to the installed location Also, make sure you have run ldconfig if that
    *** is required on your system
    ***
    *** If you have an old version installed, it is best to remove it, although
    *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
    configure: error: must have Ogg installed!

    I was SOOOO excited, and the that sucked the wind outta my sail! any thoughts?

  10. Metrey Says:

    All these about installing with linux. How about with Windows XP etc. Can we do with it? I’ll try to install and read your comment carefully. Please help me with this.

    Thanks,
    Metrey,

  11. Bryan Says:

    I’ve followed the instructions word for word, and everything is installed fine. However when I do the verification: php -r ‘phpinfo();’ | grep ffmpeg I get the following response:

    root@server01 [~/ffmpeg/ffmpeg-php-0.5.0]# php -r ‘phpinfo();’ | grep ffmpeg
    OLDPWD => /root/ffmpeg
    PWD => /root/ffmpeg/ffmpeg-php-0.5.0
    _SERVER[”OLDPWD”] => /root/ffmpeg
    _SERVER[”PWD”] => /root/ffmpeg/ffmpeg-php-0.5.0
    _ENV[”OLDPWD”] => /root/ffmpeg
    _ENV[”PWD”] => /root/ffmpeg/ffmpeg-php-0.5.0

    Any ideas?

  12. vexxhost Says:

    It’s not an error, FFMPEG is installed now. :)

  13. Bryan Says:

    I can’t see it in my info.php file though. Does it not show up there?

  14. vexxhost Says:

    Then I guess you activated FFMPEG for the CLI version of PHP. On the info.php, make sure the file you added the information to is the same one listed on “Configuration File (php.ini) Path” IN the info.php

  15. Bryan Says:

    Yep…it all checks out. I have the extension (extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so) installed in the correct file according to my info.php (www.dimension-hosting.com/info.php).

    /usr/local/Zend/etc/php.ini

  16. Bryan Says:

    Sorry to hammer your blog, but I fixed it. I must’ve gotten a newer version of the extension. When I looked in the directory ../php/extensions I had the following directory: no-debug-non-zts-20060613

    Once I changed the extension it worked. Thanks for the great tutorial and all the help. :)

  17. Darren Says:

    Great howto here on vexxblog… could someone reply to Shane Holloman question I too have this problem. libvorbis-1.1.2 wont install due to Ogg.

    Thanks if someone can help

  18. Kevin Says:

    wget http://downloads.xiph.org/releases/ ogg/libogg-1.1.3.tar.gz
    tar zxvf libogg-1.1.3.tar.gz
    cd ~/libogg-1.1.3
    ./configure –enable-shared
    make
    make install

    this will install the shared libraries for libogg so libvorbis can detect them

  19. Scott Says:

    Does anyone have any links or tips on porting this process to freeBSD?

  20. Justus Says:

    Ugh. Any ides?

    [root@testbox html]# php -r ‘phpinfo();’ | grep ffmpeg
    PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/ffmpeg.so’ - /usr/lib/php/modules/ffmpeg.so: undefined symbol: zend_hash_add_or_update in Unknown on line 0
    OLDPWD => /home/hanna/ffmpeg2/ffmpeg-php-0.5.0
    _SERVER[”OLDPWD”] => /home/hanna/ffmpeg2/ffmpeg-php-0.5.0
    _ENV[”OLDPWD”] => /home/hanna/ffmpeg2/ffmpeg-php-0.5.0

  21. George Says:

    I used the following method to build and configure FAAD to this install so that you can decode AAC files (This is for Redhat EL3 but you can easily find the RPM’s on the same site for other plaforms):

    Step 1. Get RPM’s

    wget http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el3/en/i386/RPMS.dries/faad2-2.5-1.el3.rf.i386.rpm
    wget http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el3/en/i386/RPMS.dries/faad2-devel-2.5-1.el3.rf.i386.rpm

    Step 2.

    Install RPM’s

    cd ~/ffmpeg/
    rpm -Uvh faad2-2.5-1.el3.rf.i386.rpm
    rpm -Uvh faad2-devel-2.5-1.el3.rf.i386.rpm

    Change Step 12. Compile FFMPEG with FAAD support

    cd ~/ffmpeg/ffmpeg
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared –enable-libfaad –enable-gpl
    echo ‘#define HAVE_LRINTF 1′ >> config.h
    make
    make install

  22. steve Says:

    Would I have to modify these instructions to install ffmpeg without root access (e.g. on Dreamhost in my /home/username/bin dir)?

  23. Jay Says:

    Steve,

    DreamHost already runs FFMPEG with most common options and libraries installed. You can execute it from /usr/bin/ffmpeg. No need to waste your time or lose sleep over compiling it yourself.

    j.

  24. louis Says:

    I’m getting ‘permission denied’ on step 15 and 17 regarding the echo commands. Any idea how I can bypass this?

    I’ve tried:
    echo ‘extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so’ >> /etc/php5/apache2/php.ini

    And also with sudo at start.

    p.s I just migrated from windows XP 2 days ago :)

  25. louis Says:

    ok sorted that previous problem with chmod :p

    Now: php -r ‘phpinfo();’ | grep ffmpeg

    Returns:
    PWD => /home/louistsoi/ffmpeg/ffmpeg
    _SERVER[”PWD”] => /home/louistsoi/ffmpeg/ffmpeg
    _ENV[”PWD”] => /home/louistsoi/ffmpeg/ffmpeg

    And it doesn’t show up in my phpinfo().
    The php.ini is the correct one that I used for step 15

  26. louis Says:

    ok for step 15 I just tried:

    echo ‘extension=/usr/lib/php5/20051025/ffmpeg.so’ >> /etc/php5/apache2/php.ini

    still no luck.. I will now sit and cry for a little while

  27. louis Says:

    Ok, So after I dried my eyes, I slammed this line into php.ini and it worked!!!

    extension=ffmpeg.so

  28. Fran Says:

    I’m up to step 14 and the directory I’m currently in is /var/www/html/ffmpeg/ffmpeg-php-0.5.0

    I’ve tried the command:
    phpize
    Output: I get phpize: command not found

    ./configure
    Output: ./configure: No such file or directory

    make
    Output: make: *** No targets specified and no makefile found. Stop.

    make install
    Output: make: *** No rule to make target `install’. Stop.

    I’m stuckkkkk. Please help ;___;

  29. Fran Says:

    Nevermind .. I figured it out :)

  30. casey Says:

    How would one do this if they had a remote host? Install FFmpeg that is. Is it possible?

  31. Luis Says:

    hey guys, i need desperately help, this instructions seem to be perfect but i am so confused. Would someone install this for me if i give you my db name and password please?
    i have been trying to install it for over a week now.

  32. jeff Says:

    I am getting a rather nasty error when compiling mplayer on a dual xeon setup if that makes a difference.. here is the error, if anyone can help I would be very appreciative. Thanks,

    make[1]: Leaving directory `/root/ffmpeg/mplayer/libavformat’
    make -C libavcodec
    make[1]: Entering directory `/root/ffmpeg/mplayer/libavcodec’
    cc -I../libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil -I. -I.. -I../libavutil -O4 -march=nocona -mtune=nocona -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -c -o i386/dsputil_mmx.o i386/dsputil_mmx.c
    In file included from i386/../dsputil.h:33,
    from i386/dsputil_mmx.c:25:
    i386/../avcodec.h:2505: warning: ‘ImgReSampleContext’ is deprecated
    i386/../avcodec.h:2511: warning: ‘ImgReSampleContext’ is deprecated
    i386/dsputil_mmx.c: In function ‘dsputil_init_mmx’:
    i386/dsputil_mmx.c:3512: warning: assignment from incompatible pointer type
    i386/dsputil_mmx.c:3513: warning: assignment from incompatible pointer type
    i386/dsputil_mmx.o: No space left on device
    {standard input}: Assembler messages:
    {standard input}:119577: FATAL: Can’t write i386/dsputil_mmx.o: Illegal seek
    make[1]: *** [i386/dsputil_mmx.o] Error 1
    make[1]: Leaving directory `/root/ffmpeg/mplayer/libavcodec’
    make: *** [libavcodec/libavcodec.a] Error 2

  33. Beegee Says:

    Hi!
    This is extremely helpful :)

    I am trying to install this in a shared server (I have ssh access, and they allow me to compile programs !!), with no root access, everything anew, with php complied for my dir.

    to do this, for eah .configire, I need to add the –prefix=$HOME/mydir

    also before that, a couple of exports:

    export TMPDIR=$HOME/tmp
    export PATH=$HOME/bin:$PATH
    export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH
    export CPATH=$HOME/include:/usr/local/include:$CPATH
    export LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LIBRARY_PATH

    and created the following dirs

    lib
    bin
    inside $HOME

    and teh src dir to keep wget files !!

    so.. still playing.. anyone can give me some more tips??

  34. Jenny Says:

    hi there! can you please guide me installing the ffmpeg-php along with php on DreamHost ??

    Thanks

  35. Ryan Says:

    Hi,
    I got this error when tried to ./configure ffmpeg:
    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.

    ANy Ideas??

  36. Peter Says:

    i get this error on restarting the server:

    PHP Warning: Unknown(): Unable to load dynamic library ‘.//usr/local/lib/php/extensions/’ - .//usr/local/lib/php/extensions/: cannot read file data: Is a directory in Unknown on line 0
    PHP Warning: Unknown(): Unable to load dynamic library ‘.//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so’ - .//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

  37. dvolsysop Says:

    Have tried this procedure several times now with no success…

    php -r ‘phpinfo();’ | grep ffmpeg
    PWD => /home/dancetv/public_html/ffmpeg
    _SERVER[”PWD”] => /home/dancetv/public_html/ffmpeg
    _ENV[”PWD”] => /home/dancetv/public_html/ffmpeg

    Everything compiles ok for all of the source files. And all seems to install smoothly but obviously it is not installing properly and does not show up in phpinfo.

    Not sure where to go from here. Any advices to trouble shoot would be appreciated. Have been at this for 2 days now with no luck.

  38. zeo Says:

    “make” doesn’t work for ‘libogg’ and ‘libvorbis’. I get:

    make: *** No targets specified and no makefile found. Stop.

    ‘Makefile’ doesn’t exist or isn’t generated with ‘./configure’. I’ve tried qmake, but command doesn’t exits for debian.

    Any help?

  39. prasad Says:

    Thank you…worked nicely.

  40. seenu Says:

    hey,
    please help me,

    when i type

    yum install subversion
    yum install ruby
    yum install ncurses-devel

    6. Get the latest FFMPEG/MPlayer from the subversion
    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer”

    its saying no yum command so i tried install, its not showing anything even if i enter wrong file name,

    then when i type “svn…”
    its saying no command exists.

    please suggest me
    thanks.

  41. ffmpeg - webhostingtalk.nl Says:

    […] ffmpeg]# ik draai het op centos 4.4 64bit intel pentium 3ghz 512mb werk 2×80gb ik gebruik deze tut: http://vexxhost.com/blog/2007/03/03/…-the-easy-way/ Bij voorbaat […]

  42. CESAR Says:

    Hello,

    I have a problem.

    Only work with AVI.
    But mpeg mpg wmv… dont work

    $movie = new ffmpeg_movie(”video.mpg”, false);
    print “Movie Duration: ” . $movie->getDuration() . “\n”;
    print “Movie GetFrameCount: ” . $movie->getFrameCount() . “\n”;
    print “Movie GetFrameWidth: ” . $movie->getFrameWidth() . “\n”;
    print “Movie GetFrameHeight: ” . $movie->getFrameHeight() . “\n”;$frame = $movie->getFrame(15);
    $im = $frame->toGDImage();imagejpeg($im, “im_avi.jpg”);
    print ”;

    I just get page cannot be displayed.

    Any ideas?

  43. Peter Says:

    I am having a problem with the install procedure. All is OK until step 5. I get an error message:

    [root@localhost ffmpeg]# yum install subversion
    bash: yum: command not found
    [root@localhost ffmpeg]#

    I am using redhad linux version 9. Any ideas

  44. MA Razzaque Rupom Says:

    Hello,
    I followed your instructions and got ffmpeg done(My PHP version is 5.1.6).

    Thanks a lot for providing such helps.

    Best regards.

    Rupom

  45. Joe Says:

    if i have finish this how to succes full
    but i need 3gp suport

    how can i add this ?
    Any ideas?

    btw. if you add this yum repos (rpmforge.repo, mirrors-rpmforge, kbsingh-CentOS-Extras.repo, dag.repo)
    you can isntall all this tools using yum install
    (yum install libogg
    yum install libvorbis
    yum install flvtool2 … )

  46. linux_newbie Says:

    Wow, that looks so easy. I am sure I could do it blind folded! I got lost though at the “mkdir” instruction. What exactly does that do?

  47. blogmaster2003 Says:

    All goes well to:

    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

    this gives me an error:

    svn: Can’t connect to host ‘mplayerhq.hu’: Connection timed out

    how can i solve it?

  48. Mark Says:

    I can not tell you how much I appreciated this - chased RPM’s for dependencies for a day before I found your site - the documentation at the ffmpeg site was too cryptic.

    Thanks a million for the step by step - and FYI anyone on RHEL - make sure to read the notes left by Paul at #8

    THNKS A MILL!

  49. shankar Says:

    your instructions are so wonderful, i was able to set up ffmpeg on our hosting server.
    thanks for your great help..

  50. james Says:

    Hey, I am having the same problem as many of the people here. At step 9:
    cd ~/ffmpeg/libvorbis-1.1.2
    ./configure
    make
    make install

    I get his error:
    —————————————
    checking build system type… mkdir: cannot create directory `/home/username/TEMP//cg22385-8211′: No such file or directory
    mkdir: cannot create directory `/home/username/TEMP//cg-22385′: No such file or directory
    config.guess: cannot create a temporary directory in /home/username/TEMP/
    configure: error: cannot guess build type; you must specify one
    root@host [~/ffmpeg/libvorbis-1.1.2]# make
    make: *** No targets specified and no makefile found. Stop.
    root@host [~/ffmpeg/libvorbis-1.1.2]# make install
    —————————————

    I think it would help quite a few people out to find the answer to this problem. Has anyone been able to solve this?

  51. james Says:

    I don’t think I posted the error message properly. Here it is again - for step 9:

    ———————
    No package ‘ogg’ found
    checking for Ogg… no
    *** Could not run Ogg test program, checking why…
    *** The test program compiled, but did not run. This usually means
    *** that the run-time linker is not finding Ogg or finding the wrong
    *** version of Ogg. If it is not finding Ogg, you’ll need to set your
    *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
    *** to the installed location Also, make sure you have run ldconfig if that
    *** is required on your system
    ***
    *** If you have an old version installed, it is best to remove it, although
    *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
    configure: error: must have Ogg installed!
    ——————–

    So, yeah, thats the error. And Im stuck. It must have something to do with OGG but Im not sure what. I also don’t know what to do with LD_LIBRARY_PATH. Any guidance is MUCH MUCH appreciated. thanks

  52. Yevhen Says:

    Thanks for useful stuff.

  53. Kishore Says:

    It is all for linux environment. can I install this in windows help me Please

  54. GillesBailleux Says:

    I spent hours trying to install FFMPEG on a wamp 5 server (version 1.7.2) running with Apache/2.2.4, PHP5.2.3 and MySQL 5.0.41-community-nt. Could you write a step by step instruction ?
    Thank you !

  55. Installing FFMPEG in Fedora Core release 4 (Stentz) - Linux Forums Says:

    […] 5. lame-3.97 6. mplayer 7. ffmpeg 8. libvorbis-1.1.2 The have been follwoing URL instrustion. vexxblog Blog Archive Installing FFMPEG – The easy way! But I am not able to compaile or make the lame. When I am lame I am getting below message. " […]

  56. Balraj Says:

    Everything going fine upto 13th steps but when I compaile FFMPEG-PHP using phpize I am getting following error “bash: phpize: command not found”

    I am stuck this step please help me to fix this issue.

  57. Regd: ffmpeg-php Installation problem - Linux Forums Says:

    […] Hi, I have installed the ffmpeg in one Fedoracore Server. I have followed the below site setps. vexxblog Blog Archive Installing FFMPEG – The easy way! I have successfully completed up to 13. Finalize the codec setups now I am getting stuck in […]

  58. Arman Says:

    Hi,
    I got this error same as Ryan (above)when tried to ./configure ffmpeg:
    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 can somebody help?
    Thanks

  59. karina silva Says:

    I get same error too at step 9 when I type ./configure

    No package ‘ogg’ found
    checking for Ogg… no
    *** Could not run Ogg test program, checking why…
    *** The test program compiled, but did not run. This usually means
    *** that the run-time linker is not finding Ogg or finding the wrong
    *** version of Ogg. If it is not finding Ogg, you’ll need to set your
    *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
    *** to the installed location Also, make sure you have run ldconfig if that
    *** is required on your system
    ***
    *** If you have an old version installed, it is best to remove it, although
    *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
    configure: error: must have Ogg installed

    Can anyone help? I have searched the web and found several people with same error, but no solution.

    HELP pls!!!!!!!!

  60. guy Says:

    For those who get:

    checking for ogg >= 1.0… Package ogg was not found in the pkg-config search path.
    Perhaps you should add the directory containing `ogg.pc’
    to the PKG_CONFIG_PATH environment variable

    You need to update the path. I thought I was missing PKGCONFIG but it was installed on my system. Type this:

    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

    then

    export PKG_CONFIG_PATH

    In my case ogg.pc was in the pkgconfig subdirectory.

    good luck.

  61. superrfl Says:

    Hi there,
    Thank you all for this tutorial and your useful comments.
    I am following this tutorial to install under gentoo. But I am now stuck with step 5.
    1)Yum is an unknown command on Gentoo. Any alternative known?
    2)In the tutorial, I find no mention about downloading ruby, subversion and ncurses-devel. Do we have to do this as a separate step?
    Cheers to all

  62. superrfl Says:

    I think I found it: yum command in Gentoo should be : emerge
    Am I right?

  63. Mikey Says:

    Seems some of these links are out of date? When I try to “wget” it just says connot be found.

  64. Jynkz Says:

    hi! people nid help for installing of ffmpeg… i try somany times but i failed… somebody help me pls… my OS is winXP… ive install apache for my php scripts…

    thank you very much…..
    Jynkz™

  65. mad Says:

    It is all for linux environment. can I install this in windows help me Please

  66. Mind Freak Says:

    These instructions worked perfectly for my centos 4.4 box. Thank you very much I appreciate you posting this howto.

  67. RavenWorks Says:

    For people who are having problems with Yum, you can just get the source snapshots from the ffmpeg and mplayer website and compile those. (Not sure about ncurses-devel, I just skipped that but everything seemed to compile fine.)

    On the other hand, I’m stuck on step 15, I can’t find where ffmpeg.so is… I checked the extension_dir setting in my phpinfo page and it’s not in there. (It’s the same directory as it reports when I run ‘php -i’ too, so presumably it’s not a CLI/web problem..)

  68. RavenWorks Says:

    Also, it seems as though libavformat.so.50 did not install; I don’t know if this is a problem or not, since libavformat.so.51 seems to be present. (libavformat.so.50 is the only bright-red link in /usr/lib)

  69. RavenWorks Says:

    Aha! You can find ffmpeg.so by looking at the output of ffmpeg-php’s ‘make install’ :)

  70. Mohamed Says:

    I have this problem

    root@server [/usr/src/install/ffmpeg]# ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared

    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.

    How can i fix it please ?

  71. Billy Says:

    I searched this whole blog and can’t find the answer. When i try phpize it says command not found.

    Someone please get me an anwser!

  72. Leslie Says:

    Always when reach the step for “make” at mplayer, I always get the following error:

    cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a vidix/libvidix.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a libass/libass.a osdep/libosdep.a -lXext -lX11 -lpthread -lXv -lXinerama -lXxf86vm -lXxf86dga -lGL -ldl -lSDL -lpthread -lfaac -lx264 -lpthread -lmp3lame -L/usr/lib -L/usr/X11R6/lib -Wl,-z,noexecstack -lncurses -lsmbclient -lpng -lz -ljpeg -lasound -ldl -lpthread -L/usr/local/lib -Wl,–rpath -Wl,/usr/local/lib -lfreetype -lz -lfontconfig -lz -ldts -lxvidcore -lm -lpthread -ldl -rdynamic -llirc_client -lm
    libass/libass.a(ass_font.o)(.text+0×1ac): In function `face_set_size’:
    : undefined reference to `FT_Request_Size’
    libass/libass.a(ass_font.o)(.text+0×8c9): In function `ass_font_get_glyph’:
    : undefined reference to `FT_GlyphSlot_Oblique’
    collect2: ld returned 1 exit status
    make: *** [mplayer] Error 1

    Please help. What should I do to fix this. Thanks.

    Regards,
    Leslie

  73. Reqx Says:

    Hello, there is no mention of ffmpeg when I type:

    php -r ‘phpinfo();’ | grep ffmpeg

    Or when I load phpinfo in a web browser.

    /usr/local/lib/error_log shows the following:

    PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: undefined symbol: av_strlcpy in Unknown on line 0

    Any help please? I’ve searched google and this page and I haven’t been able to find a solution to this problem.

  74. Reqx Says:

    PS - CentOS, grsec kernel, apache 1.3.3.7, php5.2.1 - ioncube loader, xcache.

  75. shoaib aslam Says:

    hi,
    kindly plz you help me how can i install ffmpeg on windows OS.i don’t have any idea and not finding any help.plz guid me for this.i shall be very thankful to you.

  76. ลง ffmpeg อย่างง่ายๆ (รึเปล่า?) « gooogolf Says:

    […] Sep 6, 2007 in experiment Installing FFMPEG – The easy way! […]

  77. How I installed my FFMPEG Says:

    […] installing ffmpeg - the easy way […]

  78. George D. Says:

    I am sorry. I don’t know much about this so I follow step by step this guide. I stuck in step 5. I get :yum command not found”

    I am under SuSE 10.1 and really I don’t know what to do here…

  79. hibbert Says:

    wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/ essential-20061022.tar.bz2
    –> Resolving essential-20061022.tar.bz2… failed: Name or service not known.

    the file was not found.. *grml* and that at the start of the tutorial *grml*

    please fix it =)

  80. NullSoFt Says:

    [root@bgtubevps ffmpeg-php-0.5.0]# phpize
    bash: phpize: command not found

    OS: CentoS 5.x 64bit
    Name : php
    Arch : x86_64
    Version: 5.1.6
    Release: 12.el5
    Size : 3.3 M
    Repo : installed

  81. Faycal Says:

    i got the same error when running step #12
    ———————-
    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.

  82. refe Says:

    Hello
    4 linux guys i think what i’m going to write is fery usefull
    it says that u should add extension=ffmpeg.so to php.ini but doesn’t write the path… so i found the path
    4 me is /etc/php/cli-php5/php.ini ..but generaly i think it is in /etc/php/cli/php.ini..after that everything works just fine…

    good luck

  83. Ganio Says:

    hi
    I tried all
    on 3 I,m stuck can not do any thing
    it always says “: no such a directory ”
    it is on CentOS 4.5

    thanks

  84. TomasZ Says:

    i got this error msg
    ffmpeg-php-0.5.1]# phpize
    configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
    run info ‘(automake)Extending aclocal’
    or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
    configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
    configure.in:33: warning: underquoted definition of PHP_EXT_DIR
    configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
    configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
    acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C
    configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL
    If this token and others are legitimate, please use m4_pattern_allow.

  85. Jason Says:

    In regards to post:

    “Bryan Says:
    April 2nd, 2007 at 10:06 am”

    I have the same exact issue. I verified the file name is correct: no-debug-non-zts-20020429

    And I am still getting the message on verification:

    root@jason [~/ffmpeg]# php -r ‘phpinfo();’ | grep ffmpeg
    PWD => /root/ffmpeg
    _SERVER[”PWD”] => /root/ffmpeg
    _ENV[”PWD”] => /root/ffmpeg

    Any ideas?

  86. Jason Says:

    I continue to run into this error when installing “make” and “make install” on mplayer.

    Has anyone encountered this before?

    make[1]: *** [stream_dvd.o] Error 1
    make[1]: Leaving directory `/root/svn_installs/mplayer/stream’
    make: *** [stream/stream.a] Error 2
    root@jason [~/svn_installs/mplayer]#

  87. quan Says:

    Hello, please help me

    [root@vps ffmpeg]# make
    make -C libavutil all
    make[1]: Entering directory `/usr/local/src/ffmpeg/libavutil’
    make[1]: Nothing to be done for `all’.
    make[1]: Leaving directory `/usr/local/src/ffmpeg/libavutil’
    make -C libavcodec all
    make[1]: Entering directory `/usr/local/src/ffmpeg/libavcodec’
    gcc -I”/usr/local/src/ffmpeg”/libswscale -I”/usr/local/src/ffmpeg”/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I”/usr/local/src/ffmpeg” -I”/usr/local/src/ffmpeg” -I”/usr/local/src/ffmpeg”/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -O3 -c -o imgconvert.o imgconvert.c
    imgconvert.c: In function âgray16_to_gray16â:
    imgconvert.c:1904: warning: assignment from incompatible pointer type
    imgconvert.c:1906: warning: assignment from incompatible pointer type
    imgconvert.c: At top level:
    imgconvert.c:2162: error: âPIX_FMT_MGNOBLACKâ undeclared here (not in a function)
    imgconvert.c:2162: error: array index in initializer not of integer type
    imgconvert.c:2162: error: (near initialization for âconvert_tableâ)
    imgconvert.c: In function âimg_convertâ:
    imgconvert.c:2561: warning: âimg_convertâ is deprecated (declared at imgconvert.c:2332)
    imgconvert.c:2564: warning: âimg_convertâ is deprecated (declared at imgconvert.c:2332)
    make[1]: *** [imgconvert.o] Error 1
    make[1]: Leaving directory `/usr/local/src/ffmpeg/libavcodec’
    make: *** [lib] Error 2
    [root@vps ffmpeg]#

  88. Willie Says:

    Hello team: I am getting this error when trying to compile ffmpeg-php-0.5.1:
    # phpize
    -bash: phpize: command not found
    #
    (I am root).
    Please tell me how to solve this problem.
    Thanks.
    –Willie the Great

  89. Installing FFMPEG - The Easy Way : SecuredMinds Says:

    […] clipped from vexxhost.com […]

  90. dexter Says:

    Hi,

    I got this error.

    [root@server ffmpeg]# /usr/local/bin/ffmpeg -i
    /usr/local/bin/ffmpeg: error while loading shared libraries: libogg.so.0: cannot open shared object file: No such file or directory

  91. Michelle Says:

    I had ffmpeg working on php4 but when I upgraded to php5, it no longer worked. Went through the install process step by step, ffmpeg worked from the command line but did not show up in the php.ini file. I got an error when checking if it installed correctly from the command line: undefined symbol: zend_hash_add_or_update in Unknown on line 0. Could not find anything on fixing it. So I tried installing a newer version of ffmpeg-php (version 0.5.1) and voila, it worked and ffmpeg is working from php.

  92. lenny Says:

    Sorry to bring this up again.
    when i install ffmpeg i get:

    ldconfig
    make: ldconfig: Command not found
    make: [install-libs] Error 127 (ignored)
    install -d “/usr/local/bin”
    install: cannot change permissions of `/usr/local/bin’: Operation not permitted
    make: *** [install-progs] Error 1

    Any idea? i don’t have root-access. I configured the script with –prefix=/myhome

    any idea?

  93. Theo Richel Says:

    My webhost has setup FFMPEG for me, but when I try to check what he has done and run the command php -r ‘phpinfo();’ | grep ffmpeg
    I get the message that the -r option is not available. Is there an alternative?

    Thanks

  94. Theo Richel Says:

    May I ask: how much time would an install like this cost for an average sysadmin who knows about linux and PHP and all that?

    Many thanks

    TR

  95. bman Says:

    hi,
    thanks for all this info
    i can convert every type of video files BUT i have problems with .RM/.RAM files
    it will not convert them
    here is a test i did
    #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: 0×0 - 0×4cf53a
    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] 312×220 24bpp 15.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:11 fourcc:0×30335652 size:312×220 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 0×30335652.
    Read DOCS/HTML/en/codecs.html!
    ==========================================================================

  96. dexjul Says:

    When running ffmpeg, I got this error.

    Segmentation fault (core dumped)

    Any idea?

  97. Anurag Jain Says:

    Hello,
    I am having the same problem as Ryan and arman (above)

    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 help me to solve this.

  98. Finally Says:

    Great instructions although I ran into the same problem but that Shane, James, and Karina mentioned above.

    I found the answer here: http://www.nabble.com/libvorbis-1.1.3-t1954377.html

  99. kingofdarkness4 Says:

    Hey Thanks for the tutorial! ran into some trouble but was able to solve it… for php 5.2 you need to make some changes…

    This installation works well with ffmpeg-php-0.5.1

    updated step 8

    8. Compile libOGG
    cd ~/ffmpeg/libogg-1.1.3
    ./configure –enable-shared
    make
    make install

    then

    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

    then

    export PKG_CONFIG_PATH

    updated step 12 for php 5.2

    12. Compile FFMPEG
    cd ~/ffmpeg/ffmpeg
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared
    make
    make install

    and for those of you that have plesk, make sure you change step 15 to:

    15. Install FFMPEG-PHP (make sure the php.ini path is correct.)
    echo ‘extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so’ >> /usr/local/psa/admin/conf/php.ini

    if this doesn’t work for you… your problem lays in step 12. I had to restart at step 12 about 3 times before it actually worked. I installed on a VPS and it worked beautifully. I was able to install all of this in about 3 hours. Thanks!

  100. hibbert Says:

    hey there,
    i want to install os tube on my vServer. Now os tube asks for the path to FLVTOOL2 and Ruby.
    Where can I find these tools on my Server?
    I followed this tutorial 1:1, so can anyone help me?

    thanks hibbert

  101. libvorbis wird nicht gefunden - Server Support Forum Says:

    […] es doch glatt geschafft mit hilfe der folgenden ANleitung ffmpeg auf meinem Server zu installieren. vexxblog Blog Archive Installing FFMPEG – The easy way! So nun habe ich aber das Problem, dass wenn ich einen .wmv umwandeln mchte, dass ich folgende […]

  102. Niz Says:

    dear,
    expert i am stuck here when i try to install this line

    cd ~/ffmpeg/ffmpeg
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared

    i do get error message as given below

    unknown option “–enable-libogg”.
    See ./configure –help for available options.
    please help

    i tried without –enable options still getting

    See ./configure –help for available options.

  103. jack Says:

    for
    Shane Holloman
    james
    :must have Ogg installed!
    you can try it:
    wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
    tar zxvf libogg-1.1.3.tar.gz
    cd ~/libogg-1.1.3
    ./configure –prefix=/usr –enable-shared
    make
    make install

  104. Chris Says:

    Hi there . . . do you have WORKING sintructions like this for MAC OS X.5.1 Leopard??

    I want FFMPEG and i NEED FFMPEG-PHP . . .but I am far better at actually USING php than compiling anything.

    Is there anything you can do to help?? Feel free to email me.

    Big thanks and great work.

  105. Johnny Says:

    I successfully installed ffmpeg finally. And things like screen capturing, getting movie info, etc works. But when I try to convert any movie using php it doesnt work and I dont get an error. Then when I try to convert certain movies in SSH it works (the test avi’s). Am I missing something?

  106. dexter Says:

    I am stuck on installing mplayer and I got this error.

    make[1]: *** [stream_dvd.o] Error 1
    make[1]: Leaving directory `/usr/local/src/mplayer/stream’
    make: *** [stream/stream.a] Error 2

    Any idea. Thank you…

  107. venkates Says:

    Please help me everyone

    I’m new php and linux.I installed ffmpeg-php in RHEL.Then i got error

    PHP Warning: Unknown(): Unable to load dynamic library ‘.//usr/local/bin/ffmpeg/ffmpeg.so’ - .//usr/local/bin/ffmpeg/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PWD => /usr/local/lib/codecs/ffmpeg/ffmpeg-php-0.5.0
    OLDPWD => /usr/local/lib/codecs/ffmpeg
    _SERVER[”PWD”] => /usr/local/lib/codecs/ffmpeg/ffmpeg-php-0.5.0
    _SERVER[”OLDPWD”] => /usr/local/lib/codecs/ffmpeg
    _ENV[”PWD”] => /usr/local/lib/codecs/ffmpeg/ffmpeg-php-0.5.0
    _ENV[”OLDPWD”] => /usr/local/lib/codecs/ffmpeg

    please help me to achive it…

    Thanks in advance…

  108. Collin Says:

    dexter, best just open a support ticket. :)

  109. jachol Says:

    Hello, please help me

    PHP Warning: PHP Startup: ffmpeg: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0

  110. Shadow Says:

    After about 4 hours of pain, i’ve been able to install it xD Why isn’t there an easier yum installation? T_T But anyways, great tutorial, just my problems were:

    1.- The mentioned libogg problem
    2.- The mentioned TMP directory problem
    3.- The mentioned ffmpeg.so problems

    But now i have it installed ^^

  111. Barakat Says:

    thanks a lot … very usefull ..

  112. Michael Says:

    I think the issue with mplayer is a version thing…I built it with one I checked out back in Oct and it worked fine…hanging onto that version of the source now to make sure I can build it again.

  113. scarlet Says:

    yea dexter, I got the same error as you
    Got any solution yet?

  114. Harry Says:

    Hi

    when i am installing ffmpeg-php i get this error

    PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

    the ffmpeg.so file IS NOT in that folder how do i get it in that folder ??

    Harry

  115. sanjeeb Says:

    i did step by step and i got it now i can convert videl file into flv . Thank you all ………….

    Thanks
    Sanjeeb

  116. Alpha Says:

    All steps ok but last step :

    17. Verify if it works
    php -r ‘phpinfo();’ | grep ffmpeg

    I get This Error :

    [root@server ffmpeg-php-0.5.0]# php -r ‘phpinfo();’ | grep ffmpeg
    PHP Warning: Unknown(): Unable to load dynamic library ‘.//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so’ - .//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: Unknown(): Unable to load dynamic library ‘.//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so’ - .//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    OLDPWD => /Documanlar/ffmpeg/ffmpeg
    PWD => /Documanlar/ffmpeg/ffmpeg-php-0.5.0
    _SERVER[”OLDPWD”] => /Documanlar/ffmpeg/ffmpeg
    _SERVER[”PWD”] => /Documanlar/ffmpeg/ffmpeg-php-0.5.0
    _ENV[”OLDPWD”] => /Documanlar/ffmpeg/ffmpeg
    _ENV[”PWD”] => /Documanlar/ffmpeg/ffmpeg-php-0.5.0
    [root@server ffmpeg-php-0.5.0]#

    Anybody help me?

    This is : /usr/local/lib/php/extensions/no-debug-non-zts-20020429

    PHP.ini : /usr/local/lib/php.ini

    I do this :
    echo ‘extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so’ >> /usr/local/lib/php.ini

  117. M.Frost Says:

    Hi,
    I am having trouble extracting the download source files step 3. Instruction are not very clear when you have to enter/return after entering bunzip etc.

    Can any one help?

  118. M.Frost Says:

    Sorted my previous issue, by download source files direct and managed to extract the source files.
    Trouble is now I am stuck on

    4. Create the codecs directory & import them
    mkdir /usr/local/lib/codecs/
    mv essential-20061022/* /usr/local/lib/codecs/
    chmod -R 755 /usr/local/lib/codecs/

    Managed to mkdir bit, but is the * after essential-20061022/ loaction of my website?

    Can anyone help? It would be very much appreciated.
    As the above instructions need to be a bit clearer

  119. Bosyak Says:

    To all who has the following errors:

    PHP Warning: Unknown(): Unable to load dynamic library ‘.//usr/local/lib/php/extensions/’ - .//usr/local/lib/php/extensions/: cannot read file data: Is a directory in Unknown on line 0
    PHP Warning: Unknown(): Unable to load dynamic library ‘.//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so’ - .//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

    change
    extension_dir = “./”
    line in php.ini file to
    extension_dir = “”

  120. Erion Budo Says:

    When i add
    12. Compile FFMPEG
    cd ~/ffmpeg/ffmpeg
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared
    echo ‘#define HAVE_LRINTF 1′ >> config.h
    make
    make install

    I get error.

    make install
    Makefile:5: config.mak: No such file or directory
    /version.sh
    make: /version.sh: Command not found
    make: *** No rule to make target `config.mak’. Stop.

    Why??? Help please

  121. Joe Says:

    When starting up ON2 Flix I get the following error:

    Executing ‘/etc/rc.d/init.d/flixengine start’
    /usr/local/sbin/flixd: symbol lookup error: /usr/local/lib/libavformat.so.51: undefined symbol: av_strlcpy
    Problem starting Flix Engine.

    Also, as with Reqx above when:

    php -r ‘phpinfo();’ | grep ffmpeg

    Nothing is returned.

    Any help would be appreciated.

  122. Jonathan Says:

    I tried to follow everything and Im using SSH Shell Client to install this to debian server. Everything seems to work out fine till to the part I compiled ffmpeg and It says that libvorbis cannot be found.

    I tried to recompile libvorbis and while compiling it there was error that says:

    configure: error: must have Ogg installed!

    Based on the instruction I’ve installed Libogg right? why is it that when compiling libvorbis it says that it doesnt have ogg installed?

    Help please

  123. Jonathan Says:

    To all those who are having problems like I have regarding OGG needs to be installed. Ive tried using all the stuffs mentioned above but it havent worked. If you guys still have problems after trying those, try this..

    apt-get install libogg-dev

    Hope it works. :)

  124. harris khaliq Says:

    i get this error how can i fix it

    PHP Warning: Unknown(): (null): Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=0\nPHP compiled with module$

  125. Justin S Says:

    Just a few days ago i had ffmpeg-php working. then i got the bright
    idea to try to add a codec to ffmpeg. so i re-installed ffmpeg and
    then ffmpeg-php. i then noticed this error which i did NOT get before.

    Fatal error: Call to a member function togdimage() on a non-object

    $movie = new ffmpeg_movie(”testmovie.wmv”);
    $cap = $movie->getFrame(1);
    $img = $cap->togdimage();

    that is my php code. (i have also tried MANY different movie types)
    now i have figured out that all functions called from $cap return that
    error, $cap returns false, but am not sure why. i have not changed
    this code at all, yet it worked before this.

    I have the latest ffmpeg, the latest ffmpeg-php, the latest php, and
    the latest gd library installed.
    also, in an outputted phpinfo() page, it says that ffmpeg-php is
    installed correctly. i also printed out:

    get_class_methods(”ffmpeg_frame”)
    and
    get_class_methods(”ffmpeg_movie”)

    and that returns all the functions, they are all there, including
    togdimage.

    when configuring php, i have read mixed ideas. some say to use –with-
    gd, and some say –with-gd=shared. i have tried both, with no success
    with either.

    here is my configuration command for “ffmpeg” TMPDIR=”/tmp2″ ./configure –enable-libmp3lame –enable-libvorbis –disable-mmx –enable-shared

    a) if i don’t have the TMPDIR=”/tmp2″ there, it will say “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.”. but the /tmp2 dir does exist and is
    chmodded 7777.
    b) i have installed libOGG many times but when i have –enable-libogg
    as an option it says “Unknown option..” so i just take it out.

    and for ffmpeg-php i dont use any configuration parameters. once
    ffmpeg-php is installed, i go to “/usr/local/lib/php/extensions/no-debug-non-zts-20060613/” and copy ffmpeg.so to “/usr/local/lib/php/extensions/” (one directory up), and in my php.ini file i have:

    extension_dir = “/usr/local/lib/php/extensions/”
    extension=ffmpeg.so

    in my phpinfo(), it DOES recognize ffmpeg-php. but the functions out
    of the class wont work.

    Can anyone further help me debug this problem?

  126. MiramarDesign Says:

    I got:

    ”checking for ffmpeg support… yes, shared
    checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs using the –enable-shared option”

    I enabled shared in ffmpeg!!
    when installed php-ffmpeg in addition, I can’t find ffmpeg.so so I imagine this error stopped its creation. :( any tips?

  127. sumesh Says:

    dear,
    i am stuck here when i try to install this line

    cd ~/ffmpeg/ffmpeg
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared

    i do get error message as given below

    unknown option “–enable-libogg”.
    See ./configure –help for available options.
    please help

    Sumesh

  128. Shady Samuel Says:

    i faced this problems when i tray

    I got :

    ”checking for ffmpeg support… yes, shared
    checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs using the –enable-shared option”

    I enabled shared in ffmpeg!!
    when installed php-ffmpeg in addition, I can’t find ffmpeg.so so I imagine this error stopped its creation. any tips about that?

    and

    i am stuck here when i try to install this line

    cd ~/ffmpeg/ffmpeg
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared

    i do get error message as given below

    unknown option “–enable-libogg”.
    See ./configure –help for available options.
    please help

  129. russ0r Says:

    I’m having the same issue as above. could really use some help fixing this one, i’ve hit enough bumps already and found the answers within these comments, hopefully someone will reply!

  130. shihab Says:

    Hi ,
    I got an error while trying to install ffmpeg-php-0.5.0.When running the make command.
    i did like this
    cd ~/ffmpeg/ffmpeg-php-0.5.0

    phpize

    ./configure

    make
    Error:make: *** No targets specified and no makefile found. Stop.

  131. carol Says:

    Sumesh..i had that error too when i was installing ffmpeg, just ignore –enable-libogg and it should work fine

  132. carol Says:

    And as for MArimarDesign, I also had that problem, I remember transferring some files into a lib folder, i can’t remember exactly but let me go over my installation process and i’ll update you once I’ve figured out.

  133. carol Says:

    please help me with this.
    if i do the command php -r ‘phpinfo();’ | grep ffmpeg
    it gives me the ff
    ffmpeg
    ffmpeg support (ffmpeg-php) => enabled
    ffmpeg-php version => 0.5.0
    ffmpeg.allow_persistent => 0 => 0

    but if i try to print phpinfo() on my php script and load it on my browser, it doesn’t show anything about ffmpeg.

  134. hibbert Says:

    @ MiramarDesign
    try apt-get install libavcodec-dev

  135. Sousa Says:

    I Gurus,

    I have the following problem,I need to integrate one PHP with postgres for that i need the lib pgsql.so.
    So i copy lib compiled by another php and paste in /opt/xampp/lib/php/extensions/no-debug-non-zts-20060613
    But as expected give-me the error “Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613″, anyway to workarourd this ??

    Any help will be apreciated

    Thanks in advanced

  136. Sousa Says:

    I again,

    Sorry i forget to post, my O.S. is Solaris 5.8

    Regards

  137. Vinay Says:

    hi,
    I am installing SUSE Linux Enterprise 10.
    When i run step 5: yum install subversion..its says
    yum: command not found.

    Please help…:-(

  138. Vinay Says:

    i am using SUSE Linux ENterprise 10. Some how manage to install subversion & ruby. now when i try step 6.it gives error:

    server:~/ffmpeg # svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    bash: svn: command not found

    thanks in advance

  139. yalamber Says:

    how to install ffmpeg in windows xp

  140. zaved Says:

    hi this is using on windowsever2003 ..and i m not able to confogure directory on window local system…plz someone help me,,……

    This example shows you how to convert video to flash video (flv).

    Processing MOV00007.3gp

    Warning: fopen(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/ffinfo1208216051-4803e9f3cdfe7.info) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 551

    Warning: fclose(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 619

    Warning: unlink(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216051-4803e9f3d05dd-multipass-0.log) [function.unlink]: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2266

    Warning: fopen(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216051-4803e9f3d0622.info) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2662

    Warning: fwrite(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2671

    Warning: fclose(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2672

    Warning: rename(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216051-4803e9f3d0622.info,C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\logs/MOV00007.log) [function.rename]: File exists in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2687
    FFMPEG ERROR: Execute error. Output for file “C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\to-be-processed/MOV00007.3gp” was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

    Processing Video000.3gp

    Warning: fopen(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/ffinfo1208216052-4803e9f402229.info) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 551

    Warning: fclose(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 619

    Warning: unlink(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216052-4803e9f404519-multipass-0.log) [function.unlink]: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2266

    Warning: fopen(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216052-4803e9f40455e.info) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2662

    Warning: fwrite(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2671

    Warning: fclose(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2672

    Warning: rename(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216052-4803e9f40455e.info,C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\logs/Video000.log) [function.rename]: File exists in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2687
    FFMPEG ERROR: Execute error. Output for file “C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\to-be-processed/Video000.3gp” was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

    Processing cat.mpeg

    Warning: fopen(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/ffinfo1208216052-4803e9f40993f.info) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 551

    Warning: fclose(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 619

    Warning: unlink(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216052-4803e9f40d991-multipass-0.log) [function.unlink]: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2266

    Warning: fopen(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216052-4803e9f40d9d6.info) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2662

    Warning: fwrite(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2671

    Warning: fclose(): supplied argument is not a valid stream resource in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2672

    Warning: rename(C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\tmp/1208216052-4803e9f40d9d6.info,C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\logs/cat.log) [function.rename]: File exists in C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\phpvideotoolkit.php on line 2687
    FFMPEG ERROR: Execute error. Output for file “C:\xampp\htdocs\esewa4u.com\phpvideotoolkit\examples\to-be-processed/cat.mpeg” was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

    The total time taken to process all 3 file(s) is : 0
    The average time taken to process each file is : 0

  141. mike Says:

    Hi

    I got a problem with 12th step:

    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared

    when I execute, it says:

    Unknown option “–enable-libogg”.
    See ./configure –help for available options.

    Then I checked the –help and all the options are available except the libogg… =/ Any clue?

    Much appreciated

    Mike

  142. Derrick Threatt Says:

    When I install..everything is fine.

    When I try and run FFMPEG command line it doesnt work for the -i option

    [root@server2 modules]# ffmpeg -i
    FFmpeg version SVN-r12758, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    configuration: –enable-libmp3lame –enable-libvorbis –disable-mmx –enable-shared
    libavutil version: 49.6.0
    libavcodec version: 51.54.0
    libavformat version: 52.13.0
    libavdevice version: 52.0.0
    built on Apr 23 2008 21:25:49, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
    ffmpeg: missing argument for option ‘-i’

    phpinfo works
    [root@server2 modules]# php -r ‘phpinfo();’ | grep ffmpeg
    ffmpeg
    ffmpeg support (ffmpeg-php) => enabled
    ffmpeg-php version => 0.5.0
    ffmpeg.allow_persistent => 0 => 0
    OLDPWD => /usr/local/src/ffmpeg-php-0.5.0
    _SERVER[”OLDPWD”] => /usr/local/src/ffmpeg-php-0.5.0
    _ENV[”OLDPWD”] => /usr/local/src/ffmpeg-php-0.5.0

    if I look at php info in a browser I dont see support for ffmpeg

    this array is also blank:
    Array
    (
    [compiler] => Array
    (
    [configuration] => Array
    (
    )

    [vhook-support] =>
    [versions] => Array
    (
    )

    )

    [formats] => Array
    (
    )

    [filters] => Array
    (
    )

    [protocols] => Array
    (
    )

    [abbreviations] => Array
    (
    )

    [ffmpeg-php-support] => emulated
    )

    any ideas???

  143. Need UNIX Server FFMPEG installation | computer Jobs in losangeles Says:

    […] I had problems following these instructions: http://vexxhost.com/blog/2007/03/03/installing-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-… […]

  144. Justin Says:

    Hello Administrator,
    your article is very very good, I am trying to go as per the instructions but I got BIG ISSUE

    The MAKE command doesn’t found ….

    I tried to install using the
    sudo apt-get install make

    But then I got apt-get not found

    I am stuck here form many days you help would be greatly appreciated…

    Looking forward to here from you

    THanks,
    Justin

  145. Dave Schlaegel Says:

    Man, I have had more issues with this stuff than anything I have ever installed. So I finally got it all running. But when I go to convert a video with -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames I get erros saying its not a option. So I removed that. And it seems to try to convert. Now I get a error about the vo_driver. To be exact. Error opening/initializing the selected video_out (-vo) device.

    I have changed the vo = “xv” in the config, I have changed it to cvidix,fbdev,yuvmpeg, etc… Non work. When I run the command to get the available video output drives I get this list.

    fbdev Framebuffer Device
    fbdev2 Framebuffer Device
    cvidix console VIDIX
    null Null video output
    mpegpes Mpeg-PES to DVB card
    yuv4mpeg yuv4mpeg output for mjpegtools
    tga Targa output
    pnm PPM/PGM/PGMYUV file
    md5sum md5sum of each frame

    No xv. Which seems common. I am not sure. But I have tried everything and I just really cannot get mencoder to work.

    Any ideas? Anything would be appreciated. I am going crazy here trying everything to get it to work. Thanks in advance.

  146. Gunstra Says:

    I followed every step to a T and when trying to verify it works I get the following errors, help anyone? Running Fedora 8:

    [root@gunstra ffmpeg-php-0.5.2.1]# php -r ‘phpinfo();’ | grep ffmpeg
    PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so’ - /usr/lib/php/modules//usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PWD => /root/ffmpeg/ffmpeg-php-0.5.2.1
    OLDPWD => /root/ffmpeg
    _SERVER[”PWD”] => /root/ffmpeg/ffmpeg-php-0.5.2.1
    _SERVER[”OLDPWD”] => /root/ffmpeg
    _ENV[”PWD”] => /root/ffmpeg/ffmpeg-php-0.5.2.1
    _ENV[”OLDPWD”] => /root/ffmpeg
    [root@gunstra ffmpeg-php-0.5.2.1]#

    thx

  147. wywh Says:

    Thank you for this wonderful post. I was beating my head on my desk for almost a week trying to get ffmpeg with faad to work!!

  148. ibscom Says:

    I have had no problems up to point 8 compile libOGG.

    When I run ./configure I get a message at the bottom:

    checking how to run the C++ preprocessor …./lib/cpp
    configure: error: C++ preprocessor “/lib/cpp” fails sanity check.

    If I try to run the make command after this I get the following error:

    make: *** No targets specified and no makefile found. Stop

    does anyone know how I can get round this. I am a linux novice so the simpler any expenations the better.

  149. Storm Says:

    We’re working on deploying a system using ffmpeg, and so i’ve been using your instructions however I still get to
    cd /usr/local/src/ffmpeg/
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared –enable-amr-nb

    and i continue to get
    Unknown option “–enable-libogg”.
    See ./configure –help for available options.

    This of course gives me problems when trying to ./configure in the ffmpeg-php

    Any help would be great if you know of any.

  150. richard Says:

    i have the same problem :

    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared

    unknown option “–enable-libogg”.
    See ./configure –help for available options.

    please help

  151. magnum blog » Blog Archive » links for 2008-05-29 Says:

    […] vexxblog » Blog Archive » Installing FFMPEG – The easy way! (tags: ffmpeg video php howto flash) […]

  152. Hamilcar Says:

    How to install a specific user, is how?

  153. usha Says:

    Im getting an error while configuring libogg-1.1.3 , saying
    configure: error: C++ preprocessor “/lib/cpp” fails sanity check
    can anyone please help.

  154. uuRcm Says:

    Hi everyone…
    i did everything well from begin to
    cd ~/ffmpeg/ ffmpeg-php-0.5.0
    phpize
    ./configure
    when i try ./configure command, it gives this error..
    checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs using the –enable-shared option

    i searched on Google about it. i found this.
    ./configure –prefix=/usr
    but when i try this command, it gives the same error…
    i’ve build FFMPEG shared….

    Notice: i can’t speak english well.. sorry. :(

  155. uuRcm Says:

    I Solve this problem.. but i have an other error :S
    my php.ini file is located in /etc/php.ini
    when i installed ffmpeg i saw my extension dir is = /usr/lib/php/modules/

    now… i’ve added
    extension=ffmpeg.so this line then i’ve restarted httpd…
    when i tried this command: php -r ‘phpinfo();’ | grep ffmpeg

    it gives this error
    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

  156. Moiz Says:

    getting an error after all the isntallations whn trying to convert a file :
    ffmpeg: symbol lookup error: /usr/lib/libavformat.so.52: undefined symbol: av_strlcatf

    cant make head or tails of this

  157. Gaurav Says:

    how to install ffmpeg in wamp ?

  158. Dani Says:

    I have the same error here…

    [root@demo html]# vi /usr/lib/php/modules/ffmpeg.so
    [root@demo html]# php -r ‘phpinfo();’ | grep ffmpeg
    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
    [root@demo html]#

    Any ideas ?

  159. Dani Says:

    I found the solution… check out http://groups.google.com/group/ffmpeg-php/browse_thread/thread/965d68325844073a

  160. nagaraju.kasula Says:

    I Need code for converting a given MPEG (Video) file in to a FLV while uploading to my web application.
    Can you give me some idea about it.

  161. Serega Says:

    Who can help me to reinstalling ffmpeg and ffmpeg-php latest versions? (i will pay for the work when its done) email me if some one can do it fast (topshaft@nana10.co.il)

Leave a Reply