{"id":1830,"date":"2018-01-22T17:27:58","date_gmt":"2018-01-22T15:27:58","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=1830"},"modified":"2018-01-22T17:27:58","modified_gmt":"2018-01-22T15:27:58","slug":"nvidia-h-264-encoder-media-foundation-transforms-regdb_e_classnotreg","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/1830","title":{"rendered":"NVIDIA H.264 Encoder Media Foundation Transform&#8217;s REGDB_E_CLASSNOTREG"},"content":{"rendered":"<p>For already years Nvidia&#8217;s H.264 video encoder <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ms703138\">Media Foundation Transform<\/a> has been broken giving <code>REGDB_E_CLASSNOTREG<\/code> &#8220;<span class=\"st\">Class not registered<\/span>&#8221; failure in certain circumstances, like main display is not the one connected to Nvidia video adapter.<\/p>\n<p>As simple as this:<\/p>\n<pre>CoInitialize(NULL);\r\nMFStartup(MF_VERSION);\r\nclass __declspec(uuid(\"{60F44560-5A20-4857-BFEF-D29773CB8040}\")) CFoo; \/\/ NVIDIA H.264 Encoder MFT\r\nCComPtr&lt;IMFTransform&gt; pTransform;\r\nconst HRESULT nCoCreateInstanceResult = pTransform.CoCreateInstance(__uuidof(CFoo));\r\n\/\/ NOTE: nCoCreateInstanceResult is 0x80040154 REGDB_E_CLASSNOTREG\r\n<\/pre>\n<p>The COM server itself is, of course, present and registered properly via their nvEncMFTH264.dll, it&#8217;s just broken inside. Being called straightforwardly via <code>IClassFactory.CreateInstance<\/code> it gives 0x8000FFFF <code>E_UNEXPECTED<\/code> &#8220;Catastrophic Failure&#8221;, and so it also fails in Media Foundation API scenarios.<\/p>\n<p>This is absolutely not fun, Nvidia!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For already years Nvidia&#8217;s H.264 video encoder Media Foundation Transform has been broken giving REGDB_E_CLASSNOTREG &#8220;Class not registered&#8221; failure in certain circumstances, like main display is not the one connected to Nvidia video adapter. As simple as this: CoInitialize(NULL); MFStartup(MF_VERSION); class __declspec(uuid(&#8220;{60F44560-5A20-4857-BFEF-D29773CB8040}&#8221;)) CFoo; \/\/ NVIDIA H.264 Encoder MFT CComPtr&lt;IMFTransform&gt; pTransform; const HRESULT nCoCreateInstanceResult = pTransform.CoCreateInstance(__uuidof(CFoo));&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/1830\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[63,379,424,547,486,70],"class_list":["post-1830","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bug","tag-h-264","tag-media-foundation","tag-nvidia","tag-video","tag-winapi"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=1830"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1830\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=1830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=1830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=1830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}