Re: [osg-users] How to force FFMPEG plugin

2010-04-17 Thread Robert Osfield
Hi Mike,

Another method above Mourad's tip is to append a .ffmpeg to the end
of the filename, the ffmpeg plugin will automatically strip this and
then load the video.

It's my plan to make the ffmpeg plugin the default video plugin for
the OSG, but we'll need to sort out a good default audio
implementation first, as both the xine and quicktime plugins provide
audio for video's, something that ffmpeg itself doesn't provide.

Robert.

On Fri, Apr 16, 2010 at 7:41 PM, Mike Wozniewski m...@mikewoz.com wrote:
 Does anyone know how to force the use of the ffmpeg plugin instead of xine.
 I know that this is possible on the commandline, eg:

 osgmovie -e ffmpeg movie.mov

 But I'd like to do this in code, eg:
  osg::Image* image = osgDB::readImageFile(path);
  osg::ImageStream* imagestream = dynamic_castosg::ImageStream*(image);

 I can't seem to find how the osgmovie example uses this extension
 argument...

 Any pointers would be appreciated.

 Thanks,
 Mike Wozniewski
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] How to force FFMPEG plugin

2010-04-16 Thread Mike Wozniewski
Does anyone know how to force the use of the ffmpeg plugin instead of 
xine. I know that this is possible on the commandline, eg:


osgmovie -e ffmpeg movie.mov

But I'd like to do this in code, eg:
 osg::Image* image = osgDB::readImageFile(path);
 osg::ImageStream* imagestream = dynamic_castosg::ImageStream*(image);

I can't seem to find how the osgmovie example uses this extension 
argument...


Any pointers would be appreciated.

Thanks,
Mike Wozniewski
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How to force FFMPEG plugin

2010-04-16 Thread Mourad Boufarguine
Hi Mike,

You should preload ffmpeg plugin before reading the movie file :

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

Mourad

On Fri, Apr 16, 2010 at 8:41 PM, Mike Wozniewski m...@mikewoz.com wrote:

 Does anyone know how to force the use of the ffmpeg plugin instead of xine.
 I know that this is possible on the commandline, eg:

 osgmovie -e ffmpeg movie.mov

 But I'd like to do this in code, eg:
  osg::Image* image = osgDB::readImageFile(path);
  osg::ImageStream* imagestream = dynamic_castosg::ImageStream*(image);

 I can't seem to find how the osgmovie example uses this extension
 argument...

 Any pointers would be appreciated.

 Thanks,
 Mike Wozniewski
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How to force FFMPEG plugin

2010-04-16 Thread Mike Wozniewski

Ah - that worked. So easy.

Thanks.

Mourad Boufarguine wrote:

Hi Mike,

You should preload ffmpeg plugin before reading the movie file :

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

Mourad

On Fri, Apr 16, 2010 at 8:41 PM, Mike Wozniewski m...@mikewoz.com 
mailto:m...@mikewoz.com wrote:


Does anyone know how to force the use of the ffmpeg plugin instead
of xine. I know that this is possible on the commandline, eg:

osgmovie -e ffmpeg movie.mov

But I'd like to do this in code, eg:
 osg::Image* image = osgDB::readImageFile(path);
 osg::ImageStream* imagestream =
dynamic_castosg::ImageStream*(image);

I can't seem to find how the osgmovie example uses this extension
argument...

Any pointers would be appreciated.

Thanks,
Mike Wozniewski
___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto:osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
  


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org