I was running 0.4.3 fine on php 4.3.11, and I upgraded
to 5.0.4 and got the 0.4.6 of ffmpeg-php which would
compile fine and then give me errors when I run the
test_ffmpeg.php:
libavcodec version number: 1033 libavcodec build
number: 4730 Functions available in
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so
extension: Methods available in class ffmpeg_movie:
ffmpeg_movie getduration getframecount getframerate
getfilename getcomment gettitle getauthor getartist
getcopyright getalbum getgenre getyear gettracknumber
getframewidth getframeheight getframenumber
getpixelformat getbitrate hasaudio getnextkeyframe
getframe getvideocodec getaudiocodec getaudiochannels
getpixelaspectratio -------------------- file name =
/home/generalh/public_html/test_media/test.avi duration
= 5 seconds frame count = 0 frame rate = 0.000 fps
comment = title = author = copyright = frame height = 0
pixels frame width = 0 pixels has audio = No
Warning: Can't find video stream in
/home/generalh/public_html/test_media/test.avi in
/home/generalh/public_html/test_ffmpeg.php on line 74
get pixel format = yuv420p
Warning: Can't find video stream in
/home/generalh/public_html/test_media/test.avi in
/home/generalh/public_html/test_ffmpeg.php on line 75
get pixel aspect ratio = 0 get video codec = get audio
codec = get audio channels = get bit rate = 306 kb/s
get frame = false
Warning: Can't find video stream in
/home/generalh/public_html/test_media/test.avi in
/home/generalh/public_html/test_ffmpeg.php on line 90
get frame number = 0 -------------------- file name =
/home/generalh/public_html/test_media/robot.avi
duration = 0.36 seconds frame count = 0 frame rate =
0.000 fps comment = title = author = copyright = frame
height = 0 pixels frame width = 0 pixels has audio = No
Warning: Can't find video stream in
/home/generalh/public_html/test_media/robot.avi in
/home/generalh/public_html/test_ffmpeg.php on line 74
get pixel format = yuv420p
Warning: Can't find video stream in
/home/generalh/public_html/test_media/robot.avi in
/home/generalh/public_html/test_ffmpeg.php on line 75
get pixel aspect ratio = 0 get video codec = get audio
codec = get audio channels = get bit rate = 4905 kb/s
get frame = false
Warning: Can't find video stream in
/home/generalh/public_html/test_media/robot.avi in
/home/generalh/public_html/test_ffmpeg.php on line 90
get frame number = 0 --------------------
I went back to php 4.3.11 and ffmpeg 0.4.3 but now
ffmpeg 0.4.3 won't compile at all and 0.4.6 doesn't
work for it either when I phpize it for that version.
0.4.3 gives me the following output when compiling:
root@virtualserversolutions01
[/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3]#
make
/bin/sh
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/libtool
--mode=compile gcc -I.
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-DPHP_ATOM_INC
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/include
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/main
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2
-Wall -fno-strict-aliasing -c
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg.c
-o ffmpeg.lo
gcc -I.
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-DPHP_ATOM_INC
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/include
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/main
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2
-Wall -fno-strict-aliasing -c
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg.c
-fPIC -DPIC -o ffmpeg.lo
/bin/sh
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/libtool
--mode=compile gcc -I.
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-DPHP_ATOM_INC
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/include
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/main
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2
-Wall -fno-strict-aliasing -c
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c
-o ffmpeg_movie.lo
gcc -I.
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-DPHP_ATOM_INC
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/include
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/main
-I/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3
-I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2
-Wall -fno-strict-aliasing -c
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c
-fPIC -DPIC -o ffmpeg_movie.lo
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:
In function `_php_get_stream_index':
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:82:
request for member `codec_type' in something not a
structure or union
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:
In function `_php_get_decoder_context':
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:395:
request for member `codec_id' in something not a
structure or union
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:403:
warning: assignment from incompatible pointer type
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:
In function `_php_get_framecount':
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:571:
request for member `frame_rate' in something not a
structure or union
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:571:
request for member `frame_rate_base' in something not a
structure or union
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:
In function `_php_get_framerate':
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:606:
request for member `frame_rate' in something not a
structure or union
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:606:
request for member `frame_rate_base' in something not a
structure or union
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:
In function `_php_get_framewidth':
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:649:
request for member `width' in something not a structure
or union
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:
In function `_php_get_frameheight':
/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3/ffmpeg_movie.c:677:
request for member `height' in something not a
structure or union
make: *** [ffmpeg_movie.lo] Error 1
root@virtualserversolutions01
[/usr/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php-0.4.3]#
Any Ideas?
Logged In: NO
I redid ffmpeg (not your extension) with the newest version
and headers and when i build ffmpeg-php it fails no matter
what including on php 5.0.4. ffmpeg reads the files fine
however.
Logged In: NO
Nevermind I redid ffmpeg-php with version 0.4.6 and it
seemed to fix my problem. I think when I built ffmpeg (non
php extension) and then removed it, it still had some links
to some old libraries for the libav* stuff. I then made the
mistake of using the CVS version for my test, I gave it one
last try. You can close this. :D