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. offscreen rendering and gstreamer processing
Forum Updated to NodeBB v4.3 + New Features

offscreen rendering and gstreamer processing

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 429 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.
  • K Offline
    K Offline
    K nard
    wrote on 30 Oct 2022, 20:10 last edited by K nard
    #1

    Hello,

    I would like to render a qml file offscreen and forward the result to a GStreamer pipeline.
    First, I have succeeded to render the scene offscreen grab the image from the QOpenGLFramebufferObject with the toImage method and forward it to the pipeline with an appsrc none.
    Now I would like to use more hardware acceleration and I'd like to forward directly the opengl texture to the pipeline. I have modify the pipeline accordingly and now I don't have any error on log (none from Qt, none from GStreamer) but the output is a transparent image.

    My code is here and for now it's design to run only under EGL because the GStreamer setup is hard-coded to match the actual Qt back-end used on my machine.

    I can provide GStreamer logs if needed but they can be quite verbose.

    Did I missed anything regarding the Qt setup ? or did the problem seems to come from my pipeline and I should more try on GStreamer mailing list ?

    Regards,

    K 1 Reply Last reply 1 Nov 2022, 20:55
    0
    • K K nard
      30 Oct 2022, 20:10

      Hello,

      I would like to render a qml file offscreen and forward the result to a GStreamer pipeline.
      First, I have succeeded to render the scene offscreen grab the image from the QOpenGLFramebufferObject with the toImage method and forward it to the pipeline with an appsrc none.
      Now I would like to use more hardware acceleration and I'd like to forward directly the opengl texture to the pipeline. I have modify the pipeline accordingly and now I don't have any error on log (none from Qt, none from GStreamer) but the output is a transparent image.

      My code is here and for now it's design to run only under EGL because the GStreamer setup is hard-coded to match the actual Qt back-end used on my machine.

      I can provide GStreamer logs if needed but they can be quite verbose.

      Did I missed anything regarding the Qt setup ? or did the problem seems to come from my pipeline and I should more try on GStreamer mailing list ?

      Regards,

      K Offline
      K Offline
      K nard
      wrote on 1 Nov 2022, 20:55 last edited by
      #2

      I solved my issue. it was related to wrong initialization of opengl context in gstreamer.

      1 Reply Last reply
      0

      1/2

      30 Oct 2022, 20:10

      • Login

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