{"id":1923,"date":"2019-03-24T12:05:15","date_gmt":"2019-03-24T10:05:15","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=1923"},"modified":"2019-03-24T12:05:15","modified_gmt":"2019-03-24T10:05:15","slug":"media-foundation-on-raspberry-pi-3-model-b","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/1923","title":{"rendered":"Media Foundation on Raspberry Pi 3 Model B+"},"content":{"rendered":"\n<p>The interesting part with live <a href=\"https:\/\/www.webmproject.org\/\">WebM<\/a> Media Foundation media source I mentioned in the previous post is that the whole thing works great on&#8230; Raspberry Pi 3 Model B+ running Windows 10 IoT Core (<a href=\"https:\/\/www.microsoft.com\/en-us\/software-download\/windowsiot\">RaspberryPi 3B+ Technical Preview Build 17661<\/a>).<\/p>\n\n\n\n<p>Windows 10 IoT has quite the same Media Foundation infrastructure as in other Universal Windows Platform environments (Desktop, Xbox, HoloLens) including the core API, primitives, support in XAML <code>MediaElement<\/code> (<code>MediaPlayerElement<\/code>). There is no DirectX support on Raspberry Pi 3 Model B+ and video delivery fails, however this is a sort of known\/expected problem with the Technical Preview build. Audio playback is okay.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"458\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2019\/03\/DSCF4202a-800x458.jpg\" alt=\"\" class=\"wp-image-1924\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2019\/03\/DSCF4202a-800x458.jpg 800w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2019\/03\/DSCF4202a-320x183.jpg 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2019\/03\/DSCF4202a-768x440.jpg 768w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2019\/03\/DSCF4202a-600x343.jpg 600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>The picture above is taken on C# UWP application (that&#8217;s ARM platform) running a <code>MediaPlayerElement<\/code> control taking live audio signal from network using a <a href=\"https:\/\/docs.microsoft.com\/en-us\/uwp\/api\/windows.networking.sockets.messagewebsocket\"><code>Windows.Networking.Sockets.MessageWebSocket<\/code><\/a> connection.<\/p>\n\n\n\n<p>A custom (the platform does not have a capable primitive out of the box) WebM live media source forwards the signal to media element for low latency audio playback. The codec is <a href=\"https:\/\/opus-codec.org\/\">Opus<\/a> and, yes, stock Media Foundation audio decoder MFT decodes the signal just fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The interesting part with live WebM Media Foundation media source I mentioned in the previous post is that the whole thing works great on&#8230; Raspberry Pi 3 Model B+ running Windows 10 IoT Core (RaspberryPi 3B+ Technical Preview Build 17661). Windows 10 IoT has quite the same Media Foundation infrastructure as in other Universal Windows&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/1923\">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":[485,567,424,568,566],"class_list":["post-1923","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-audio","tag-iot","tag-media-foundation","tag-opus","tag-webm"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1923","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=1923"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1923\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}