Hi Hartmut, On 8/15/07, Hartmut Seichter <[EMAIL PROTECTED]> wrote: > this is intended to be a discussion starter. I am currently adapting > osgART to integrate better with OpenSceneGraph 2.x and I am removing all > the indirections we have in osgART to use live video via > ImageStream/Image. As I assume some of you might also want to use live > video within simulations the current interface of ImageStream is suboptimal.
For video is also suboptimal so I'm certainly open to seeing to evolve further. It just so happens that I was talking to a client yesterday about live video feed in the quicktime plugin so it would seem the planets are aligned :-) > Two questions basically: > > - are there any objections about having a method open() which basically > connects the image stream to a device or an image file. start() is kind > of "late" because open() might pull up dialogs for configuration. This > also would mean a new StreamStatus READY (like in GStreamer). The general design on Image/ImageStream is that the plugins create the ImageStream objects tying them to a specific file (or source), and its been assumed to far that once constructed by the plugin the Image/ImageStream would be ready to use. If you introduce an open() would this be with a parameter? Would you also need a close()? > - using -1 as return of getLength to indicate a live source? Or have a > flag with a getter (bool isLive() const)? Return a getLength of MAX_FLT for live might make more sense, or pehaps 0. I would suggest having an enum or string for the video source type of ImageStream. For live streams functions like rewind, looping, pause and the time methods are all irrelevant, so perhaps one should break ImageStream up into several classes - a MovieStream class, and LiveStream which subclass from ImageStream. > Configuration of live sources is hard to generalize, thus I am hesitant > to suggest anything for that: any takers? Well you know more about live streams than I do so could provide a bit of scoping out of what types of configuration you are currently having to set? I was hoping that we'd be able to encode all the info for the live video stream as a std::string that can be passed to the plugin via the normal filename route. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

