mfvideosrc errors in make element

Marcos Ruiz Quirós mruiz at flyingscreens.tv
Wed Nov 4 09:03:14 UTC 2020


Hi,

I'm trying to use mfvideosrc on my QT app but when I use "GstElement * source = gst_element_factory_make("mfvideosrc", "source");" to create the element I receive the following errors

2020-11-04 08:34:17.966     50A4 [OutputProtectionManager]   Error: ..\..\..\..\..\runtime\src\mft\mft-framework\MFTMerits.cpp(562):StartInitializationDX11() - D3D11CreateDevice failed with HRESULT(0x887A0002)
2020-11-04 08:34:18.926     50A4 [OutputProtectionManager]   Error: ..\..\..\..\..\runtime\src\mft\mft-framework\MFTMerits.cpp(327):StartInitializationDXVA() - VideoDecoder Execute failed with HRESULT(0x80004005)

Looking at the Microsoft documentation the errors meaning are

  1.  DXGI_ERROR_NOT_FOUND 0x887A0002
When calling IDXGIObject::GetPrivateData, the GUID passed in is not recognized as one previously passed to IDXGIObject::SetPrivateData or IDXGIObject::SetPrivateDataInterface. When calling IDXGIFactory::EnumAdapters or IDXGIAdapter::EnumOutputs, the enumerated ordinal is out of range.


  1.  E_FAIL (0x80004005)

Attempted to create a device with the debug layer enabled and the layer is not installed.

Pipeline is then linked with no errors but my appsink callbacks are never called.

I've been using this same app with ksvideosrc with no problem

I checked this plugin works with no errors from command line with the following command:

gst-launch-1.0.exe -v mfvideosrc ! queue ! autovideosink

Any idea what can be the reason of those errors?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201104/bb9ec435/attachment-0001.htm>


More information about the gstreamer-devel mailing list