[osg-users] ffmpeg plugin on OS X / DarwinPorts

Robert Osfield robert.osfield at gmail.com
Tue Mar 3 02:58:21 PST 2009


Hi Ulrich,

Thanks for the changes, these are now merged and submitted to svn/trunk.

So with these changes do we have a compiling and working ffmpeg plugin
under OSX?

To try it out do:

  osgmovie --ffmpeg  mymovie.mov

Robert.

On Tue, Mar 3, 2009 at 10:25 AM, Ulrich Hertlein <u.hertlein at sandbox.de> wrote:
> Hi Robert,
>
> On 3/3/09 8:50 PM, Robert Osfield wrote:
>>>
>>> it appears that the required #include (in FFmpegHeaders.hpp) would be:
>>> #include <ffmpeg/avformat.h>
>>>
>>> rather than what it is now:
>>> #include v<avformat.h>
>>>
>>> Can we change that without breaking compiles on other systems?
>>
>> This change would break other systems as they don't have all have the
>> ffmpeg prefix.  When I have built ffmpeg from source the ffmpeg prefix
>> ...
>> Could you do an svn update and see if this addition helps things.
>
> Yup.  That solves the #include <avformat.h> problem.
>
> What I'm currently looking at is 'undeclared INT64_C' in
> 'FFmpegDecoderVideo.cpp' which is caused by some header including stdint.h
> without '#define __STDC_CONSTANT_MACROS'.
>
> I can solve this by including 'FFmpegHeaders.hpp' first thing in
> 'FFmpegDecoderVideo.hpp' (see attachment).  Does that work on Linux?
>
> After that it's the missing libpath to find libavformat and friends.  I've
> added some code to 'FindFFmpeg.cmake' to extract the library directories but
> have now idea yet how to tell cmake to use that path in
> src/osgPlugin/ffmpeg/CMakeFiles ...
>
> Cheers,
> /ulrich
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



More information about the osg-users mailing list