{"id":1573,"date":"2015-12-10T00:08:04","date_gmt":"2015-12-09T22:08:04","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=1573"},"modified":"2015-12-10T00:16:43","modified_gmt":"2015-12-09T22:16:43","slug":"not-so-good-h-264-media-type","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/1573","title":{"rendered":"Not so good H.264 media type"},"content":{"rendered":"<p>MainConcept&#8217;s MP4 Demultiplexer in Annex B mode looks, well&#8230; slightly excessively broken.<\/p>\n<p><a href=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd7.png\" rel=\"attachment wp-att-1574\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1574\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd7-641x600.png\" alt=\"MainComcept MP4 Demultiplexer Properties\" width=\"625\" height=\"585\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd7-641x600.png 641w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd7-320x299.png 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd7-768x719.png 768w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd7-624x584.png 624w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd7.png 889w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<ol>\n<li>H.264 media type with start codes (<code>H264<\/code> FourCC, but here they use legacy subtype informally known as <code>MEDIASUBTYPE_H264_bis<\/code>) <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/dd757808\">do not require<\/a> parameter sets as a part of <code>MPEGVIDEOINFO2<\/code> structure. If they however decided to provide the NAL units, they have to be RLE encoded, without start codes. MainConcept does it Aneex B way &#8211; not good.<\/li>\n<li>Zero <code>BITMAPINFOHEADER::biSize<\/code>?<\/li>\n<li><code>BITMAPINFOHEADER::biBitCount<\/code> of 24 is hardly correct, but it is not fatal<\/li>\n<li>Additionally, they do memory allocator of default capacity of 64K followed by streaming larger samples&#8230;<\/li>\n<\/ol>\n<p>Oh.<\/p>\n<p>Needless to mention that this sort of connection simply has no chances to succeed:<\/p>\n<p><a href=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd9.png\" rel=\"attachment wp-att-1575\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1575\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd9.png\" alt=\"Trying to Connect MainConcept MP4 Demultiplexer and Microsoft H.264 Decoder\" width=\"699\" height=\"306\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd9.png 699w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd9-320x140.png 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2015\/12\/Clipbrd9-624x273.png 624w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MainConcept&#8217;s MP4 Demultiplexer in Annex B mode looks, well&#8230; slightly excessively broken. H.264 media type with start codes (H264 FourCC, but here they use legacy subtype informally known as MEDIASUBTYPE_H264_bis) do not require parameter sets as a part of MPEGVIDEOINFO2 structure. If they however decided to provide the NAL units, they have to be RLE&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/1573\">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":[78,379,503,486],"class_list":["post-1573","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-directshow","tag-h-264","tag-mainconcept","tag-video"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1573","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=1573"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1573\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=1573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=1573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=1573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}