<HTML dir=ltr><HEAD><TITLE>Re: [GRASS-dev] GRASS FFMPEG support</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18023" name=GENERATOR><BASE href=http://mailstore.rossoalice.alice.it/exchange/Alice000000001264700/Bozze/R:%20[GRASS-dev]%20GRASS%20FFMPEG%20support.EML/1_text.htm></HEAD>
<BODY>
<DIV id=idOWAReplyText58514 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Glynn,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I succesfully built ffmpeg with the following configure options:</FONT></DIV>
<DIV dir=ltr><CODE><FONT face=Arial size=2></FONT></CODE> </DIV>
<DIV dir=ltr><CODE><FONT face=Arial size=2>--enable-shared --disable-static --enable-gpl </FONT></CODE></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>>Configure checks for the headers avcodec.h, avformat.h and swscale.h,<BR>>for the function avcodec_init with -lavcodec (and optionally<BR>>-lavutil), and for the function av_set_parameters with -lavformat (and<BR>>optionally -lavutil).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>mmm... the configure log it's long to post it here, but there's a line that may be *interesting*:</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><CODE><FONT face=Arial size=2>software scaler enabled no</FONT></CODE></DIV>
<DIV dir=ltr><CODE></CODE> </DIV>
<DIV dir=ltr><CODE></CODE><CODE><FONT face=Arial size=2>you say that configure checks for swscale.h ... maybe software scaler must be enabled?</FONT></CODE></DIV>
<DIV dir=ltr><CODE></CODE> </DIV>
<DIV dir=ltr><CODE></CODE><CODE><FONT face=Arial size=2>another thing: vhook is not enabled, because it has been replaced by LibAVFilter, and because to build it I need some works around with libraries... so I would be very happy if GRASS would not need it :-) ... do you know if it is needed?</FONT></CODE></DIV>
<DIV dir=ltr><CODE><FONT face=Arial size=2></FONT></CODE> </DIV>
<DIV dir=ltr><CODE><FONT face=Arial size=2>Many thanks for your help,</FONT></CODE></DIV>
<DIV dir=ltr><CODE><FONT face=Arial size=2></FONT></CODE> </DIV>
<DIV dir=ltr><CODE><FONT face=Arial size=2>Marco</FONT></CODE></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> Glynn Clements [mailto:glynn@gclements.plus.com]<BR><B>Inviato:</B> gio 12/06/2008 7.04<BR><B>A:</B> marco.pasetti@alice.it<BR><B>Cc:</B> grass-dev@lists.osgeo.org<BR><B>Oggetto:</B> Re: [GRASS-dev] GRASS FFMPEG support<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>marco.pasetti@alice.it wrote:<BR><BR>> I'm building ffmpeg on windows through MinGW; standard build went<BR>> succesfully, but I have some doubts: what does GRASS need to enable<BR>> ffmpeg support in it?<BR><BR>You need to run configure with the --with-ffmpeg switch, and possibly<BR>the --with-ffmpeg-includes= and/or --with-ffmpeg-libs= switches.<BR><BR>I would expect that you need --with-ffmpeg-includes=, as the headers<BR>normally get installed into a subdirectory, but the headers don't<BR>specify the subdirectory when they include each other.<BR><BR>> I built ffmpeg enabling shared and disabling static libraries, but<BR>> enabling shared produces only libavutil, libavcodec and libavformat as<BR>> DLLs, and not a ffmpeg DLL, as I roughly expected (I checked on the<BR>> official ffmpeg web site, that's normal, there is any ffmpeg.dll<BR>> mentioned)<BR><BR>That's correct (on Linux, I also have libpostproc, but that isn't<BR>required by any of the other libraries).<BR><BR>Configure checks for the headers avcodec.h, avformat.h and swscale.h,<BR>for the function avcodec_init with -lavcodec (and optionally<BR>-lavutil), and for the function av_set_parameters with -lavformat (and<BR>optionally -lavutil).<BR><BR>If using --with-ffmpeg results in configure errors, and you used any<BR>necessary --with-ffmpeg-includes= and/or --with-ffmpeg-libs= switches,<BR>then look in config.log for any error messages.<BR><BR>--<BR>Glynn Clements <glynn@gclements.plus.com><BR></FONT></P></DIV></BODY></HTML>