How to get dma_buf fd from nvvideosink ?

Hi,

I used nvvideosink → EGLImage and If I can obtain dam_buf fd directly ?

Thanks.

Hi,

I don’t want to used NvBufferCreate() and then use NvEGLImageFromFd(), and copy data to another EGLImage, because it should do an device to device data copy. I just want to get fd from nvvideosink directly.

Thanks.

Hi ClancyLain,
With nvvideosink, you cannot get dmabuffer fd.

You can run your current implementation. If you are interested in NvBuffer APIs, please check your another post:
[url]https://devtalk.nvidia.com/default/topic/1037450/jetson-tx2/use-gstreamer-or-tegra_multimedia_api-to-decode-video-would-be-more-efficient-and-increase-throughpu-/post/5270860/#5270860[/url]