Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt 5.4: Qml Video player with custom frame source
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4: Qml Video player with custom frame source

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.2k 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.
  • L Offline
    L Offline
    lynic
    wrote on last edited by
    #1

    Hi,

    I want to draw video frames from a custom decoder (ffmpeg but this should not matter) in QML. My decoding framework provides RGB data. In Qt 4.8 I drew this data using a QOpenGLWidget with a custom shader.

    Now I want to switch to Qt 5.4 with Qml. The Qml should work on all platforms (Desktop, iOS, Android, WP, etc.).
    What is the best way to display realtime RGB data in Qml?

    Regards,

    1 Reply Last reply
    1
    • D Offline
      D Offline
      dasRicardo
      wrote on last edited by
      #2

      Hmm, i would say you can use Scenegraph for this. It's fast and i think you can use a lot of your source like shader and so one. Take a look at "this":http://doc.qt.io/qt-5/qsgsimplematerial.html.

      **Sorry for my english :)

      PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lynic
        wrote on last edited by
        #3

        From my understanding all Qml is rendered using OpenGL (or translated to DirectX on WP/WinRT). Isn't there an easy mean to send the image data to Qml (which then renders it as a texture within the rendering pipeline)?
        I already tried to render images using an imagesource Qml element but this is very inefficient.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dasRicardo
          wrote on last edited by
          #4

          Take a look at "this":http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html. Scenegraph runs in a separate thread if i understand it correct.

          **Sorry for my english :)

          PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

          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