Category: Linux

Install FFmpeg on Linux to run in PHP

  • yum install ffmpeg ffmpeg-devel php-devel
  • rpm -Uhv
  • wget
  • 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 / 5. Vote count:

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