Re: [Ffmpeg-php-user] error in building latest cvs ffmpeg-php against latest cvs ffmpeg
Brought to you by:
tkirby
From: Steve B. <sb...@ew...> - 2005-05-03 11:17:04
|
On Mon, 2005-05-02 at 14:25 -0700, 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 ran into this too. The latest ffmpeg cvs has adds a new struct AVRational time_base to AVCodecContext in avcodec.h. The attached patch seems to fix the problem. And test_ffmpeg.php still runs and the frame_rates look ok. Hope I got this right, Steve |