Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt on Android: Possibilities to grab frames from a video stream
Forum Updated to NodeBB v4.3 + New Features

Qt on Android: Possibilities to grab frames from a video stream

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.0k Views 1 Watching
  • 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
    and.fo
    wrote on last edited by
    #1

    I'm working on a kind of AR application, in which I add additional information to a video stream.

    The additional information is realized as OpenGL overlay on top of the video stream. As the video stream needs to be part of the OpenGL visualization I grabbed the frames from the video streams using a QAbstractVideoSurface and rendered them to the textures used in the OpenGL scene.

    The video stream is a mp4 file played by the QMediaPlayer in C++. The frame grabbing is realized in C++. OpenGL is embedded in the QML Scenegraph using a texture node.

    This approach works on windows, but not on Android.

    According to this page Multimedia Widgets are not supported in Qt on Android:
    https://qt-project.org/wiki/Qt_for_Android_known_issues

    "The Qt Multimedia Widgets module is not supported on Android, which means video display is only available using the VideoOutput and Video QML items."

    I couldn't find a possibility to grab frames from the video using the QML types as stated in the quotation above.

    Has anybody an idea how to grab the frames from the video using QML types on Android?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

      try "grabwindow":http://doc-snapshot.qt-project.org/qdoc/qquickwindow.html#grabWindow

      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