Created
March 4, 2014 02:55
-
-
Save chappyhome/9339482 to your computer and use it in GitHub Desktop.
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie___construct':
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latest svn revision will not compile against php 5.4 | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie___construct': | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: 'list_entry' undeclared (first use in this function) | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: (Each undeclared identifier is reported only once | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: for each function it appears in.) | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: 'le' undeclared (first use in this function) | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:353: error: expected ';' before 'new_le' | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:363: error: 'new_le' undeclared (first use in this function) | |
Discussion | |
Kirill | |
Kirill | |
2012-07-18 | |
Same problem | |
/usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c: In function 'zim_ffmpeg_movie___construct': | |
/usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: 'list_entry' undeclared (first use in this function) | |
/usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: (Each undeclared identifier is reported only once | |
/usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: for each function it appears in.) | |
/usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: 'le' undeclared (first use in this function) | |
/usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:346: error: expected ';' before 'new_le' | |
/usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:356: error: 'new_le' undeclared (first use in this function) | |
Link | |
CentTom | |
CentTom | |
2012-07-27 | |
Hi Guys, | |
i have the solucion ... i hope it helps | |
Changes in ffmpeg_movie.c: | |
row 311: list_entry *le; TO zend_rsrc_list_entry *le; | |
row 346: list_entry new_le; TO zend_rsrc_list_entry new_le; | |
row 360: hashkey_length+1, (void *)&new_le, sizeof(list_entry), TO hashkey_length+1, (void *)&new_le,sizeof(zend_rsrc_list_entry), | |
Thats all... change it and make it | |
Thomas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ffmpeg-php error
While compiling ffmpeg-php Error: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_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 ‘zif_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) ————————————————————————————–
Fix: With the latest version of ffmpeg-php (0.6.0), update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32
vi ffmpeg_frame.c
:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
:w :q!
./configure make make install add extension=”ffmpeg.so” inside php.ini .