HI Carlos,<br><br>As I don't see any of these problems, I'm afraid there isn't much I can do apart from make suggestions for you to try out.  Right now it looks like you'll need to add the zlib library into the build of other ffmpeg or our plugin.<br>
<br>Robert.<br><br><div class="gmail_quote">2009/3/20 Carlos Sanches <span dir="ltr"><<a href="mailto:cesmsp@gmail.com">cesmsp@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
:(<br>ok.<br>I downloaded,  compiled and instaled zlib-1.2.3  <br>built ffmpeg from svn again with new zlib installed<br>in osg i changed the directories of zlib to the new zlib in ccmake cmakelist.txt<br>in OpenSceneGraph-2.9.1 directory:<br>

./configure<br>make clean <br>make<br><br>the example was built again but .<br>running example with ./osgmovie -e ffmpeg video.avi   or .mpg <br>the movie runs but the same error apears.<div class="im"><br><br>Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error occurred while trying to open it:<br>

/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol: inflateInit_<br></div>image->s()640 image-t()=480 aspectRatio=1<br>Transparent movie, enabling blending.<br><br>My sistem is Ubuntu 8.04<br>videocard  nvidia 8800 gtx <br>

motherboard P5N-T DELUXE<br>Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz<br><br>say me if you need more information .<br>i realy need to play movies with ffmpeg.<br><br>tks<div><div></div><div class="h5"><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><div class="gmail_quote">2009/3/20 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi Carlos,<br><br>What happens when you run:<br><br>   osgmovie -e ffmpeg a_video.mpg<br><br>Is it still reporting that it can't load the plugin?<br><br>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.<br>


<br>It's odd that you're having problems wheras others aren't.  What is the exact spec of your system?<br><br>Robert.<br><br><div class="gmail_quote">2009/3/20 Carlos Sanches <span dir="ltr"><<a href="mailto:cesmsp@gmail.com" target="_blank">cesmsp@gmail.com</a>></span><div>

<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">ok , now i m using svn version of ffmpeg.<br>bow the example runs but the message still apear<br>


<br>I put the the lines in main function of my program::<div><br><br>std::string libName =  osgDB::Registry::instance()-><div>
createLibraryNameForExtension("ffmpeg");<br>osgDB::Registry::instance()->loadLibrary(libName);<br></div><br></div>but looks like that its using xine yet .<br>and the old error continues.<br><br><br>*** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***<br>



======= Backtrace: =========<br>/lib/tls/i686/cmov/libc.so.6[0xb73e9a85]<br>/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]<br>/usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]<br>/usr/lib/libxine.so.1[0xb58484d8]<br>



======= Memory map: ========<br><br>Why my ffmpeg is not in use ?<br>I have to modify something in osgDB ?<br><br><br><br><br><br><br><br><div class="gmail_quote">2009/3/20 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span><div>


<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HI Carlos,<br><br>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.<br>




<br>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.<br><font color="#888888"><br>Robert.</font><div>



<div></div><div><br><br><div class="gmail_quote">
2009/3/19 Carlos Sanches <span dir="ltr"><<a href="mailto:cesmsp@gmail.com" target="_blank">cesmsp@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




Ok , I did it .<br>now I m trying to run de example:<br> osgmovie -e ffmpeg<br><br>this error occours <br><br>Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error occurred while trying to open it:<br>





/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol: inflateInit_<br>Usage: ./osgmovie [options] filename ...<br>Options:<br>...<div><div></div><div><br><br><br><br><br><div class="gmail_quote">2009/3/19 Adrian Egli OpenSceneGraph (3D) <span dir="ltr"><<a href="mailto:3dhelp@gmail.com" target="_blank">3dhelp@gmail.com</a>></span><br>





<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am working with windows, no problem there, but here my settings. <br>Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS<br>





Description: Path to a file.<br>Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC<br>New Value (Enter to keep current value):<br>
<br>Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES<br>Description: Path to a library.<br>Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib<br>New Value (Enter to keep current value):<br><br>Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS<br>






Description: Path to a file.<br>Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE<br>New Value (Enter to keep current value):<br><br>Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES<br>Description: Path to a library.<br>Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib<br>






New Value (Enter to keep current value):<br><br>Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS<br>Description: Path to a file.<br>Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT<br>New Value (Enter to keep current value):<br>






<br>Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES<br>Description: Path to a library.<br>Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib<br>New Value (Enter to keep current value):<br><br>Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS<br>






Description: Path to a file.<br>Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL<br>New Value (Enter to keep current value):<br><br>Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES<br>Description: Path to a library.<br>Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib<br>






New Value (Enter to keep current value):<br><br>Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS<br>Description: Path to a file.<br>Current Value: F:/dev/ffmpeg/SDK/include/libswscale<br>New Value (Enter to keep current value):<br>






<br>Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES<br>Description: Path to a library.<br>Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib<br>New Value (Enter to keep current value):<br><br>Variable Name: FFMPEG_ROOT<br>Description: Location of FFMPEG<br>






Current Value: F:/dev/ffmpeg/SDK/include<br>New Value (Enter to keep current value):<br><br><br><div class="gmail_quote">2009/3/19 Carlos Sanches <span dir="ltr"><<a href="mailto:cesmsp@gmail.com" target="_blank">cesmsp@gmail.com</a>></span><div>





<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Adrian !<br>ok, I have the ffmpeg installed . I use it to convert my movies.<br>Now I m seeing in ccmake configure list . but have some options that I dont know what I have to put there.<br>






the options are :<br><br>FFMPEG_LIBAVCODEC_INCLUDE_DIRS   /usr/include                                                                                                              <br>
 FFMPEG_LIBAVCODEC_LIBRARIES      /usr/lib/libavcodec.so                                                                                                    <br> FFMPEG_LIBAVDEVICE_INCLUDE_DIR   FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND                                                                                  <br>







 FFMPEG_LIBAVDEVICE_LIBRARIES     FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND                                                                                     <br> FFMPEG_LIBAVFORMAT_INCLUDE_DIR   /usr/include                                                                                                              <br>







 FFMPEG_LIBAVFORMAT_LIBRARIES     /usr/lib/libavformat.so                                                                                                   <br> FFMPEG_LIBAVUTIL_INCLUDE_DIRS    /usr/include                                                                                                              <br>







 FFMPEG_LIBAVUTIL_LIBRARIES       /usr/lib/libavutil.so                                                                                                     <br> FFMPEG_LIBSWSCALE_INCLUDE_DIRS   /usr/include                                                                                                              <br>







 FFMPEG_LIBSWSCALE_LIBRARIES      /usr/lib/libswscale.so                                                                                                    <br> FFMPEG_ROOT                                                                                                                                                <br>







<br>The options that I believe that must be wrong are:   <br>FFMPEG_LIBAVDEVICE_INCLUDE_DIR<br> FFMPEG_LIBAVDEVICE_LIBRARIES<br> FFMPEG_ROOT<br><br>What I have to do in these options ?<br>tks <br><br><br><br><br><br><br>






<br>
<br><div class="gmail_quote">2009/3/19 Adrian Egli OpenSceneGraph (3D) <span dir="ltr"><<a href="mailto:3dhelp@gmail.com" target="_blank">3dhelp@gmail.com</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







Hi Carlos <br>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. <br><br>adrian<br><br>








<div class="gmail_quote">2009/3/18 Carlos Sanches <span dir="ltr"><<a href="mailto:cesmsp@gmail.com" target="_blank">cesmsp@gmail.com</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








Hi Robert.<br>I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have the plugin for ffmpeg .<br>this is correct ?<br>I put this in my code ...<div><br>    std::string libName =  osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");<br>









    osgDB::Registry::instance()->loadLibrary(libName);<br><br></div>but how I know if it is using ffmpeg ?<br><br>tks <br><br><br><br><br><div class="gmail_quote">2009/3/16 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span><div>








<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Carlos,<br><br>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:<br>










<br>std::string libName =  osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");<br>osgDB::Registry::instance()->loadLibrary(libName);<br><br>Robert.<br><br><div class="gmail_quote">2009/3/16 Carlos Sanches <span dir="ltr"><<a href="mailto:cesmsp@gmail.com" target="_blank">cesmsp@gmail.com</a>></span><br>










<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div><br clear="all">Hi all !<br>I downloaded osg 2.9.1 . I m using  pImageStream = dynamic_cast<osg::ImageStream*>(hudImage);<br>










to open a movie. <br>What have I to do to use ffmpeg to read my movies ?<br><br>tks <br><br>
<br><br>
<br></div></div>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div></div></div><br><br>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div></div></div><br><br clear="all"><br>-- <br>********************************************<br><font color="#888888">Adrian Egli<br>
</font><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div></div></div><br><br clear="all"><br>-- <br>    Carlos Sanches<br>Programação Gráfica;<br><br>Tel:  55 11 3816 2888<br>Cel: 55 11 9650 7137<br><br>       Somar Meteorologia<br><a href="http://www.somarmeteorologia.com.br" target="_blank">www.somarmeteorologia.com.br</a><br>







<br>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div></div></div><br><br clear="all"><br>-- <br>********************************************<br><font color="#888888">Adrian Egli<br>
</font><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>    Carlos Sanches<br>Programação Gráfica;<br><br>Tel:  55 11 3816 2888<br>Cel: 55 11 9650 7137<br><br>       Somar Meteorologia<br><a href="http://www.somarmeteorologia.com.br" target="_blank">www.somarmeteorologia.com.br</a><br>





<br>
</div></div><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div></div></div><div><div></div><div><br><br clear="all"><br>-- <br>    Carlos Sanches<br>Programação Gráfica;<br><br>Tel:  55 11 3816 2888<br>Cel: 55 11 9650 7137<br><br>       Somar Meteorologia<br>
<a href="http://www.somarmeteorologia.com.br" target="_blank">www.somarmeteorologia.com.br</a><br>
<br>
</div></div><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>    Carlos Sanches<br>Programação Gráfica;<br><br>Tel:  55 11 3816 2888<br>Cel: 55 11 9650 7137<br><br>       Somar Meteorologia<br><a href="http://www.somarmeteorologia.com.br" target="_blank">www.somarmeteorologia.com.br</a><br>

<br>
</div></div><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br>