ffmpeg-php 0.6.0 – PIX_FMT_RGBA32 fix

While you try to compile this baby, you might run into this error:

/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)

No worries, this is easily fixed with this command:

sed -i 's/PIX_FMT_RGBA32/PIX_FMT_RGB32/g' ffmpeg_frame.c

Now run “make” again and you got yourself a working ffmpeg-php!

Leave a Reply

Your email address will not be published.