Wednesday, January 27, 2010

error: ‘PIX_FMT_RGBA32′ undeclared

The below error is common while installing FFMPEG-PHP on the server and where people run out of ideas

/root/ffmpeg-php-0.5.0/ffmpeg_frame.c:495: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1

The error occurs because of incorrect function declared in ffmpeg_frame.c file which can be resolved by either of the methods mentioned below:

1) Edit the file ffmpeg_frame.c and replace all the instanaces of “PIX_FMT_RGBA32″ with “PIX_FMT_RGB32″ and save the file

OR

2) Execute the replace command:
replace “PIX_FMT_RGBA32″ “PIX_FMT_RGB32″ — ffmpeg_frame.c

Once done, recompile ffmpeg-php once again.

No comments:

Post a Comment