Opengl FBO to NVEncoder

Hi All,

i have a OpenGL Application that renders to a FBO(3840x2160 25fps GL_RGBA8), how can i get the Video Data to the NvEncoder without glReadPixel?

When i look a the Jetson AI Pipeline https://devblogs.nvidia.com/parallelforall/wp-content/uploads/2017/03/Jetson_AI_pipeline-1-768x239.png it looks very easy and possible.

Thanks!

Hi andik,
Please refer to nvgstcapture-1.0 in source package
https://developer.nvidia.com/embedded/dlc/l4t-sources-24-2-1

For a quick try you can run ‘nvgstcapture-1.0 --camsrc=3’ with onboard camera. And you need to implement your stream producer to replace ‘libnveglstreamproducer.so’

Hello DaneLLL,

thanks for your Answer! So i need to work with EGLStream? I think the “10_camera_recording” example in the tegra_multimedia_api directory is doing the same?

How can i get from FBO to EGLStream? Do you know a EGLStreams OpenGL Interop Example?

Hi andik,
I think the “10_camera_recording” example in the tegra_multimedia_api directory is doing the same?
No, it is a sample of Argus -> video encoders.

How can i get from FBO to EGLStream? Do you know a EGLStreams OpenGL Interop Example?
Please refer to the CUDA sample 3_Imaging/EGLStreams_CUDA_Interop