Hi Petr,

Do you have ffmpeg plugin built and installed?

Here is small snippet from my application:

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


osg::Image* image = osgDB::readImageFile("d:/tmp/fire1.wmv");

osg::ImageStream* imagestream = dynamic_cast<osg::ImageStream*>(image);
if (imagestream)
{
   imagestream->play();
}

...
Can you check if the ffmpeg lib is there and loaded?
Also if you are under Windows, you will have to put the ffmpeg dependencies and dlls in your executable's directory.

Cheers
Sebastian
Hi,

I have a problem which Im not able to solve.
Im using this piece of code in my application:

Code:
osg::ref_ptr<osg::Image> video1 = osgDB::readImageFile( 
"external/videos/a.mp4.ffmpeg" );


which always returns NULL pointer. The path is right, I even tried absolute 
path, I tried move that mp4 video to different folders...

I really dont understand why it is not working because in my application, I 
load ( or read ) many pictures/images (png) without any problem.

Thank you!

Cheers,
Petr

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58582#58582





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to