OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

FFmpeg plugin

Goto page 1, 2  Next
 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
Carlos Sanches
Guest





PostPosted: Mon Mar 16, 2009 2:21 pm    Post subject:
FFmpeg plugin
Reply with quote

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

------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Mon Mar 16, 2009 2:47 pm    Post subject:
FFmpeg plugin
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
Carlos Sanches
Guest





PostPosted: Wed Mar 18, 2009 6:15 pm    Post subject:
FFmpeg plugin
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
Adrian Egli OpenSceneG...
Guest





PostPosted: Thu Mar 19, 2009 8:17 am    Post subject:
FFmpeg plugin
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
********************************************
Adrian Egli

------------------
Post generated by Mail2Forum
Back to top
Carlos Sanches
Guest





PostPosted: Thu Mar 19, 2009 12:10 pm    Post subject:
FFmpeg plugin
Reply with quote

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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12323

PostPosted: Thu Mar 19, 2009 12:20 pm    Post subject:
FFmpeg plugin
Reply with quote

HI Carlos,

You'll need to install the headers for ffmpeg and the device library.

Robet.

2009/3/19 Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Adrian Egli OpenSceneG...
Guest





PostPosted: Thu Mar 19, 2009 12:36 pm    Post subject:
FFmpeg plugin
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
********************************************
Adrian Egli

------------------
Post generated by Mail2Forum
Back to top
Carlos Sanches
Guest





PostPosted: Thu Mar 19, 2009 6:45 pm    Post subject:
FFmpeg plugin
Reply with quote

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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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

------------------
Post generated by Mail2Forum
Back to top
Carlos Sanches
Guest





PostPosted: Thu Mar 19, 2009 6:52 pm    Post subject:
FFmpeg plugin
Reply with quote

my ffmpeg version



FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration:
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Mar 19 2009 12:47:35, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
ffmpeg: missing argument for option '-v'




On Thu, Mar 19, 2009 at 3:45 PM, Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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






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

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

      Somar Meteorologia
www.somarmeteorologia.com.br

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12323

PostPosted: Fri Mar 20, 2009 8:54 am    Post subject:
FFmpeg plugin
Reply with quote

HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories.

Robert.

2009/3/19 Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Carlos Sanches
Guest





PostPosted: Fri Mar 20, 2009 12:40 pm    Post subject:
FFmpeg plugin
Reply with quote

ok , now i m using svn version of ffmpeg.
bow the example runs but the message still apear

I put the the lines in main function of my program::

std::string libName =  osgDB::Registry::instance()-> createLibraryNameForExtension("ffmpeg");
osgDB::Registry::instance()->loadLibrary(libName);


but looks like that its using xine yet .
and the old error continues.


*** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb73e9a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]
/usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]
/usr/lib/libxine.so.1[0xb58484d8]
======= Memory map: ========

Why my ffmpeg is not in use ?
I have to modify something in osgDB ?







2009/3/20 Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories.

Robert.


2009/3/19 Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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

------------------
Post generated by Mail2Forum
Back to top
Tanguy Fautre
Guest





PostPosted: Fri Mar 20, 2009 12:48 pm    Post subject:
FFmpeg plugin
Reply with quote

Hi guys,

inflateInit_ sounds very much like an API entry point in zlib.


Tanguy



From: [mailto:] On Behalf Of Robert Osfield
Sent: Friday 20 March 2009 08:55
To: OpenSceneGraph Users
Subject: Re: FFmpeg plugin

HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories.

Robert.




------------------
Post generated by Mail2Forum
Back to top
Carlos Sanches
Guest





PostPosted: Fri Mar 20, 2009 1:07 pm    Post subject:
FFmpeg plugin
Reply with quote

yeah 

here http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/zlib-inflateinit.html






On Fri, Mar 20, 2009 at 9:47 AM, Tanguy Fautre < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi guys,

inflateInit_ sounds very much like an API entry point in zlib.


Tanguy



From: (
Only registered users can see emails on this board!
Get registred or enter the forums!
) [mailto: (
Only registered users can see emails on this board!
Get registred or enter the forums!
)] On Behalf Of Robert Osfield
Sent: Friday 20 March 2009 08:55
To: OpenSceneGraph Users
Subject: Re: FFmpeg plugin

HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories.

Robert.




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12323

PostPosted: Fri Mar 20, 2009 1:30 pm    Post subject:
FFmpeg plugin
Reply with quote

Hi Carlos,

What happens when you run:

   osgmovie -e ffmpeg a_video.mpg

Is it still reporting that it can't load the plugin?

I suspect that you are still hitting against the plugin not loading correctly.  The inflatInit method is still being reported as not found and this function is from zlib then ffmpeg is built without linking against zlib which is needs.  Linking against zlib ourselves in our ffmpeg could a solution.

It's odd that you're having problems wheras others aren't.  What is the exact spec of your system?

Robert.

2009/3/20 Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
ok , now i m using svn version of ffmpeg.
bow the example runs but the message still apear

I put the the lines in main function of my program::

std::string libName =  osgDB::Registry::instance()-> createLibraryNameForExtension("ffmpeg");
osgDB::Registry::instance()->loadLibrary(libName);



but looks like that its using xine yet .
and the old error continues.


*** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb73e9a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]
/usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]
/usr/lib/libxine.so.1[0xb58484d8]
======= Memory map: ========

Why my ffmpeg is not in use ?
I have to modify something in osgDB ?







2009/3/20 Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories.

Robert.


2009/3/19 Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Carlos Sanches
Guest





PostPosted: Fri Mar 20, 2009 4:17 pm    Post subject:
FFmpeg plugin
Reply with quote

Sad
ok.
I downloaded,  compiled and instaled zlib-1.2.3 
built ffmpeg from svn again with new zlib installed
in osg i changed the directories of zlib to the new zlib in ccmake cmakelist.txt
in OpenSceneGraph-2.9.1 directory:
./configure
make clean
make

the example was built again but .
running example with ./osgmovie -e ffmpeg video.avi   or .mpg
the movie runs but the same error apears.

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_
image->s()640 image-t()=480 aspectRatio=1
Transparent movie, enabling blending.

My sistem is Ubuntu 8.04
videocard  nvidia 8800 gtx
motherboard P5N-T DELUXE
Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz

say me if you need more information .
i realy need to play movies with ffmpeg.

tks














2009/3/20 Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
Hi Carlos,

What happens when you run:

   osgmovie -e ffmpeg a_video.mpg

Is it still reporting that it can't load the plugin?

I suspect that you are still hitting against the plugin not loading correctly.  The inflatInit method is still being reported as not found and this function is from zlib then ffmpeg is built without linking against zlib which is needs.  Linking against zlib ourselves in our ffmpeg could a solution.

It's odd that you're having problems wheras others aren't.  What is the exact spec of your system?

Robert.

2009/3/20 Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
ok , now i m using svn version of ffmpeg.
bow the example runs but the message still apear

I put the the lines in main function of my program::

std::string libName =  osgDB::Registry::instance()-> createLibraryNameForExtension("ffmpeg");
osgDB::Registry::instance()->loadLibrary(libName);



but looks like that its using xine yet .
and the old error continues.


*** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb73e9a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]
/usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]
/usr/lib/libxine.so.1[0xb58484d8]
======= Memory map: ========

Why my ffmpeg is not in use ?
I have to modify something in osgDB ?







2009/3/20 Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories.

Robert.


2009/3/19 Carlos Sanches < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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) < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>

Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org







_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






--
********************************************
Adrian Egli

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org






_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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

------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Problems with dae plugin John Richardson Plugins [osgPlugins] 0 Thu Apr 11, 2019 5:00 pm View latest post
No new posts [PARTIALLY SOLVED] Problems with dae ... Nikkitta Plugins [osgPlugins] 4 Mon Apr 08, 2019 3:51 pm View latest post
No new posts Add search location for textures in F... bbjorn Submission 1 Mon Feb 04, 2019 2:22 pm View latest post
No new posts OSG GLTF loader plugin Chris Hanson General 0 Thu Dec 06, 2018 9:55 pm View latest post
No new posts playing videos with audio channels wi... Trajce Nikolov NICK General 7 Wed Nov 21, 2018 9:17 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP