Efficiently displaying video in Qt application

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Efficiently displaying video in Qt application

Tyler Compton
Hi everyone,

I have a pipeline that uses VA-API to hardware decode some video streams so they can be displayed on a Qt application. Right now, I'm doing the simple thing and converting the results from a DMABuf/VASurface to a regular GStreamer buffer, passing them to an appsink, and displaying the frames manually. This is a fairly inefficient process, however.

I'm wondering if it's possible to display a DMABuf/VASurface directly on-screen within my Qt application. My hunch is that I could do this by creating an OpenGL context in Qt and routing the results there, but I'm having trouble putting all the pieces together. Would someone mind pointing me in the right direction?

Thanks,
Tyler

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Efficiently displaying video in Qt application

Carlos Rafael Giani-2

Take a look at qmlglsink. It does exactly what you want to do.

On 19.10.20 19:53, Tyler Compton wrote:
Hi everyone,

I have a pipeline that uses VA-API to hardware decode some video streams so they can be displayed on a Qt application. Right now, I'm doing the simple thing and converting the results from a DMABuf/VASurface to a regular GStreamer buffer, passing them to an appsink, and displaying the frames manually. This is a fairly inefficient process, however.

I'm wondering if it's possible to display a DMABuf/VASurface directly on-screen within my Qt application. My hunch is that I could do this by creating an OpenGL context in Qt and routing the results there, but I'm having trouble putting all the pieces together. Would someone mind pointing me in the right direction?

Thanks,
Tyler

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel