{"id":5692,"date":"2018-05-14T11:47:03","date_gmt":"2018-05-14T11:47:03","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5692"},"modified":"2020-03-30T02:31:22","modified_gmt":"2020-03-30T02:31:22","slug":"stream-aws-deeplens-video-windows-pc-wireless","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/stream-aws-deeplens-video-windows-pc-wireless\/","title":{"rendered":"Stream AWS DeepLens video to a Windows PC over wireless"},"content":{"rendered":"<p>You can stream video from an <a href=\"https:\/\/amzn.to\/2rCQXcR\">AWS DeepLens camera<\/a> over wi-fi. To do this on Windows, first, get mplayer from here:<br \/>\n<a href=\"https:\/\/sourceforge.net\/projects\/mplayerwin\/?source=typ_redirect\">https:\/\/sourceforge.net\/projects\/mplayerwin\/?source=typ_redirect<\/a><\/p>\n<p>Then, determine the IP address of your DeepLens camera, enable SSH, and ssh in once once to avoid this:<\/p>\n<pre>The authenticity of host '192.168.1.187 (192.168.1.187)' can't be established.\nECDSA key fingerprint is SHA256:sbKJiQl8IjGJ+X\/hWekzBK8CxR\/gCHR6qJfsq6JYHZY.\nAre you sure you want to continue connecting (yes\/no)? yes\n<\/pre>\n<p>You can then run the following commands to stream the video &#8211; the first command is the video before the ML algorithm hits it, and the second is after. If you don&#8217;t have SSH keys set up, you will be prompted for a password. The password prompt is rendered in the midst of the mplayer output, which can be a bit confusing.<\/p>\n<p>To stop this, copy a key:<\/p>\n<pre lang=\"bash\">ssh-copy-id -i ~\/.ssh\/id_rsa aws_cam@192.168.1.187\n<\/pre>\n<p>Once you authenticate, it will take a few seconds to catch up, and spits out a lot of errors while this happens. For me, the video is also ~5 seconds behind.<\/p>\n<pre>ssh aws_cam@192.168.1.187 cat \/opt\/awscam\/out\/ch1_out.h264 | \/d\/software\/mplayer\/mplayer.exe -xy 800 \u2013demuxer lavf -cache 8092 - \n\nssh aws_cam@$ip_address cat \/tmp\/\\*results.mjpeg |\n  \/d\/software\/mplayer\/mplayer.exe \u2013demuxer lavf -cache 8092 -lavfdopts format=mjpeg:probesize=32 -\n<\/pre>\n<p><a href=\"https:\/\/alestic.com\/2017\/12\/aws-deeplens-video-stream-ssh\/\">Instructions adapted from here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to stream video from an AWS DeepLens camera<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,12],"tags":[71,167,352],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5692"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5692"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5692\/revisions"}],"predecessor-version":[{"id":6435,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5692\/revisions\/6435"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}