{"id":1544,"date":"2015-06-07T18:21:06","date_gmt":"2015-06-07T16:21:06","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=1544"},"modified":"2015-06-07T18:21:06","modified_gmt":"2015-06-07T16:21:06","slug":"imediaobjectdiscontinuity-while-windows-media-video-9-encoder-has-data-to-process","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/1544","title":{"rendered":"IMediaObject::Discontinuity while Windows Media Video 9 Encoder has data to process"},"content":{"rendered":"<div>\n<p>This is presumably a bug in<span class=\"Apple-converted-space\">\u00c2\u00a0<\/span><a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ff819505\" target=\"_blank\">Windows Media Video 9 Encoder<\/a><span class=\"Apple-converted-space\">\u00c2\u00a0<\/span>in versions up to Windows 7 included (fixed in Windows 8.1 at the very least &#8211; wmvencod.dll 6.3.9600.17415).<\/p>\n<p>A<span class=\"Apple-converted-space\">\u00c2\u00a0<\/span><a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/dd406944\" target=\"_blank\"><code>IMediaObject::Discontinuity<\/code><\/a><span class=\"Apple-converted-space\">\u00c2\u00a0<\/span>call destroys input the DMO it already holds: it reports success, and handles discontinuity correctly. It even drains output as it should, but if in the same time it already has input to process &#8211; this input is gone and the typical outcome is that a frame (or possibly more?) in the end of the stream is trimmed away.<\/p>\n<p>The call itself is legal and reports<span class=\"Apple-converted-space\">\u00c2\u00a0<\/span><code>S_OK<\/code>. The method should have returned<span class=\"Apple-converted-space\">\u00c2\u00a0<\/span><code>DMO_E_NOTACCEPTING<\/code><span class=\"Apple-converted-space\">\u00c2\u00a0<\/span>if it is too early to report discontinuity, and the DMO does not do it.<\/p>\n<\/div>\n<p><span class=\"Apple-style-span\">Good news it&#8217;s fixed in its most recent version and it is not a cold case.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is presumably a bug in\u00c2\u00a0Windows Media Video 9 Encoder\u00c2\u00a0in versions up to Windows 7 included (fixed in Windows 8.1 at the very least &#8211; wmvencod.dll 6.3.9600.17415). A\u00c2\u00a0IMediaObject::Discontinuity\u00c2\u00a0call destroys input the DMO it already holds: it reports success, and handles discontinuity correctly. It even drains output as it should, but if in the same time&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/1544\">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":[83,482,424,486,248,483,468],"class_list":["post-1544","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-dmo","tag-imediaobject","tag-media-foundation","tag-video","tag-windows-media","tag-wm","tag-wmv3"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1544","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=1544"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1544\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=1544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=1544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=1544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}