Category: Linux

Install FFmpeg on Linux to run in PHP

  • yum install ffmpeg ffmpeg-devel php-devel
  • rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
  • wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download
  • tar -xjf ffmpeg-php-0.6.0.tbz2
  • cd ffmpeg-php-0.6.0
  • vi ffmpeg_frame.c
  • :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32/g
  • :wq
  • phpize
  • ./configure
  • make
  • make install
  • service httpd restart
  • Check phpinfo()

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.