offscreen rendering and gstreamer processing
-
wrote on 30 Oct 2022, 20:10 last edited by 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,
-
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,
wrote on 1 Nov 2022, 20:55 last edited byI solved my issue. it was related to wrong initialization of opengl context in gstreamer.
1/2