Re: [Ffmpeg-php-user] error in building latest cvs ffmpeg-php against latest cvs ffmpeg
Brought to you by:
tkirby
From: Todd.Kirby <dou...@pa...> - 2005-05-03 04:44:27
|
Scott Larson wrote: > I updated both to the latest versions today and after installing > ffmpeg, I tried to build ffmpeg-php and the build dies with this error: > > /usr/local/src/php-4.3.10/ext/ffmpeg/ffmpeg_movie.c: In function > `_php_get_framecount': > /usr/local/src/php-4.3.10/ext/ffmpeg/ffmpeg_movie.c:568: structure has > no member named `frame_rate' > /usr/local/src/php-4.3.10/ext/ffmpeg/ffmpeg_movie.c:568: structure has > no member named `frame_rate_base' > /usr/local/src/php-4.3.10/ext/ffmpeg/ffmpeg_movie.c: In function > `_php_get_framerate': > /usr/local/src/php-4.3.10/ext/ffmpeg/ffmpeg_movie.c:603: structure has > no member named `frame_rate' > /usr/local/src/php-4.3.10/ext/ffmpeg/ffmpeg_movie.c:603: structure has > no member named `frame_rate_base' > > Any suggestions? I've been digging through cvs archives and > playing with the source trying to get a workaround, with the best case > so far being that I disabled the ability to get frame counts. > I just updated to ffmpeg cvs and now I'm getting the same errors. Looks like this change from a couple days ago to avcodec.h is the culprit: http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/libavcodec/avcodec.h.diff?r1=1.392&r2=1.393&cvsroot=FFMpeg I'll have to #ifdef LIBAVCODEC_BUILD to handle this change, but I don't know how to use these native time bases yet so it make take some time. Until then you can just use ffmpeg cvs from right before this change: cd ffmpeg cvs update -D 04/29/05 and recompile both ffmpeg and ffmpeg-php -Todd |