Re: [osg-users] [osgPlugins] ffmpeg plugin : play a video frame by frame
Hi to all, i looked at osgmovie.cpp. I used seek method of imagstream, but i'm unable to visualize a specified frame (only the pecified frame). Is it possibile to get this result with imagestream? Thank you! Cheers, Andrea -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58396#58396 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] ffmpeg plugin : play a video frame by frame
Hi, Imagestream is definitly capable to seek to specific frames. It seems that the ffmpg implementation does not support this. The QTKit/AVFoundation implementations do support this. Perhaps you can add the missing functionality to the ffmpg-plugin? Cheers, Stephan Von meinem iPad gesendet Am 27.02.2014 um 17:27 schrieb Andrea Martini martini.and...@gmail.com: Hi to all, i looked at osgmovie.cpp. I used seek method of imagstream, but i'm unable to visualize a specified frame (only the pecified frame). Is it possibile to get this result with imagestream? Thank you! Cheers, Andrea -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58396#58396 ___ 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] [osgPlugins] ffmpeg plugin : play a video frame by frame
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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org