intel / gstreamer-media-SDK

GNU Lesser General Public License v2.1
90 stars 53 forks source link

VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT error in encoder #172

Closed shakeeb80 closed 5 years ago

shakeeb80 commented 5 years ago

I have a weird problem that the mfxh264enc works fine if I statically link all my gstreamer elements but returns VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT in gstmfxtask.c gst_mfx_task_frame_alloc function while trying to allocate surfaces.

I have compiled all my gstreamer plugins including gstreamer-mediasdk using GST_PLUGIN_BUILD_STATIC flag which are linked and initialized in a library (we call it gstreamer) when it is loaded. This library is then used in my main code to create my pipeline.

When the this gstreamer library is built as a shared libaray and linked to the main code, mfxh264enc does not work and returns an error mentioned above. However everything works fine if library is built as static.

The only relevant issue I found was here https://software.intel.com/en-us/forums/intel-media-sdk/topic/537927

Any ideas ?