Knowledge Base
MilesWeb / Dedicated Server FAQ

Errors installing ffmpeg

Approx. read time : 1 min

When installing ffmpeg on your server, you might receive an error as below. Fix to be applied is as below.

/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zim_ffmpeg_frame_toGDImage’:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zim_ffmpeg_frame_ffmpeg_frame’:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1

You just have to replace PIX_FMT_RGBA32 with PIX_FMT_RGB32. The command is.

replace PIX_FMT_RGBA32 PIX_FMT_RGB32 — /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c

Proceed with compiling php-ffmpeg now.

Save

admin
With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.