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. Accessing frame from QmediaPlayer video
Qt 6.11 is out! See what's new in the release blog

Accessing frame from QmediaPlayer video

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.4k 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.
  • giuBRITG Offline
    giuBRITG Offline
    giuBRIT
    wrote on last edited by
    #1

    Hello,

    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

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      asanka424
      wrote on last edited by
      #2

      Hi,
      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.

      Thanks

      giuBRITG 1 Reply Last reply
      0
      • A asanka424

        Hi,
        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.

        Thanks

        giuBRITG Offline
        giuBRITG Offline
        giuBRIT
        wrote on last edited by
        #3

        @asanka424 Thanksss

        1 Reply Last reply
        0

        • Login

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