Is it possible to send OpenGL framebuffer direct to nvh264enc?
Michael Gruner
michael.gruner at ridgerun.com
Wed May 20 06:43:35 UTC 2020
I believe NVIDIA elements may consume EGLStreams directly, avoiding the copy. You’ll have to add the support yourself though. In some platforms you’ll even need to deal with memory layouts, aka Block Linear vs Pitch Linear.
> On May 19, 2020, at 21:24, F32 <feng32 at 163.com> wrote:
>
>
> Hi,
>
> Suppose we have a video game based on OpenGL and we have its source code. In order to capture game video, we can call glReadPixels() before swapping buffer, and then send the pixels to gstreamer's nvenc plugin. In this way, the frame is first sent from GPU memory to system memory, and then to GPU again, which seems to be unnecessary.
>
> Is it possible to send the frame buffer direct to nvenc, so that there's no extra glupload / gldownload?
>
> Regards
> Windy
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200520/36dc7f40/attachment.htm>
More information about the gstreamer-devel
mailing list