[osg-users] FFmpeg plugin

Carlos Sanches cesmsp at gmail.com
Thu Mar 19 11:45:28 PDT 2009


Ok , I did it .
now I m trying to run de example:
 osgmovie -e ffmpeg

this error occours

Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so'
exists, but an error occurred while trying to open it:
/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
inflateInit_
Usage: ./osgmovie [options] filename ...
Options:
...




2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dhelp at gmail.com>

> I am working with windows, no problem there, but here my settings.
> Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/libswscale
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_ROOT
> Description: Location of FFMPEG
> Current Value: F:/dev/ffmpeg/SDK/include
> New Value (Enter to keep current value):
>
>
> 2009/3/19 Carlos Sanches <cesmsp at gmail.com>
>
> Hi Adrian !
>> ok, I have the ffmpeg installed . I use it to convert my movies.
>> Now I m seeing in ccmake configure list . but have some options that I
>> dont know what I have to put there.
>> the options are :
>>
>> FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>> /usr/include
>>
>>  FFMPEG_LIBAVCODEC_LIBRARIES
>> /usr/lib/libavcodec.so
>>
>>  FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>> FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND
>>
>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>> FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND
>>
>>  FFMPEG_LIBAVFORMAT_INCLUDE_DIR
>> /usr/include
>>
>>  FFMPEG_LIBAVFORMAT_LIBRARIES
>> /usr/lib/libavformat.so
>>
>>  FFMPEG_LIBAVUTIL_INCLUDE_DIRS
>> /usr/include
>>
>>  FFMPEG_LIBAVUTIL_LIBRARIES
>> /usr/lib/libavutil.so
>>
>>  FFMPEG_LIBSWSCALE_INCLUDE_DIRS
>> /usr/include
>>
>>  FFMPEG_LIBSWSCALE_LIBRARIES
>> /usr/lib/libswscale.so
>>
>>  FFMPEG_ROOT
>>
>>
>> The options that I believe that must be wrong are:
>> FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>>  FFMPEG_ROOT
>>
>> What I have to do in these options ?
>> tks
>>
>>
>>
>>
>>
>>
>>
>>
>> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dhelp at gmail.com>
>>
>> Hi Carlos
>>> You have to donwload ffmpeg and build the plugin by setting up the right
>>> parameters in cmake. then osg will build the ffmpeg plugin as well as the
>>> other 3rd party plugins will be build.
>>>
>>> adrian
>>>
>>> 2009/3/18 Carlos Sanches <cesmsp at gmail.com>
>>>
>>> Hi Robert.
>>>> I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have
>>>> the plugin for ffmpeg .
>>>> this is correct ?
>>>> I put this in my code ...
>>>>     std::string libName =
>>>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>>>>     osgDB::Registry::instance()->loadLibrary(libName);
>>>>
>>>> but how I know if it is using ffmpeg ?
>>>>
>>>> tks
>>>>
>>>>
>>>>
>>>>
>>>> 2009/3/16 Robert Osfield <robert.osfield at gmail.com>
>>>>
>>>> Hi Carlos,
>>>>>
>>>>> Have a look at the osgmovie example for guidance, it'll boil down to
>>>>> reading a image, and assing to the a textured quad.  Right now you'll need
>>>>> to preload the ffmpeg plugin as osgDB won't yet automatically alias the
>>>>> movie extensions to ffmpeg.  On the movie command line you use the option -e
>>>>> ffmpeg to pre load the plugin.  Programatically you'd use:
>>>>>
>>>>> std::string libName =
>>>>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>>>>> osgDB::Registry::instance()->loadLibrary(libName);
>>>>>
>>>>> Robert.
>>>>>
>>>>> 2009/3/16 Carlos Sanches <cesmsp at gmail.com>
>>>>>
>>>>>>
>>>>>> Hi all !
>>>>>> I downloaded osg 2.9.1 . I m using  pImageStream =
>>>>>> dynamic_cast<osg::ImageStream*>(hudImage);
>>>>>> to open a movie.
>>>>>> What have I to do to use ffmpeg to read my movies ?
>>>>>>
>>>>>> tks
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> osg-users mailing list
>>>>>> osg-users at lists.openscenegraph.org
>>>>>>
>>>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> osg-users mailing list
>>>>> osg-users at lists.openscenegraph.org
>>>>>
>>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>>>
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> osg-users mailing list
>>>> osg-users at lists.openscenegraph.org
>>>>
>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>>
>>>>
>>>
>>>
>>> --
>>> ********************************************
>>> Adrian Egli
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users at lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>>
>>
>> --
>>    Carlos Sanches
>> Programação Gráfica;
>>
>> Tel:  55 11 3816 2888
>> Cel: 55 11 9650 7137
>>
>>       Somar Meteorologia
>> www.somarmeteorologia.com.br
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> --
> ********************************************
> Adrian Egli
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
   Carlos Sanches
Programação Gráfica;

Tel:  55 11 3816 2888
Cel: 55 11 9650 7137

      Somar Meteorologia
www.somarmeteorologia.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090319/9f8df711/attachment-0003.htm>


More information about the osg-users mailing list