Unsolved How to get all frames from a video, while video is play as QMediaplayer??
-
I have try to grab all frames from a video using videoprobe but I am struggling to get it.Any suggestions to solve this??
Here is my code:
/*
QVideoWidget *videoWidget = new QVideoWidget(this);
QMediaPlayer *player=new QMediaPlayer;
QVideoProbe *probe = new QVideoProbe;
connect(probe, SIGNAL(videoFrameProbed(QVideoFrame)), this, SLOT(processFrame(QVideoFrame)));
probe->setSource(player);
player->setVideoOutput(videoWidget);
player->setMedia(QUrl::fromLocalFile("C:/Users/bharathi/Downloads/vid.mp4"));
videoWidget->setGeometry(0,0,500,500);
videoWidget->show();
player->play();
*/ -