Installing FFMPEG – The easy way!
General, dynamic, ffmpeg, ffmpeg-php, php, servers, technical, web hosting Add commentsA 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.


March 5th, 2007 at 7:19 pm
Can ffmpeg be compiled for php5?
March 5th, 2007 at 7:33 pm
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.
March 6th, 2007 at 12:31 am
thanks I was able to get it working I had a mis typed directory in my php.ini
Cheers,
Jay
March 6th, 2007 at 9:56 pm
i like your numbering ..9,10,11,11,12,12,13….
March 7th, 2007 at 10:13 am
Woops. Fixed.
March 13th, 2007 at 5:22 pm
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…
March 14th, 2007 at 10:57 am
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.
March 18th, 2007 at 9:06 am
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!
March 21st, 2007 at 6:11 pm
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?
March 22nd, 2007 at 4:52 am
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,
April 2nd, 2007 at 10:06 am
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?
April 2nd, 2007 at 3:31 pm
It’s not an error, FFMPEG is installed now.
April 2nd, 2007 at 3:34 pm
I can’t see it in my info.php file though. Does it not show up there?
April 2nd, 2007 at 3:36 pm
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
April 2nd, 2007 at 4:49 pm
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
April 2nd, 2007 at 4:57 pm
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.
April 10th, 2007 at 9:08 am
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
April 13th, 2007 at 10:20 pm
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
April 17th, 2007 at 4:41 pm
Does anyone have any links or tips on porting this process to freeBSD?
April 18th, 2007 at 12:46 pm
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
April 20th, 2007 at 1:32 am
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
April 20th, 2007 at 2:47 pm
Would I have to modify these instructions to install ffmpeg without root access (e.g. on Dreamhost in my /home/username/bin dir)?
April 23rd, 2007 at 11:09 am
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.
April 27th, 2007 at 10:30 pm
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
April 27th, 2007 at 10:54 pm
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
April 27th, 2007 at 11:04 pm
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
April 27th, 2007 at 11:46 pm
Ok, So after I dried my eyes, I slammed this line into php.ini and it worked!!!
extension=ffmpeg.so
May 1st, 2007 at 1:11 am
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 ;___;
May 1st, 2007 at 2:03 am
Nevermind .. I figured it out
May 3rd, 2007 at 6:54 pm
How would one do this if they had a remote host? Install FFmpeg that is. Is it possible?
May 7th, 2007 at 4:39 pm
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.
May 13th, 2007 at 3:41 pm
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
May 19th, 2007 at 12:41 pm
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??
May 21st, 2007 at 1:58 pm
hi there! can you please guide me installing the ffmpeg-php along with php on DreamHost ??
Thanks
May 24th, 2007 at 4:11 pm
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??
May 26th, 2007 at 6:27 pm
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
May 27th, 2007 at 8:32 am
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.
May 28th, 2007 at 5:34 pm
“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?
May 29th, 2007 at 5:05 am
Thank you…worked nicely.
June 1st, 2007 at 2:43 pm
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.
June 2nd, 2007 at 3:43 am
[…] 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 […]
June 6th, 2007 at 2:06 am
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?
June 8th, 2007 at 5:26 pm
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
June 12th, 2007 at 8:40 pm
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
June 15th, 2007 at 10:22 am
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 … )
June 19th, 2007 at 6:26 am
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?
June 23rd, 2007 at 6:21 am
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?
June 25th, 2007 at 1:14 am
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!
June 27th, 2007 at 2:51 am
your instructions are so wonderful, i was able to set up ffmpeg on our hosting server.
thanks for your great help..
June 27th, 2007 at 8:43 pm
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?
June 27th, 2007 at 9:46 pm
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
June 28th, 2007 at 6:07 am
Thanks for useful stuff.
June 29th, 2007 at 2:43 am
It is all for linux environment. can I install this in windows help me Please
July 6th, 2007 at 9:54 am
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 !
July 10th, 2007 at 12:58 am
[…] 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. " […]
July 16th, 2007 at 7:45 am
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.
July 19th, 2007 at 5:51 am
[…] 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 […]
July 21st, 2007 at 9:19 pm
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
July 22nd, 2007 at 3:21 am
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!!!!!!!!
July 24th, 2007 at 1:33 am
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.
July 24th, 2007 at 4:16 am
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
July 24th, 2007 at 4:20 am
I think I found it: yum command in Gentoo should be : emerge
Am I right?
July 24th, 2007 at 3:54 pm
Seems some of these links are out of date? When I try to “wget” it just says connot be found.
July 26th, 2007 at 8:24 am
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™
July 29th, 2007 at 7:36 am
It is all for linux environment. can I install this in windows help me Please
July 30th, 2007 at 11:42 pm
These instructions worked perfectly for my centos 4.4 box. Thank you very much I appreciate you posting this howto.
August 2nd, 2007 at 11:59 am
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..)
August 2nd, 2007 at 12:26 pm
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)
August 2nd, 2007 at 12:37 pm
Aha! You can find ffmpeg.so by looking at the output of ffmpeg-php’s ‘make install’
August 3rd, 2007 at 9:51 pm
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 ?
August 4th, 2007 at 7:07 pm
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!
August 14th, 2007 at 6:12 am
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
August 18th, 2007 at 7:53 am
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.
August 18th, 2007 at 7:57 am
PS - CentOS, grsec kernel, apache 1.3.3.7, php5.2.1 - ioncube loader, xcache.
August 29th, 2007 at 9:15 am
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.
September 5th, 2007 at 1:49 pm
[…] Sep 6, 2007 in experiment Installing FFMPEG – The easy way! […]
September 5th, 2007 at 2:32 pm
[…] installing ffmpeg - the easy way […]
September 6th, 2007 at 4:35 pm
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…
September 6th, 2007 at 5:10 pm
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 =)
September 7th, 2007 at 4:12 am
[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
September 12th, 2007 at 9:25 pm
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.
September 13th, 2007 at 7:07 am
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
September 14th, 2007 at 10:58 pm
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
September 16th, 2007 at 4:42 am
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.
September 16th, 2007 at 5:04 am
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?
September 16th, 2007 at 5:36 am
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]#
September 25th, 2007 at 2:20 pm
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]#
September 26th, 2007 at 1:58 pm
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
September 27th, 2007 at 8:03 am
[…] clipped from vexxhost.com […]
September 29th, 2007 at 9:02 pm
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
September 30th, 2007 at 9:44 pm
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.
October 1st, 2007 at 7:18 am
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?
October 2nd, 2007 at 5:05 am
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
October 2nd, 2007 at 5:49 am
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
October 4th, 2007 at 7:36 am
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!
==========================================================================
October 4th, 2007 at 12:12 pm
When running ffmpeg, I got this error.
Segmentation fault (core dumped)
Any idea?
October 5th, 2007 at 9:12 am
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.
October 5th, 2007 at 9:23 pm
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
October 8th, 2007 at 11:01 pm
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!
October 16th, 2007 at 2:45 pm
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
October 16th, 2007 at 3:50 pm
[…] 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 […]
November 14th, 2007 at 11:18 pm
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.
November 16th, 2007 at 2:22 am
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
November 22nd, 2007 at 12:37 am
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.
November 23rd, 2007 at 12:18 pm
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?
November 30th, 2007 at 7:17 am
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…
December 12th, 2007 at 10:34 am
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…
December 30th, 2007 at 5:37 pm
dexter, best just open a support ticket.
January 4th, 2008 at 11:37 am
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
January 7th, 2008 at 12:40 am
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 ^^
January 7th, 2008 at 9:46 pm
thanks a lot … very usefull ..
January 7th, 2008 at 11:52 pm
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.
January 21st, 2008 at 5:43 pm
yea dexter, I got the same error as you
Got any solution yet?
January 22nd, 2008 at 9:19 am
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
January 25th, 2008 at 9:46 am
i did step by step and i got it now i can convert videl file into flv . Thank you all ………….
Thanks
Sanjeeb
February 5th, 2008 at 7:00 pm
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
February 9th, 2008 at 9:17 am
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?
February 9th, 2008 at 10:49 am
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
February 11th, 2008 at 8:14 am
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 = “”
February 13th, 2008 at 5:08 pm
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
March 4th, 2008 at 7:48 am
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.
March 5th, 2008 at 2:20 am
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
March 5th, 2008 at 3:58 am
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.
March 8th, 2008 at 1:23 pm
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$
March 8th, 2008 at 4:12 pm
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?
March 9th, 2008 at 2:47 pm
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!!
any tips?
when installed php-ffmpeg in addition, I can’t find ffmpeg.so so I imagine this error stopped its creation.
March 17th, 2008 at 7:34 am
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
March 23rd, 2008 at 11:42 pm
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
March 24th, 2008 at 10:15 pm
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!
March 25th, 2008 at 5:13 am
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.
March 31st, 2008 at 7:07 am
Sumesh..i had that error too when i was installing ffmpeg, just ignore –enable-libogg and it should work fine
March 31st, 2008 at 7:12 am
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.
March 31st, 2008 at 7:52 am
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.
April 3rd, 2008 at 7:27 am
@ MiramarDesign
try apt-get install libavcodec-dev
April 10th, 2008 at 11:08 am
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
April 10th, 2008 at 11:10 am
I again,
Sorry i forget to post, my O.S. is Solaris 5.8
Regards
April 11th, 2008 at 6:21 am
hi,
I am installing SUSE Linux Enterprise 10.
When i run step 5: yum install subversion..its says
yum: command not found.
Please help…:-(
April 11th, 2008 at 7:43 am
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
April 13th, 2008 at 2:33 am
how to install ffmpeg in windows xp
April 14th, 2008 at 5:37 am
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
April 17th, 2008 at 12:37 am
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
April 23rd, 2008 at 11:18 pm
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???
April 26th, 2008 at 1:30 am
[…] I had problems following these instructions: http://vexxhost.com/blog/2007/03/03/installing-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-… […]
April 26th, 2008 at 1:30 pm
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
May 6th, 2008 at 1:19 pm
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.
May 6th, 2008 at 8:03 pm
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
May 8th, 2008 at 12:16 pm
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!!
May 9th, 2008 at 5:46 pm
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.
May 14th, 2008 at 11:21 pm
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.
May 16th, 2008 at 12:03 pm
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
May 31st, 2008 at 7:23 am
[…] vexxblog » Blog Archive » Installing FFMPEG – The easy way! (tags: ffmpeg video php howto flash) […]
June 6th, 2008 at 8:25 pm
How to install a specific user, is how?
June 7th, 2008 at 3:21 am
Im getting an error while configuring libogg-1.1.3 , saying
configure: error: C++ preprocessor “/lib/cpp” fails sanity check
can anyone please help.
June 26th, 2008 at 9:58 am
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.
June 26th, 2008 at 11:15 am
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
July 6th, 2008 at 9:16 am
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
July 21st, 2008 at 7:41 am
how to install ffmpeg in wamp ?
August 25th, 2008 at 2:33 am
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 ?
August 25th, 2008 at 2:39 am
I found the solution… check out http://groups.google.com/group/ffmpeg-php/browse_thread/thread/965d68325844073a
August 26th, 2008 at 6:17 am
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.
August 30th, 2008 at 2:06 pm
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)