error: PIX_FMT_RGBA32 undeclared

by Manoj 2012-04-21 12:25:28

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.

Tagged in:

742
like
0
dislike
0
mail
flag

You must LOGIN to add comments