<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/ffmpeg-php/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/ffmpeg-php/bugs/</id><updated>2023-12-27T11:14:21.067000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Getting errors while compiling with php 7.1 or above</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/61/" rel="alternate"/><published>2023-12-27T11:14:21.067000Z</published><updated>2023-12-27T11:14:21.067000Z</updated><author><name>Adesh Rane</name><uri>https://sourceforge.net/u/adeshrane/</uri></author><id>https://sourceforge.net055c6521f09eebd15e1e8a2fdb146ac9dd000b8a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;Iam trying to compile this extension with php 7.1 and php 8.1 but getting below error&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[root@localhost ffmpeg-php-0.6.0]&lt;/span&gt;# make&lt;br/&gt;
/bin/sh /setups/ffmpeg-php-0.6.0/libtool --mode=compile cc -I. -I/setups/ffmpeg-php-0.6.0 -I/setups/ffmpeg-php-0.6.0/include -I/setups/ffmpeg-php-0.6.0/main -I/setups/ffmpeg-php-0.6.0 -I/usr/local/apps/php81/include/php -I/usr/local/apps/php81/include/php/main -I/usr/local/apps/php81/include/php/TSRM -I/usr/local/apps/php81/include/php/Zend -I/usr/local/apps/php81/include/php/ext -I/usr/local/apps/php81/include/php/ext/date/lib -I/usr/local/apps/ffmpeg//include/libavcodec/ -I/usr/local/apps/ffmpeg//include/libavformat/ -I/usr/local/apps/ffmpeg//include/libavutil/ -I/usr/local/apps/ffmpeg//include/libswscale/ -I/usr/local/apps/ffmpeg//include/libavfilter/ -I/usr/local/apps/ffmpeg//include/libavdevice/  -I/usr/local/apps/ffmpeg/include -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing    -DZEND_COMPILE_DL_EXT=1 -c /setups/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo  -MMD -MF ffmpeg-php.dep -MT ffmpeg-php.lo&lt;br/&gt;
mkdir .libs&lt;br/&gt;
 cc -I. -I/setups/ffmpeg-php-0.6.0 -I/setups/ffmpeg-php-0.6.0/include -I/setups/ffmpeg-php-0.6.0/main -I/setups/ffmpeg-php-0.6.0 -I/usr/local/apps/php81/include/php -I/usr/local/apps/php81/include/php/main -I/usr/local/apps/php81/include/php/TSRM -I/usr/local/apps/php81/include/php/Zend -I/usr/local/apps/php81/include/php/ext -I/usr/local/apps/php81/include/php/ext/date/lib -I/usr/local/apps/ffmpeg//include/libavcodec/ -I/usr/local/apps/ffmpeg//include/libavformat/ -I/usr/local/apps/ffmpeg//include/libavutil/ -I/usr/local/apps/ffmpeg//include/libswscale/ -I/usr/local/apps/ffmpeg//include/libavfilter/ -I/usr/local/apps/ffmpeg//include/libavdevice/ -I/usr/local/apps/ffmpeg/include -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -DZEND_COMPILE_DL_EXT=1 -c /setups/ffmpeg-php-0.6.0/ffmpeg-php.c -MMD -MF ffmpeg-php.dep -MT ffmpeg-php.lo  -fPIC -DPIC -o .libs/ffmpeg-php.o&lt;br/&gt;
In file included from /usr/include/sys/stat.h:106:0,&lt;br/&gt;
                 from /usr/local/apps/php81/include/php/Zend/zend_stream.h:26,&lt;br/&gt;
                 from /usr/local/apps/php81/include/php/Zend/zend.h:38,&lt;br/&gt;
                 from /usr/local/apps/php81/include/php/main/php.h:31,&lt;br/&gt;
                 from /setups/ffmpeg-php-0.6.0/ffmpeg-php.c:40:&lt;br/&gt;
/usr/include/bits/stat.h:91:21: error: field ‘st_atim’ has incomplete type&lt;br/&gt;
     struct timespec st_atim;  /&lt;em&gt; Time of last access.  &lt;/em&gt;/&lt;br/&gt;
                     ^&lt;br/&gt;
/usr/include/bits/stat.h:92:21: error: field ‘st_mtim’ has incomplete type&lt;br/&gt;
     struct timespec st_mtim;  /&lt;em&gt; Time of last modification.  &lt;/em&gt;/&lt;br/&gt;
                     ^&lt;br/&gt;
/usr/include/bits/stat.h:93:21: error: field ‘st_ctim’ has incomplete type&lt;br/&gt;
     struct timespec st_ctim;  /&lt;em&gt; Time of last status change.  &lt;/em&gt;/&lt;br/&gt;
                     ^&lt;br/&gt;
/usr/include/bits/stat.h:152:21: error: field ‘st_atim’ has incomplete type&lt;br/&gt;
     struct timespec st_atim;  /&lt;em&gt; Time of last access.  &lt;/em&gt;/&lt;br/&gt;
                     ^&lt;br/&gt;
/usr/include/bits/stat.h:153:21: error: field ‘st_mtim’ has incomplete type&lt;br/&gt;
     struct timespec st_mtim;  /&lt;em&gt; Time of last modification.  &lt;/em&gt;/&lt;br/&gt;
                     ^&lt;br/&gt;
/usr/include/bits/stat.h:154:21: error: field ‘st_ctim’ has incomplete type&lt;br/&gt;
     struct timespec st_ctim;  /&lt;em&gt; Time of last status change.  &lt;/em&gt;/&lt;br/&gt;
                     ^&lt;br/&gt;
In file included from /usr/local/apps/php81/include/php/Zend/zend_stream.h:26:0,&lt;br/&gt;
                 from /usr/local/apps/php81/include/php/Zend/zend.h:38,&lt;br/&gt;
                 from /usr/local/apps/php81/include/php/main/php.h:31,&lt;br/&gt;
                 from /setups/ffmpeg-php-0.6.0/ffmpeg-php.c:40:&lt;br/&gt;
/usr/include/sys/stat.h:366:31: error: array type has incomplete element type&lt;br/&gt;
         const struct timespec __times&lt;span&gt;[2]&lt;/span&gt;,&lt;br/&gt;
                               ^&lt;br/&gt;
/usr/include/sys/stat.h:373:54: error: array type has incomplete element type&lt;br/&gt;
 extern int futimens (int __fd, const struct timespec __times&lt;span&gt;[2]&lt;/span&gt;) __THROW;&lt;br/&gt;
                                                      ^&lt;br/&gt;
In file included from /usr/local/apps/php81/include/php/main/php.h:423:0,&lt;br/&gt;
                 from /setups/ffmpeg-php-0.6.0/ffmpeg-php.c:40:&lt;br/&gt;
/usr/local/apps/php81/include/php/Zend/zend_virtual_cwd.h:209:2: error: unknown type name ‘time_t’&lt;br/&gt;
  time_t                         expires;&lt;br/&gt;
  ^&lt;br/&gt;
/usr/local/apps/php81/include/php/Zend/zend_virtual_cwd.h:240:89: error: unknown type name ‘time_t’&lt;br/&gt;
 CWD_API realpath_cache_bucket&lt;em&gt; realpath_cache_lookup(const char &lt;/em&gt;path, size_t path_len, time_t t);&lt;br/&gt;
                                                                                         ^&lt;br/&gt;
In file included from /usr/local/apps/ffmpeg/include/libavutil/avutil.h:301:0,&lt;br/&gt;
                 from /usr/local/apps/ffmpeg//include/libavcodec/avcodec.h:32,&lt;br/&gt;
                 from /setups/ffmpeg-php-0.6.0/ffmpeg-php.c:42:&lt;br/&gt;
/usr/local/apps/ffmpeg/include/libavutil/common.h: In function ‘av_sat_add64_c’:&lt;br/&gt;
/usr/local/apps/ffmpeg/include/libavutil/common.h:354:20: warning: suggest parentheses around arithmetic in operand of ‘|’ &lt;span&gt;[-Wparentheses]&lt;/span&gt;&lt;br/&gt;
     if ((int64_t)(a^b | ~s^b) &amp;gt;= 0)&lt;br/&gt;
                    ^&lt;br/&gt;
/setups/ffmpeg-php-0.6.0/ffmpeg-php.c: In function ‘zm_startup_ffmpeg’:&lt;br/&gt;
/setups/ffmpeg-php-0.6.0/ffmpeg-php.c:94:5: warning: implicit declaration of function ‘avcodec_init’ &lt;span&gt;[-Wimplicit-function-declaration]&lt;/span&gt;&lt;br/&gt;
     avcodec_init();&lt;br/&gt;
     ^&lt;br/&gt;
/setups/ffmpeg-php-0.6.0/ffmpeg-php.c:97:5: warning: implicit declaration of function ‘av_register_all’ &lt;span&gt;[-Wimplicit-function-declaration]&lt;/span&gt;&lt;br/&gt;
     av_register_all();&lt;br/&gt;
     ^&lt;br/&gt;
make: *** &lt;span&gt;[ffmpeg-php.lo]&lt;/span&gt; Error 1&lt;/p&gt;
&lt;p&gt;can you please provide any solution ??&lt;/p&gt;
&lt;p&gt;thanks for helping in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>cp: cannot stat `modules/*': No such file or directory</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/60/" rel="alternate"/><published>2017-08-06T23:09:49.604000Z</published><updated>2017-08-06T23:09:49.604000Z</updated><author><name>mojtaba mehdipour</name><uri>https://sourceforge.net/u/mojtaba472/</uri></author><id>https://sourceforge.net63135161bbfbfcf9f36d835ff4d0c0ab062b31b4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello &lt;br/&gt;
my download latest version ext_ffmpeg_20050221.rar (6.0 MB)&lt;br/&gt;
centos 6.8 X86&lt;/p&gt;
&lt;p&gt;error:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;Installing shared extensions:     /usr/lib/php/modules/
cp: cannot stat `modules/*': No such file or directory
make: *** [install-modules] Error 1
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;full Compile:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;[root@server ffmpeg1]# phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
[root@server ffmpeg1]# ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.6 (ok)
checking for gawk... gawk
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
[root@server ffmpeg1]# make &amp;amp;&amp;amp; make install

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/lib/php/modules/
cp: cannot stat `modules/*': No such file or directory
make: *** [install-modules] Error 1
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>#52 Will not compile against PHP 5.4</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/52/?limit=25#161a" rel="alternate"/><published>2014-08-28T12:44:08.045000Z</published><updated>2014-08-28T12:44:08.045000Z</updated><author><name>Chintan</name><uri>https://sourceforge.net/u/chintanggor/</uri></author><id>https://sourceforge.net906d1c4446b369c9b33fae3f3bb8794fca2012ff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi I did the same thing and also resolve above error &lt;/p&gt;
&lt;p&gt;but then it is giving new error &lt;/p&gt;
&lt;p&gt;/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_convert_frame':&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:202: warning: implicit declaration of function 'img_convert'&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_crop_frame':&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:260: warning: implicit declaration of function 'img_copy'&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_resample_frame':&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: 'ImgReSampleContext' undeclared (first use in this function)&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: (Each undeclared identifier is reported only once&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: for each function it appears in.)&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: 'img_resample_ctx' undeclared (first use in this function)&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:308: warning: implicit declaration of function 'img_resample_full_init'&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:321: warning: implicit declaration of function 'img_resample'&lt;br /&gt;
/opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:326: warning: implicit declaration of function 'img_resample_close'&lt;/p&gt;
&lt;p&gt;FYI: I am using php 5.1.6 and using this ffmpeg-php-0.5.3.1 so any thing wrong with my virsion of PHP?&lt;br /&gt;
I tried with many sources but it is configuring in only ffmpeg-php-0.5.3.1 in other virsion it gives header error.....&lt;br /&gt;
thanks&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compile against newer ffmpeg fails because of avutil/time.h</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/59/" rel="alternate"/><published>2014-04-20T21:15:22.517000Z</published><updated>2014-04-20T21:15:22.517000Z</updated><author><name>Casper Langemeijer</name><uri>https://sourceforge.net/u/langemeijer/</uri></author><id>https://sourceforge.net8ffd2bf445538f3b6436c8ae52612720452a5f2e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Compiling this extension against a newer ffmpeg library (at least the one on ubuntu trusty) aborts with the following errors:&lt;/p&gt;
&lt;p&gt;In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:105:0,&lt;br /&gt;
                 from /usr/include/php5/main/php_streams.h:28,&lt;br /&gt;
                 from /usr/include/php5/main/php.h:395,&lt;br /&gt;
                 from /root/ffmpeg-php-0.7.0/ffmpeg-php.c:40:&lt;br /&gt;
/usr/include/x86_64-linux-gnu/bits/stat.h:91:21: error: field 'st_atim' has incomplete type&lt;br /&gt;
     struct timespec st_atim;  /&lt;em&gt; Time of last access.  &lt;/em&gt;/&lt;br /&gt;
                     ^&lt;br /&gt;
/usr/include/x86_64-linux-gnu/bits/stat.h:92:21: error: field 'st_mtim' has incomplete type&lt;br /&gt;
     struct timespec st_mtim;  /&lt;em&gt; Time of last modification.  &lt;/em&gt;/&lt;br /&gt;
                     ^&lt;br /&gt;
/usr/include/x86_64-linux-gnu/bits/stat.h:93:21: error: field 'st_ctim' has incomplete type&lt;br /&gt;
     struct timespec st_ctim;  /&lt;em&gt; Time of last status change.  &lt;/em&gt;/&lt;br /&gt;
                     ^&lt;br /&gt;
/usr/include/x86_64-linux-gnu/bits/stat.h:152:21: error: field 'st_atim' has incomplete type&lt;br /&gt;
     struct timespec st_atim;  /&lt;em&gt; Time of last access.  &lt;/em&gt;/&lt;br /&gt;
                     ^&lt;br /&gt;
/usr/include/x86_64-linux-gnu/bits/stat.h:153:21: error: field 'st_mtim' has incomplete type&lt;br /&gt;
     struct timespec st_mtim;  /&lt;em&gt; Time of last modification.  &lt;/em&gt;/&lt;br /&gt;
                     ^&lt;br /&gt;
/usr/include/x86_64-linux-gnu/bits/stat.h:154:21: error: field 'st_ctim' has incomplete type&lt;br /&gt;
     struct timespec st_ctim;  /&lt;em&gt; Time of last status change.  &lt;/em&gt;/&lt;br /&gt;
                     ^&lt;br /&gt;
In file included from /usr/include/php5/main/php_streams.h:28:0,&lt;br /&gt;
                 from /usr/include/php5/main/php.h:395,&lt;br /&gt;
                 from /root/ffmpeg-php-0.7.0/ffmpeg-php.c:40:&lt;br /&gt;
/usr/include/x86_64-linux-gnu/sys/stat.h:365:31: error: array type has incomplete element type&lt;br /&gt;
         const struct timespec &lt;strong&gt;times&lt;span&gt;&lt;span&gt;[2]&lt;/span&gt;&lt;/span&gt;,&lt;br /&gt;
                               ^&lt;br /&gt;
/usr/include/x86_64-linux-gnu/sys/stat.h:372:54: error: array type has incomplete element type&lt;br /&gt;
 extern int futimens (int &lt;/strong&gt;fd, const struct timespec &lt;strong&gt;times&lt;span&gt;&lt;span&gt;[2]&lt;/span&gt;&lt;/span&gt;) &lt;/strong&gt;THROW;&lt;br /&gt;
                                                      ^&lt;br /&gt;
In file included from /usr/include/php5/main/php.h:401:0,&lt;br /&gt;
                 from /root/ffmpeg-php-0.7.0/ffmpeg-php.c:40:&lt;br /&gt;
/usr/include/php5/TSRM/tsrm_virtual_cwd.h:218:2: error: unknown type name 'time_t'&lt;br /&gt;
  time_t                         expires;&lt;br /&gt;
  ^&lt;br /&gt;
/usr/include/php5/TSRM/tsrm_virtual_cwd.h:246:86: error: unknown type name 'time_t'&lt;br /&gt;
 CWD_API realpath_cache_bucket&lt;em&gt; realpath_cache_lookup(const char &lt;/em&gt;path, int path_len, time_t t TSRMLS_DC);&lt;br /&gt;
                                                                                      ^&lt;br /&gt;
/root/ffmpeg-php-0.7.0/ffmpeg-php.c: In function 'zm_info_ffmpeg':&lt;br /&gt;
/root/ffmpeg-php-0.7.0/ffmpeg-php.c:194:38: warning: cast from pointer to integer of different size &lt;span&gt;[-Wpointer-to-int-cast]&lt;/span&gt;&lt;br /&gt;
     m_codec_list&lt;span&gt;[m_codec_list_len]&lt;/span&gt; = (char)NULL;&lt;br /&gt;
                                      ^&lt;/p&gt;
&lt;p&gt;Found the solution to the problem here:&lt;br /&gt;
&lt;a href="http://trac.osgeo.org/grass/ticket/2017#comment:12" rel="nofollow"&gt;http://trac.osgeo.org/grass/ticket/2017#comment:12&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The reason is that /usr/include/libavutil already contains time.h header file&lt;br /&gt;
It appears that they really don't want anyone else to use their library.&lt;/p&gt;
&lt;p&gt;I've implemented the suggestions as made in &lt;a href="http://trac.osgeo.org/grass/ticket/2017#comment:13" rel="nofollow"&gt;http://trac.osgeo.org/grass/ticket/2017#comment:13&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Apply the patchfile as attached to solve this problem.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compile error (all versions and trunk) on mac os php 5.4 ffmpeg 2.1.3 </title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/58/" rel="alternate"/><published>2014-01-31T13:58:39.795000Z</published><updated>2014-01-31T13:58:39.795000Z</updated><author><name>Alexandr</name><uri>https://sourceforge.net/u/salex772/</uri></author><id>https://sourceforge.net98f32e2e75df6230400cafabb0d5704f92907e23</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:73:31: error: use of undeclared identifier 'MAX_STREAMS'&lt;br /&gt;
    AVCodecContext &lt;em&gt;codec_ctx&lt;span&gt;&lt;span&gt;[MAX_STREAMS]&lt;/span&gt;&lt;/span&gt;;&lt;br /&gt;
                              ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:152:44: error: use of undeclared identifier 'CODEC_TYPE_VIDEO'&lt;br /&gt;
    int i = _php_get_stream_index(fmt_ctx, CODEC_TYPE_VIDEO);&lt;br /&gt;
                                           ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:165:44: error: use of undeclared identifier 'CODEC_TYPE_AUDIO'&lt;br /&gt;
    int i = _php_get_stream_index(fmt_ctx, CODEC_TYPE_AUDIO);&lt;br /&gt;
                                           ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:203:21: error: use of undeclared identifier 'MAX_STREAMS'&lt;br /&gt;
    for (i = 0; i &amp;lt; MAX_STREAMS; i++) {&lt;br /&gt;
                    ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:253:9: warning: 'av_close_input_file' is deprecated &lt;span&gt;&lt;span&gt;[-Wdeprecated-declarations]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
        av_close_input_file(ffmovie_ctx-&amp;gt;fmt_ctx);&lt;br /&gt;
        ^&lt;br /&gt;
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file' declared here&lt;br /&gt;
void av_close_input_file(AVFormatContext &lt;/em&gt;s);&lt;br /&gt;
     ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:258:9: warning: implicit declaration of function 'av_open_input_file' is invalid in C99&lt;br /&gt;
&lt;span&gt;[-Wimplicit-function-declaration]&lt;/span&gt;&lt;br /&gt;
    if (av_open_input_file(&amp;amp;ffmovie_ctx-&amp;gt;fmt_ctx, filename, NULL, 0, NULL) &amp;lt; 0) {&lt;br /&gt;
        ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:263:5: warning: 'av_find_stream_info' is deprecated &lt;span&gt;[-Wdeprecated-declarations]&lt;/span&gt;&lt;br /&gt;
    av_find_stream_info(ffmovie_ctx-&amp;gt;fmt_ctx);&lt;br /&gt;
    ^&lt;br /&gt;
/usr/local/include/libavformat/avformat.h:1616:5: note: 'av_find_stream_info' declared here&lt;br /&gt;
int av_find_stream_info(AVFormatContext &lt;em&gt;ic);&lt;br /&gt;
    ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:311:9: error: use of undeclared identifier 'list_entry'&lt;br /&gt;
        list_entry &lt;/em&gt;le;&lt;br /&gt;
        ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:311:21: error: use of undeclared identifier 'le'&lt;br /&gt;
        list_entry &lt;em&gt;le;&lt;br /&gt;
                    ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:324:48: error: use of undeclared identifier 'le'&lt;br /&gt;
                    hashkey_length+1, (void&lt;/em&gt;*)&amp;amp;le)) {&lt;br /&gt;
                                               ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:327:26: error: use of undeclared identifier 'le'&lt;br /&gt;
            if (Z_TYPE_P(le) != le_ffmpeg_pmovie) {&lt;br /&gt;
                         ^&lt;br /&gt;
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_operators.h:461:34: note: expanded from macro 'Z_TYPE_P'&lt;/p&gt;
&lt;h1 id="define-z_type_pzval_p-z_typezval_p"&gt;define Z_TYPE_P(zval_p)        Z_TYPE(*zval_p)&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;                                    &lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_operators.h:460:24: note: expanded from macro 'Z_TYPE'&lt;/p&gt;
&lt;h1 id="define-z_typezval-zvaltype"&gt;define Z_TYPE(zval)            (zval).type&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;                             &lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:331:46: error: use of undeclared identifier 'le'&lt;br /&gt;
            ffmovie_ctx = (ff_movie_context*)le-&amp;gt;ptr;&lt;br /&gt;
                                             ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:346:13: error: use of undeclared identifier 'list_entry'&lt;br /&gt;
            list_entry new_le;&lt;br /&gt;
            ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:356:20: error: use of undeclared identifier 'new_le'&lt;br /&gt;
            Z_TYPE(new_le) = le_ffmpeg_pmovie;&lt;br /&gt;
                   ^&lt;br /&gt;
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_operators.h:460:24: note: expanded from macro 'Z_TYPE'&lt;/p&gt;
&lt;h1 id="define-z_typezval-zvaltype_1"&gt;define Z_TYPE(zval)            (zval).type&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;                             &lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:357:13: error: use of undeclared identifier 'new_le'&lt;br /&gt;
            new_le.ptr = ffmovie_ctx;&lt;br /&gt;
            ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:360:52: error: use of undeclared identifier 'new_le'&lt;br /&gt;
                        hashkey_length+1, (void &lt;em&gt;)&amp;amp;new_le, sizeof(list_entry),&lt;br /&gt;
                                                   ^&lt;br /&gt;
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_hash.h:109:51: note: expanded from macro 'zend_hash_update'&lt;br /&gt;
                _zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)&lt;br /&gt;
                                                                ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:409:25: error: use of undeclared identifier 'MAX_STREAMS'&lt;br /&gt;
        for (i = 0; i &amp;lt; MAX_STREAMS; i++) {&lt;br /&gt;
                        ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:417:5: warning: 'av_close_input_file' is deprecated &lt;span&gt;&lt;span&gt;[-Wdeprecated-declarations]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
    av_close_input_file(ffmovie_ctx-&amp;gt;fmt_ctx);&lt;br /&gt;
    ^&lt;br /&gt;
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file' declared here&lt;br /&gt;
void av_close_input_file(AVFormatContext &lt;/em&gt;s);&lt;br /&gt;
     ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:433:25: error: use of undeclared identifier 'MAX_STREAMS'&lt;br /&gt;
        for (i = 0; i &amp;lt; MAX_STREAMS; i++) {&lt;br /&gt;
                        ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:441:5: warning: 'av_close_input_file' is deprecated &lt;span&gt;[-Wdeprecated-declarations]&lt;/span&gt;&lt;br /&gt;
    av_close_input_file(ffmovie_ctx-&amp;gt;fmt_ctx);&lt;br /&gt;
    ^&lt;br /&gt;
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file' declared here&lt;br /&gt;
void av_close_input_file(AVFormatContext &lt;em&gt;s);&lt;br /&gt;
     ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:484:28: error: use of undeclared identifier 'CODEC_TYPE_VIDEO'&lt;br /&gt;
        if (stream_type == CODEC_TYPE_VIDEO) {&lt;br /&gt;
                           ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:513:13: warning: implicit declaration of function 'avcodec_open' is invalid in C99&lt;br /&gt;
&lt;br /&gt;
&lt;span&gt;&lt;span&gt;[-Wimplicit-function-declaration]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
        if (avcodec_open(ffmovie_ctx-&amp;gt;codec_ctx&lt;span&gt;&lt;span&gt;[stream_index]&lt;/span&gt;&lt;/span&gt;, decoder) &amp;lt; 0) {&lt;br /&gt;
            ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:531:42: error: no member named 'comment' in 'struct AVFormatContext'&lt;br /&gt;
    RETURN_STRINGL(ffmovie_ctx-&amp;gt;fmt_ctx-&amp;gt;comment,&lt;br /&gt;
    /usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:631:58: note: expanded from macro 'RETURN_STRINGL'&lt;br /&gt;
    #define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; }&lt;br /&gt;
                                                             ^&lt;br /&gt;
    /usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:619:69: note: expanded from macro 'RETVAL_STRINGL'&lt;br /&gt;
    #define RETVAL_STRINGL(s, l, duplicate)         ZVAL_STRINGL(return_value, s, l, duplicate)&lt;br /&gt;
                                                                               ^&lt;br /&gt;
    /usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:579:20: note: expanded from macro 'ZVAL_STRINGL'&lt;br /&gt;
                    const char &lt;/em&gt;&lt;strong&gt;s=(s); int &lt;/strong&gt;l=l;                 \
                                     ^&lt;br /&gt;
    /Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:532:42: error: no member named 'comment' in 'struct AVFormatContext'&lt;br /&gt;
                strlen(ffmovie_ctx-&amp;gt;fmt_ctx-&amp;gt;comment), 1);&lt;br /&gt;
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:631:61: note: expanded from macro 'RETURN_STRINGL'&lt;/p&gt;
&lt;h1 id="define-return_stringls-l-duplicate-retval_stringls-l-duplicate-return"&gt;define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; }&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;                                                        &lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:619:72: note: expanded from macro 'RETVAL_STRINGL'&lt;/p&gt;
&lt;h1 id="define-retval_stringls-l-duplicate-zval_stringlreturn_value-s-l-duplicate"&gt;define RETVAL_STRINGL(s, l, duplicate)         ZVAL_STRINGL(return_value, s, l, duplicate)&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;                                                                          &lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:579:32: note: expanded from macro 'ZVAL_STRINGL'&lt;br /&gt;
                const char &lt;em&gt;&lt;strong&gt;s=(s); int &lt;/strong&gt;l=l;                 \
                                             ^&lt;br /&gt;
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:546:42: error: no member named 'title' in 'struct AVFormatContext'&lt;br /&gt;
    RETURN_STRINGL(ffmovie_ctx-&amp;gt;fmt_ctx-&amp;gt;title,&lt;br /&gt;
    /usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:631:58: note: expanded from macro 'RETURN_STRINGL'&lt;br /&gt;
    #define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; }&lt;br /&gt;
                                                             ^&lt;br /&gt;
    /usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:619:69: note: expanded from macro 'RETVAL_STRINGL'&lt;br /&gt;
    #define RETVAL_STRINGL(s, l, duplicate)         ZVAL_STRINGL(return_value, s, l, duplicate)&lt;br /&gt;
                                                                               ^&lt;br /&gt;
    /usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:579:20: note: expanded from macro 'ZVAL_STRINGL'&lt;br /&gt;
                    const char &lt;/em&gt;&lt;strong&gt;s=(s); int &lt;/strong&gt;l=l;                 \
  &lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#56 ffmpeg-php 0.6.0 error make</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/56/?limit=25#1e50" rel="alternate"/><published>2013-07-31T15:12:30.803000Z</published><updated>2013-07-31T15:12:30.803000Z</updated><author><name>drupaul</name><uri>https://sourceforge.net/u/drupaul/</uri></author><id>https://sourceforge.net5e87c2452bf3ac67c874425e3edf4a6531abe094</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I had this same issue when making against ffmpeg-1.2.1 from the atomic repo.&lt;/p&gt;
&lt;p&gt;Solution:&lt;br /&gt;
Remove ffmpeg and ffmpeg-devel and reinstall from DAG Repo which provides ffmpeg0.6.5&lt;/p&gt;
&lt;p&gt;I also had to remove a couple of file conflicts:&lt;/p&gt;
&lt;h1 id="yum-remove-libopencore-amrnb0-liba52_0-libopencore-amrwb0-librtmp0"&gt;yum remove libopencore-amrnb0 liba52_0 libopencore-amrwb0 librtmp0&lt;/h1&gt;&lt;/div&gt;</summary></entry><entry><title>Duration might be wrong</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/57/" rel="alternate"/><published>2013-02-04T00:11:46Z</published><updated>2013-02-04T00:11:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net29fae3058561cad33e36136e056d79291b49a828</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;FFmpeg returns a duration parameter for quicktime movies with in- and out-points which is not the actual clip duration but a virtual duration of something like the full length original video. Short: the duration parameter might be incorrect for some movies. As soon as ffmpeg writes something like:&lt;/p&gt;
&lt;p&gt;"Duration: 00:00:19.04, start: -2.-266800, bitrate: 2747 kb/s"&lt;/p&gt;
&lt;p&gt;getDuration will be wrong...&lt;/p&gt;
&lt;p&gt;As a workaround, I used mediainfo or mplayer to check for the clipduration. Maybe it's possible to calculate the duration based on the framerate and the frame count?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ffmpeg-php 0.6.0 error make</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/56/" rel="alternate"/><published>2012-09-05T12:31:26Z</published><updated>2012-09-05T12:31:26Z</updated><author><name>Evgenij</name><uri>https://sourceforge.net/u/evgenij32/</uri></author><id>https://sourceforge.netc039789c5b02a99d4c14d5737a966b85930664eb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;try make:&lt;br /&gt;
/bin/sh /root/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/root/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/ffmpeg-php-0.6.0/include -I/root/ffmpeg-php-0.6.0/main -I/root/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /root/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo&lt;br /&gt;
libtool: compile:  cc -I. -I/root/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/ffmpeg-php-0.6.0/include -I/root/ffmpeg-php-0.6.0/main -I/root/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o&lt;br /&gt;
In file included from /usr/include/sys/stat.h:107:0,&lt;br /&gt;
from /usr/include/php/main/php_streams.h:28,&lt;br /&gt;
from /usr/include/php/main/php.h:396,&lt;br /&gt;
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:&lt;br /&gt;
/usr/include/bits/stat.h:91:21: error: field 'st_atim' has incomplete type&lt;br /&gt;
/usr/include/bits/stat.h:92:21: error: field 'st_mtim' has incomplete type&lt;br /&gt;
/usr/include/bits/stat.h:93:21: error: field 'st_ctim' has incomplete type&lt;br /&gt;
/usr/include/bits/stat.h:152:21: error: field 'st_atim' has incomplete type&lt;br /&gt;
/usr/include/bits/stat.h:153:21: error: field 'st_mtim' has incomplete type&lt;br /&gt;
/usr/include/bits/stat.h:154:21: error: field 'st_ctim' has incomplete type&lt;br /&gt;
In file included from /usr/include/php/main/php_streams.h:28:0,&lt;br /&gt;
from /usr/include/php/main/php.h:396,&lt;br /&gt;
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:&lt;br /&gt;
/usr/include/sys/stat.h:367:33: error: array type has incomplete element type&lt;br /&gt;
/usr/include/sys/stat.h:374:56: error: array type has incomplete element type&lt;br /&gt;
In file included from /usr/include/php/main/php.h:402:0,&lt;br /&gt;
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:&lt;br /&gt;
/usr/include/php/TSRM/tsrm_virtual_cwd.h:218:2: error: unknown type name 'time_t'&lt;br /&gt;
/usr/include/php/TSRM/tsrm_virtual_cwd.h:246:86: error: unknown type name 'time_t'&lt;br /&gt;
/root/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg':&lt;br /&gt;
/root/ffmpeg-php-0.6.0/ffmpeg-php.c:94:5: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration]&lt;br /&gt;
make: *** [ffmpeg-php.lo] Error 1&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>doesn't compile</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/55/" rel="alternate"/><published>2012-06-16T16:22:28Z</published><updated>2012-06-16T16:22:28Z</updated><author><name>Matteo Sisti Sette</name><uri>https://sourceforge.net/u/sistisette/</uri></author><id>https://sourceforge.netaf4cea8ec175eadfba70be438848fd0eb81f4847</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Followed the step-by-step instructions and got this:&lt;/p&gt;
&lt;p&gt;make&lt;br /&gt;
/bin/sh /root/temp_ffmpegphp/ffmpeg-php-0.6.0/libtool --mode=compile gcc  -I. -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/include -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/main -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo &lt;br /&gt;
mkdir .libs&lt;br /&gt;
gcc -I. -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/include -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/main -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o&lt;br /&gt;
/bin/sh /root/temp_ffmpegphp/ffmpeg-php-0.6.0/libtool --mode=compile gcc  -I. -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/include -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/main -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c -o ffmpeg_movie.lo &lt;br /&gt;
gcc -I. -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/include -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0/main -I/root/temp_ffmpegphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c  -fPIC -DPIC -o .libs/ffmpeg_movie.o&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:73: error: 'MAX_STREAMS' undeclared here (not in a function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_video_stream':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: (Each undeclared identifier is reported only once&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: for each function it appears in.)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_audio_stream':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:165: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_decoder_context':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:484: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getComment':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: 'AVFormatContext' has no member named 'comment'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: 'AVFormatContext' has no member named 'comment'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getTitle':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: 'AVFormatContext' has no member named 'title'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: 'AVFormatContext' has no member named 'title'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAuthor':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: 'AVFormatContext' has no member named 'author'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: 'AVFormatContext' has no member named 'author'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getCopyright':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: 'AVFormatContext' has no member named 'copyright'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: 'AVFormatContext' has no member named 'copyright'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAlbum':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: 'AVFormatContext' has no member named 'album'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: 'AVFormatContext' has no member named 'album'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getGenre':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: 'AVFormatContext' has no member named 'genre'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: 'AVFormatContext' has no member named 'genre'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getTrackNumber':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:619: error: 'AVFormatContext' has no member named 'track'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getYear':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:632: error: 'AVFormatContext' has no member named 'year'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_framerate':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:678: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_framenumber':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:810: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_pixelformat':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:850: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_codec_name':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:963: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getVideoCodec':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:989: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioCodec':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1009: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getVideoStreamId':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1029: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioStreamId':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1051: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioChannels':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1089: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioSampleRate':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1125: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioBitRate':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1161: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getVideoBitRate':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1181: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_read_av_frame':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1204: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1215: warning: implicit declaration of function 'avcodec_decode_video'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1219: error: 'PKT_FLAG_KEY' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_av_frame':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1246: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1282: error: 'AVCodecContext' has no member named 'hurry_up'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1284: error: 'AVCodecContext' has no member named 'hurry_up'&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_sample_aspect_ratio':&lt;br /&gt;
/root/temp_ffmpegphp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1443: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)&lt;br /&gt;
make: *** [ffmpeg_movie.lo] Error 1&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Building against php 5.4 on FreeBSD</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/54/" rel="alternate"/><published>2012-06-07T03:58:04Z</published><updated>2012-06-07T03:58:04Z</updated><author><name>ginoit</name><uri>https://sourceforge.net/u/ginoitalo/</uri></author><id>https://sourceforge.net2039a2c507a9ccd3b8599caa09e6ecf1ff1ba260</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Similar issue as well   (with make and gmake)&lt;/p&gt;
&lt;p&gt;# cc -v&lt;br /&gt;
Using built-in specs.&lt;br /&gt;
Target: i386-undermydesk-freebsd&lt;br /&gt;
Configured with: FreeBSD/i386 system compiler&lt;br /&gt;
Thread model: posix&lt;br /&gt;
gcc version 4.2.1 20070719  [FreeBSD]&lt;/p&gt;
&lt;p&gt;php5-5.4.3&lt;/p&gt;
&lt;p&gt;ffmpeg-0.7.12_2,1&lt;/p&gt;
&lt;p&gt;(same result with branch: ffmpeg-php-0.6.1)&lt;/p&gt;
&lt;p&gt;/usr/local/include/php/ext/standard/info.h:87: error: expected declaration specifiers before '__attribute__'&lt;br /&gt;
In file included from /tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:53:&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/php_ffmpeg.h:70: error: storage class specified for parameter 'ffmpeg_module_entry'&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:58: error: parameter 'ffmpeg_module_entry' is initialized&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:58: error: redefinition of parameter 'ffmpeg_module_entry'&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/php_ffmpeg.h:70: error: previous definition of 'ffmpeg_module_entry' was here&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:77: error: expected declaration specifiers before '__attribute__'&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:77: error: expected declaration specifiers before ';' token&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:82: error: storage class specified for parameter 'register_ffmpeg_movie_class'&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:83: error: storage class specified for parameter 'register_ffmpeg_frame_class'&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:85: error: storage class specified for parameter 'ini_entries'&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:85: error: parameter 'ini_entries' is initialized&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:86: warning: braces around scalar initializer&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:86: warning: (near initialization for 'ini_entries')&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:86: warning: excess elements in scalar initializer&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: excess elements in scalar initializer&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: (near initialization for 'ini_entries')&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: excess elements in scalar initializer&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: (near initialization for 'ini_entries')&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:94: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:150: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:204: error: old-style parameter declarations in prototyped function definition&lt;br /&gt;
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:204: error: expected '{' at end of input&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>