Accessing frame from QmediaPlayer video
i have problems understanding how to access a frame from a QmediaPlayer video.
After setting up all variables i add
player->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
Take a look at this doc.qt.io/qt-5/qvideoframe.html#details
so 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.