{"id":5738,"date":"2018-06-11T01:48:26","date_gmt":"2018-06-11T01:48:26","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5738"},"modified":"2020-03-30T02:30:52","modified_gmt":"2020-03-30T02:30:52","slug":"stream-video-aws-deeplens-camera-http","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/stream-video-aws-deeplens-camera-http\/","title":{"rendered":"Stream video from AWS DeepLens camera over HTTP"},"content":{"rendered":"<p>While the <a href=\"https:\/\/amzn.to\/2LCvjgC\">AWS DeepLens camera<\/a> is designed to work with AWS, you may want to just stream video over HTTP so you can hack at it with code.<\/p>\n<p>The camera comes with a firewall (UFW) pre-installed, so you need to disable a port for video:<\/p>\n<pre>sudo ufw allow 8090\n<\/pre>\n<p>Then edit the ffserver configuration file to expose the streams from the camera:<\/p>\n<pre>sudo vi \/etc\/ffserver.conf\n<\/pre>\n<p>Add the following:<\/p>\n<pre>\n<stream feed.mjpeg=\"\">\n  File \"\/opt\/awscam\/out\/ch2_out.mjpeg\"\n  NoAudio\n<\/stream>\n\n<stream feed.h264=\"\">\n  File \"\/opt\/awscam\/out\/ch1_out.h264\"\n  NoAudio\n<\/stream>\n<\/pre>\n<p>Then run ffserver.<\/p>\n<p>Note that these streams aren&#8217;t compatible with HTML5 video.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Streaming video from the 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":[4,6,8],"tags":[71,167,569],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5738"}],"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=5738"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5738\/revisions"}],"predecessor-version":[{"id":6432,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5738\/revisions\/6432"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}