ABHIONLINUX
Site useful for linux administration and web hosting

2011/04/19

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

Sometimes you will get the error given below when installing ffmpeg-php in your server.
FFmpeg :: make: *** [ffmpeg_frame.lo] Error 1


Fix:
modify the file ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32


Now run make and make install


Eg: 
  • vi ffmpeg_frame.c
  • :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
  • :wq!

Another method is 
  • cd /path/to/ffmpeg-php-0.6.0
  • cp -aP ffmpeg_frame.loT ffmpeg_frame.lo
  • make clean
  • ./configure

How to install yasm

You can follow the steps given below to install yasm from source.


# wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
# tar zfvx yasm-0.7.0.tar.gz
# cd yasm-0.7.0
#  ./configure
# make 
# make install
You can check the yasm binary using the command
# which yasm
/usr/local/bin/yasm