Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Intel Media SDK gstreamer plugin support for DMABuf

Patil__Pushpavati
962 Views
Hi, I am writing a gstreamer application which uses mfxdecode for decoding h264 frames. As per my understanding mfxdecode uses the memory of type MFXSurface and outputs buffers. However my requirement is to have DMBuf. I checked the gst-inspect output for mfx plugins, I see that these plugin do have support for DMABuf. However when I set the caps to receive the DMABuf, decode crashes (Seg fault). Query: Does the media SDK really have support for DMABufs. Is it tested for DMABuf? If yes, can you please share the sample pipeline for the same. Details :- SOC : Intel apollo lake Version : 1.3.3 Thank in Advance. Regards, - Pushpavati
0 Kudos
3 Replies
Mark_L_Intel1
Moderator
962 Views

Hi Pushpavati,

Which Gstreamer plugin are you using, is it this one in the GitHub?

https://github.com/intel/gstreamer-media-SDK

You can check this document for DMA buffer usage, you might need to add "io-mode=5":

https://github.com/intel/gstreamer-media-SDK/blob/master/README.USAGE

Mark 

0 Kudos
Patil__Pushpavati
962 Views
Hi Mark, Thank you for the reply. Below are the further details about the application :- I am using the code from path :https://github.com/intel/gstreamer-media-SDK/tree/v1.3.3 - Version 1.3.3 The pipeline executed in the application is :- udpsrc port=<1234> caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,payload=(int)96" ! rtph264depay ! h264parse ! mfxdecode ! filesink location=/tmp/filesink.dump Here I am using udpsrc, mfxdecode plugins. As per my understanding io-mode=5 property is for v4lsrc plugin. Also the frames are reaching till sink element. Only issue that I am facing is the output memory type from mfxdecode plugin. It is providing the buffer in MFXSurface type where as the requirement is for DMABuf. Please suggest method to get the buffers in DMABuf memory format. Thank you in Advance. Rgds, - Pushpavati
0 Kudos
Mark_L_Intel1
Moderator
962 Views

Hi Pushpavati,

Could you report this issue directly in the GitHub? this plugin is supported by different Intel team, it would be speed up the resolution if you can ask them directly.

The GStreamer is not part of the MediaSDK so it takes time for me to do the investigation.

Mark 

0 Kudos
Reply