ABHIONLINUX
Site useful for linux administration and web hosting

Showing posts with label ffmpeg. Show all posts
Showing posts with label ffmpeg. Show all posts

2011/05/14

FFmpeg :: make: *** [ffmpeg_frame.lo] Error 1


When you try to install ffmpeg-php module in the server, you can get the error
FFmpeg :: make: *** [ffmpeg_frame.lo] Error 1

There are two fixes for this issue. Try the first one, if it doesnt fix then go to second.

Fix 1:

In the latest ffmpeg-php, you need to modify the file ffmpeg_frame.c
Usually location will be /usr/src/ffmpeginstaller/ffmpeg-php-0.6.0/ffmpeg_frame.c

Open the above mentioned file and  replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32

Then try to configure it,.

./configure
make
make install


Fix 2:
If the fix1 didnt fix the issue, you can follow this one.

You need to just copy the file ffmpeg_frame.loT to ffmpeg_frame.lo

cd /path/to/ffmpeg-php-0.6.0   ie  cd /usr/src/ffmpeginstaller/ffmpeg-php-0.6.0
cp  ffmpeg_frame.loT ffmpeg_frame.lo
make clean
./configure

This should fix the issue/

2011/03/28

Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so


if you are getting the error message “Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so” when you add the ffmpeg.so extension to the PHP configuration file i.e. php.ini file and tries to run PHP.

PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so’ – /usr/lib64/php/modules/ffmpeg.so: undefined symbol: _php_create_ffmpeg_frame in Unknown on line 0

Please try the fix given below.

Goto the the ffmpeg-php-0.x.0 directory and edit the ffmpeg_frame.c file

vi  /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c

Now replace every instance of ‘PIX_FMT_RGBA32′ with ‘PIX_FMT_RGB32′ in the file by executing

Save the file and recompile ffmpeg-php

#ldconfig
#phpize
#./configure --enable-shared --with-ffmpeg=/usr/local/cpffmpeg
#make -j$cpu
#make install

phpize : command not found

#-bash: phpize: command not found


This error is due to "phpize" command not available on your server. To fix, install php-devel package.


yum  install php-devel

How to install GIT

Git is distributed version control system focused on speed, effectivity and real-world usability on large projects. Following are the steps to intsall Git

wget http://kernel.org/pub/software/scm/git/git-1.7.3.tar.bz2
tar jxvf git-1.7.3.tar.bz2
cd git-1.7.3
./configure
make && make install
git