Talk:FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder, AMR Installation
From Debian Wiki
In order to install AMR, you also need unzip installed - you should add that to the initial apt-get command.
great site, but for days i am been trying to install on redhat enterprise. I cant even get app-get ot work on enterprise. any suggestions? i am trying to make clip-share work
great site, but for days i am been trying to install on redhat enterprise. I cant even get app-get ot work on enterprise. any suggestions? i am trying to make clip-share work
Thhank you
Good process but I've modified 4 links for running on my Debian Etch :
sudo ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
sudo ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
sudo ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
sudo ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52
you may have to verified your codec library version : ls -l /usr/local/lib/libav* before doing the links.
Thanks.
JL
Problems in ./configure of ffmpeg
--enable-amr-nb must be --enable-libamr-nb, and add the option --enable-nonfree Though I followed exactly the described solution, I had troubles with enabling libvorbis, ERROR: libvorbis not found - dunno why? I left it out of the configure in hope not to need convert ogg.
You must install libogg dev package
error: ffmpeg headers not found.
I was good up to:
... cd /usr/local/src/ffmpeg-php-0.5.0/ phpize
And after that, I am getting the following error message when I used:
./configure
It says:
checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
But, as you mentioned, I built ffmpeg using --enable-shared option. Please help me out from this situation.
- Reefat
Here is your solution:
mkdir /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg
then just
./configure --with-ffmpeg=/usr/local/include/ffmpeg/
Also before issuing make install do this command:
mv ffmpeg_frame.loT ffmpeg_frame.lo
Hope it works!
- Pontus Engblom
Thanks
Thanks for the great tutorial
Not sure how to add my own entry so just entering it here:
I got stuck here
cd /usr/local/src/ffmpeg-php-0.5.0/ phpize ./configure make make install
While trying to execute the "make" command.
libtool: compile: gcc -I. -I/usr/local/src/ffmpeg-php-0.5.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.5.0/include -I/usr/local/src/ffmpeg-php-0.5.0/main -I/usr/local/src/ffmpeg-php-0.5.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c -fPIC -DPIC -o .libs/ffmpeg_frame.o
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function â_php_convert_frameâ:
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:162: warning: implicit declaration of function âimg_convertâ
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function â_php_crop_frameâ:
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:215: warning: implicit declaration of function âimg_copyâ
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function â_php_resample_frameâ:
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: âImgReSampleContextâ undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: (Each undeclared identifier is reported only once
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: for each function it appears in.)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: âimg_resample_ctxâ undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:263: warning: implicit declaration of function âimg_resample_full_initâ
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:276: warning: implicit declaration of function âimg_resampleâ
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:281: warning: implicit declaration of function âimg_resample_closeâ
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function âzif_toGDImageâ:
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:409: error: âPIX_FMT_RGBA32â undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function âzif_ffmpeg_frameâ:
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:495: error: âPIX_FMT_RGBA32â undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1
root@rcpm01:/usr/local/src/ffmpeg-php-0.5.0#
ffmpeg: error while loading shared libraries: libvorbisenc.so.2: cannot open shared object file: No such file or directory
Hello!
if I try to open ffmpeg this comes: ffmpeg: error while loading shared libraries: libvorbisenc.so.2: cannot open shared object file: No such file or directory
Libvorbis is installed. What to do?
Compilation error mplayer make && make install
Hello
I install this mods in my debian etch 4.0 for the script clipshare 4.1.0
everything has worked well until mplayer&mencoder ./configure and I had this error:
- 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 easily found the answer:
After some messing with ‘include’ statements I realised you just got to put the path to you libs in /etc/ld.so.conf. In other words, stick the following line into the file (on a new line):
/usr/local/lib
Then run ldconfig -v.
after ./configure work perfect.
But after when i run the make && make install, i had a compiled error and i not found the solution:
allcodecs.c:57: error: 'CONFIG_H263_VAAPI_HWACCEL' undeclared (first use in this function)
allcodecs.c:57: error: (Each undeclared identifier is reported only once
allcodecs.c:57: error: for each function it appears in.)
allcodecs.c:58: error: 'CONFIG_MPEG2_VAAPI_HWACCEL' undeclared (first use in this function)
allcodecs.c:59: error: 'CONFIG_MPEG4_VAAPI_HWACCEL' undeclared (first use in this function)
make[1]: *** [allcodecs.o] Error 1
make[1]: Leaving directory `/usr/local/bin/mplayer/libavcodec'
make: *** [libavcodec/libavcodec.a] Erreur 2
Have you got an idea for fix it ?
Thank you
ffmpeg: error while loading shared libraries: libavutil.so.50
After installed everything successfully on my Ubuntu 8.04 Server, when I ran "ffmpeg" command, it gives me the following message:
ffmpeg: error while loading shared libraries: libavutil.so.50: cannot open shared object file: No such file or directory
Any idea how to solve this issue?
- Reefat
===========
Reefat, the problem is due to the symbolic links. As of 6-4-09, you need to add more to the original install instructions like this
ln -s /usr/local/lib/libavutil.so.50 /usr/lib/libavutil.so.50
ln -s /usr/local/lib/libswscale.so.0 /usr/lib/libswscale.so.0
ln -s /usr/local/lib/libtheora.so.0 /usr/lib/libtheora.so.0