Hi everybody, i'm wondering if is it possible to use ffmpeg plugin with OSG 3.0.1, to play a video frame by frame. I compiled osg 3.0.1 with ffmpeg plugin, and i run the osgmovie example with no problem. Now, what i'd like to do, is to play a video frame by frame : i would say to my application (using ffmpeg or other video plugin), to visualize a specific frame. I read the seek method into osg::imagestream. So i wrote the following code:
// Note 1: mImagestream is the imagestream associated to video // Note 2: framenum is the frame number to visualize double duration=mImagestream->getLength(); double frame_rate=mImagestream->getFrameRate(); ... double frameTime=1/frame_rate; double t_pos =framenum*frameTime; mImagestream->seek(t_pos); mImagestream->play(); mImagestream->pause(); ... Nothing happens. Are there some suggestions? Thank you! Cheers, Andrea PS: I erroneously posted this topic on general forum too ... sorry! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58236#58236 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

