Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Handling of QVideoFrame with GLTextureHandle handle type
Qt 6.12 LTS is out! See what's new in the release blog

Handling of QVideoFrame with GLTextureHandle handle type

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 829 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.
  • A Offline
    A Offline
    Antony.K
    wrote on last edited by Antony.K
    #1

    MacOS with Qt 5.9.1.
    I'm using QMediaPlayer to play local video files. My implementation of QAbstractVideoSurface is set as QMediaPlayer VideoOutput and "present" slot fires only once with (QVideoFrame::handleType() == QAbstractVideoBuffer::GLTextureHandle). How can I change handle type to have access to fame buffer and operate with it's each byte or how can I get openGL texture data to work with it? I found on forum this link, but I still can't get data from GPU memory. Maybe I just need to bind correct context to work with, because this call returns 0:

    QOpenGLContext::currentContext()
    

    On windows the same implementation returns "NoHandle" handle type and fires "present" slot for every new frame.
    Application instantiates QGuiApplication (QMediaPlayer crashed on "void setVideoOutput(QAbstractVideoSurface *surface)" call with QCoreApplication) and works with glfw OpenGL context, but there is no any Qt windows.

    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
    • Unsolved