ffmpeg-php compile error – make: *** [ffmpeg_frame.lo] Error 1
Posted on July 4th, 2010 Admin No comments
If you are getting the following error while compiling the latest release of ffmpeg-php-0.6.0 , This will article will let you know how to get this fix.
Error:
/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
Solution:-
Under the ffmpeg-php-0.6.0 directory modify the file: ffmpeg_frame.c with nano or vi editor and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32
# nano ffmpeg_frame.c
# Search for PIX_FMT_RGBA32 and replace it with PIX_FMT_RGB32
# Exit from the editor
Then run the following commands:
# cd /usr/local/src/ffmpeg-php-0.6.0
# cp -aP ffmpeg_frame.loT ffmpeg_frame.lo
# make clean
# ./configure
# make
# make install
This should fix the errors given above. Finally add the ffmpeg.so extension in php.ini and check phpinfo for the server you should see ffmpeg listed.
- Home
-
Store
- Browse All
- Shared hosting European DC
- Wordpress Hosting
- Reseller Hosting European DC
- SSL Certificates
- Server Management
- KVM VPS European DC available
- Windows VPS
- plesk shared hosting european DC
- servers offers
- Sonic Panel Shoutcast
- Plesk Reseller European DC
- Sonic Panel Icecast
- Sonic Panel Reseller
- Cloud Servers delta series
- Cloud Servers kapa series
- SSl certificates
- Start Range Dedicated Servers France, Netherlands DC
- Cloud SSD VPS European DC
- WHMCS modules
- Cpanel plugins
- Register a New Domain
- Transfer Domains to Us
- Announcements
- Knowledgebase
- Network Status
- Affiliates
- Contact Us
-
More