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
Qt 6.11 is out! See what's new in the release blog

offscreen rendering and gstreamer processing

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 687 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 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
    0
    • K K nard

      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 last edited by
      #2

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

      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