On Wed, 16 Feb 2011 03:46:54 am ext Steve Schilz wrote: > Hello all, > > I am interested in performing frame-by-frame seeks of a video file. > Assuming I have a seekable file loaded in a QMediaPlayer, I can call > setPosition(qint64), but I need to know a frame rate so that I can seek > to something like (currentPosition + secsPerFrame); > > I see that QtMultimediaKit::MetaData includes "VideoFrameRate", and that > the QVideoSurfaceFormat contains a method "qreal frameRate() const", but > it is not immediately clear to me how I would reference either of > these... Any suggestions are appreciated. `
framerate via QVideoSurfaceFormat is available when a video surface is used as a video output, metadata access is easier player->metaData(QtMultimediaKit::VideoFrameRate) but depending on backend implementation, video framerate may or may not be available via metadata API. Regards Dmytro. > > Steve Schilz > > > _______________________________________________ > Qt-mobility-feedback mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback > _______________________________________________ Qt-mobility-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback
