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-04 05:22:20
|
Steve Brown wrote: >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 > > > Thanks for the patch! I applied it to cvs and added a #ifdef LIBAVCODEC_BUILD to detect which version of the code to use. It seems to work, though I'm still testing with some different movie types to be sure. -Todd |