Unsolved Accessing frame from QmediaPlayer video
-
Hello,
i have problems understanding how to access a frame from a QmediaPlayer video.
After setting up all variables i addplayer->setMedia(QUrl::fromLocalFile(filename)); connect(probe, SIGNAL(videoFrameProbed(QVideoFrame)), this, SLOT(processFrame(QVideoFrame))); probe->setSource(player);
Here i connect the probe to the player, but how do i access the frames? something like probe.frame?????
Sorry, i am new of QT
Thanks
-
Hi,
Take a look at this doc.qt.io/qt-5/qvideoframe.html#detailsso your processFrame() slot will get a QVideoFrame. Then you can access the video data from there. However this will depend on how Qt's backend support for your platform. Take a look at this https://wiki.qt.io/Qt_Multimedia_Backends.
Thanks
-
@asanka424 Thanksss