Thread: [Ffmpeg-php-user] error in building latest cvs ffmpeg-php against latest cvs ffmpeg
Brought to you by:
tkirby
From: Scott L. <sl...@io...> - 2005-05-02 21:25:46
|
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. -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com |
From: Todd.Kirby <dou...@pa...> - 2005-05-03 03:30:12
|
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. > Which version of ffmpeg are you building against? Did you run './configure && make clean' after you updated cvs? -Todd |
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 |
From: Steve B. <sb...@ew...> - 2005-05-03 11:17:04
Attachments:
time_base.patch
|
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 |
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 |
From: Scott L. <sl...@io...> - 2005-05-04 16:43:16
|
I finally got around to taking a look at using the patch yesterday afternoon and it had already made CVS. Anyway, it compiled cleanly and looks to be working well. -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com On May 3, 2005, at 10:22 PM, Todd.Kirby wrote: > 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 |