[GRASS-dev] cvs compilation problem - nviz?

Glynn Clements glynn at gclements.plus.com
Thu Jul 26 17:21:11 EDT 2007


Bob Covill wrote:

> > > > As far as I can tell ffmpeg is installed correctly (mpeg1video_encoder 
> > > > is defined in config.h, no errors) ... any tip?
> > > 
> > > It should be declared in avcodec.h:
> > > 
> > > 	extern AVCodec mpeg1video_encoder;
> > > 
> > > I don't have a config.h in the ffmpeg include directory, and
> > > gsd_image_ppm.c doesn't #include it (in fact, if it did have
> > > "#include <config.h>", there's no guarantee that it would be ffmpeg's
> > > config.h which was included; config.h is a rather common name).
> > > 
> > > It appears that your version of ffmpeg isn't compatible with the OGSF
> > > library; I can only suggest removing --with-ffmpeg from your configure
> > > command.
> > 
> > I've just upgraded to ffmpeg 0.4.9, and I see the same problem. None
> > of the installed headers define the *_encoder variables, so I assume
> > that the only solution which will work with recent versions of ffmpeg
> > is to replace register_avcodec() with avcodec_register_all().
> 
> I just grabbed the latest version of FFMPEG and get the same problem. I
> replaced register_avcodec() with avcodec_register_all() and rebuilt ogsf
> and nviz. I then generated a movie and it worked with this change. With
> this change the 2nd avcodec_register_all() and
> register_avcodec(&xvid_encoder) should probably be removed (?) from
> gsd_img_ppm.c. They are inside "#ifdef USE_XVID".

I'll change it to use avcodec_register_all(); AFAICT, that should also
work with older versions of FFMPEG. I'll also move all of the MPEG
stuff into a separate file, gsd_img_mpeg.c.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list