HI Thomas, Thanks for the posting your FFmpeg code. FYI, I've had feedback from a windows users that FFmpeg turned out to be perform better than using DirectShow, so a good FFmpeg plugin might still add value under Windows.
As for the non power of two issue, this is easy to solve at the scene graph end, simply attach the ImageStream to a TextureRectangle or a Texture2D with the setResizeNonPowerOfTwoHint(false) (this only works with hardware/drivers that support NPOT textures, but that's most modern hardware these days). Robert. On Tue, Feb 24, 2009 at 5:52 PM, Thomas Hogarth <thomas.hoga...@googlemail.com> wrote: > Hi Robert and Tanguy > > I noticed you talking about video plugins. I've written a few image streams > that allow me to run video files and webcam streams, but haven't taken the > leap to creating a plug-in. I'd find it very interesting to look at the > source for this and see what steps are required (as manually attaching the > images to textures is a nightmare) > > One thing I am keen to solve is the non power of 2 video issue, currently I > have to create a texture the nearest ^2 up then load the image into the > corner of it. I then use a TexMat to rescale the texcoords to account for > this ( the reason for this is pushing non ^2 textures onto graphics cards is > slow and webcams don't usually do ^2) > > Would a plugin automatically be able to insert this TexMat ? > > Cheers > Thomas Hogarth (finally my first post :) ) > > PS > Also I've attached my rather limited ffmpeg stream for you guys to look at, > I never finished as I moved over to Directshow for windows and Quicktime for > OSX, but it does get the frames out > I guess your using FFMPEG as it is cross platform ? > > > > > > > _______________________________________________ > 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