{"id":330,"date":"2012-07-15T22:16:33","date_gmt":"2012-07-15T20:16:33","guid":{"rendered":"http:\/\/www.tapper-ware.net\/blog\/?p=330"},"modified":"2012-07-15T22:16:33","modified_gmt":"2012-07-15T20:16:33","slug":"streaming-videos-to-a-mk802-android-system-on-a-stick","status":"publish","type":"post","link":"https:\/\/www.tapper-ware.net\/blog\/streaming-videos-to-a-mk802-android-system-on-a-stick\/","title":{"rendered":"Streaming videos to a MK802 Android system-on-a-stick"},"content":{"rendered":"<p>I got my MK802 Friday and immediately tried to stream videos&#8230; first via SMB shares (works, but the little decoder chip usually isn&#8217;t able to keep up with my movies) and then via TravelDevel&#8217;s VLC Stream and Convert, which I&#8217;m using on my LG P920. Unfortunately VLC S&amp;C is not quiet up to the job of working on a landscape device and the developer has apparently dropped off the face of the earth. So I&#8217;ve decided to re-implement it via a tiny web-interface. It&#8217;s still very bare-bones, doesn&#8217;t work with newer VLC versions, doesn&#8217;t manage playlists and is missing any kind of configuration panel (you have to edit the source to change the settings), but it works (at 1024&#215;600@24, 2048kbps). If there&#8217;s any interest I&#8217;ll release it under GPL and set up a project, but for now you are not allowed to redistribute it; you can only install it on your own machines and only if you accept that I&#8217;m not responsible for anything that happens.<\/p>\n<p>Here&#8217;s how to get it working:<\/p>\n<ul>\n<li>This was only tested on VLC 1.1.0. You can get it <a href=\"http:\/\/download.videolan.org\/pub\/videolan\/vlc\/1.1.0\/win32\/\">here<\/a>. Install it.<\/li>\n<li>Open it and go to Tools\/Preferences and choose Show Settings\/All at the bottom left.<\/li>\n<li>Open Interface\/Main intefaces and enable &#8220;HTTP remote control interface&#8221;. Press Save.<\/li>\n<li>Close VLC.<\/li>\n<li>Open the directory where you installed VLC and open the http directory.<\/li>\n<li>Use your favorite text editor to open .hosts .<\/li>\n<li>If you&#8217;re using static IPs in your home network, which is highly recommended since it allows you to bookmark VLC&#8217;s location on your MK802 and will make your network a LOT more secure, add a new line and write down the IP of your MK802.<\/li>\n<li>Otherwise, uncomment 192.168.0.0\/16 (remove the &#8220;#&#8221;). Note that this is very insecure since it will mean that anybody on your network will be able to control VLC which can do a lot of damage to your system. NEVER do it on a public or unencrypted network (in fact, if you&#8217;re using an unencrypted network, now may be a good moment to finally enable it).<\/li>\n<li>Save .hosts<\/li>\n<li>Extract <a href=\"http:\/\/www.tapper-ware.net\/data\/devel\/web\/apps\/vlcstream\/vlc.zip\">this file<\/a> to your http directory.<\/li>\n<li>Open VLC.<\/li>\n<li>On your MK802, open the browser and point it to your PC&#8217;s IP (if you don&#8217;t know, press Win+R, enter cmd \/C &#8220;ipconfig &amp; pause&#8221; and look for IP-v4 address, which should be something like 192.168.2.64), prefixed with http:\/\/ and followed by :8080\/vlc.html# .<\/li>\n<li>In my case that&#8217;s http:\/\/192.168.2.222:8080\/vlc.html# (Yes, the # is important due to a bug in Android&#8217;s URL handler&#8230; for some reasons it will never display the hash code, which is what my script uses to keep track of the current directory, unless you enter the &#8220;#&#8221; manually first; otherwise you won&#8217;t be able to bookmark it). Open it and navigate to your desired root folder. Now you can bookmark it. Opening this bookmark will always return you to that folder.<\/li>\n<li>Click on the file you want to play or click Play All next to a folder to add it&#8217;s whole content to the playlist.<\/li>\n<li>Now, you might expect the video to play inside the webpage&#8230; sadly that&#8217;s not possible due to Android&#8217;s broken HTML5\/video implementation. In order to see (or return to) the video, you have to press the Video button at the top left.<\/li>\n<li>Note that the video will keep on playing on the server even if you leave the page, so don&#8217;t forget to press STOP if you value your CPU cycles.<\/li>\n<\/ul>\n<p>Hope this helps. Thanks to TravelDevel for posting his VLC commandlines, particularly the parts that speed up h264 encoding.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got my MK802 Friday and immediately tried to stream videos&#8230; first via SMB shares (works, but the little decoder chip usually isn&#8217;t able to keep up with my movies) and then via TravelDevel&#8217;s VLC Stream and Convert, which I&#8217;m using on my LG P920. Unfortunately VLC S&amp;C is not quiet up to the job &hellip; <a href=\"https:\/\/www.tapper-ware.net\/blog\/streaming-videos-to-a-mk802-android-system-on-a-stick\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Streaming videos to a MK802 Android system-on-a-stick<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/330"}],"collection":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":3,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}