Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get all frames from a video, while video is play as QMediaplayer??

How to get all frames from a video, while video is play as QMediaplayer??

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BharathiB Offline
    BharathiB Offline
    Bharathi
    wrote on last edited by Bharathi
    #1

    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();
    */

    1 Reply Last reply
    1
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      This may help ?
      https://forum.qt.io/topic/36098/get-frames-from-a-video
      http://stackoverflow.com/questions/30800772/how-to-grab-video-frames-in-qt

      --Alles ist gut.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved