{"action":"created","issue":{"url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/1","repository_url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node","labels_url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/1/comments","events_url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/1/events","html_url":"https://github.com/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/1","id":165411388,"number":1,"title":"Only getting half of the stream","user":{"login":"dejanpan","id":17376,"avatar_url":"https://avatars.githubusercontent.com/u/17376?v=3","gravatar_id":"","url":"https://api.github.com/users/dejanpan","html_url":"https://github.com/dejanpan","followers_url":"https://api.github.com/users/dejanpan/followers","following_url":"https://api.github.com/users/dejanpan/following{/other_user}","gists_url":"https://api.github.com/users/dejanpan/gists{/gist_id}","starred_url":"https://api.github.com/users/dejanpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejanpan/subscriptions","organizations_url":"https://api.github.com/users/dejanpan/orgs","repos_url":"https://api.github.com/users/dejanpan/repos","events_url":"https://api.github.com/users/dejanpan/events{/privacy}","received_events_url":"https://api.github.com/users/dejanpan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-13T20:16:50Z","updated_at":"2016-07-14T21:44:44Z","closed_at":null,"body":"Hi there!\r\nI forked your project as it looks like the best end-to-end solution for what I wonna do. Great work.\r\n\r\nHowever I am hitting the wall right now. I got PI camera and I only wanted to get the video streaming done first, so I mostly commented out everything else in https://github.com/dejanpan/Home-Monitoring-Raspberry-Pi-Node/blob/master/App-home-monitoring.js.\r\n\r\nThe problem that I am having is that in resolution 640x480, 75% quality I only get parts of the image:\r\n![screen shot 2016-07-13 at 22 09 02](https://cloud.githubusercontent.com/assets/17376/16818229/0647f620-4947-11e6-9ead-a8b5dc334046.png)\r\n\r\nIf I reduce the quality of the image I get more. It seems that the frames are coming from the stream in chunks here: https://github.com/dejanpan/Home-Monitoring-Raspberry-Pi-Node/blob/master/App-home-monitoring.js#L221 but I do not really know how to compose them together. E.g. when do I know 1 frame has been fully transferred to that callback?\r\n\r\nAny hints I would warmly appreciate.\r\n"},"comment":{"url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/comments/232801787","html_url":"https://github.com/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/1#issuecomment-232801787","issue_url":"https://api.github.com/repos/orosandrei/Home-Monitoring-Raspberry-Pi-Node/issues/1","id":232801787,"user":{"login":"dejanpan","id":17376,"avatar_url":"https://avatars.githubusercontent.com/u/17376?v=3","gravatar_id":"","url":"https://api.github.com/users/dejanpan","html_url":"https://github.com/dejanpan","followers_url":"https://api.github.com/users/dejanpan/followers","following_url":"https://api.github.com/users/dejanpan/following{/other_user}","gists_url":"https://api.github.com/users/dejanpan/gists{/gist_id}","starred_url":"https://api.github.com/users/dejanpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejanpan/subscriptions","organizations_url":"https://api.github.com/users/dejanpan/orgs","repos_url":"https://api.github.com/users/dejanpan/repos","events_url":"https://api.github.com/users/dejanpan/events{/privacy}","received_events_url":"https://api.github.com/users/dejanpan/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T21:44:44Z","updated_at":"2016-07-14T21:44:44Z","body":"I also updated my comment above. Now checked twice and memory stable at 5fps.\r\n\r\nFurther it seems that you need to parse a so called `boundary` when you parse mjpeg stream, see: http://en.code-bude.net/tag/how-does-mjpeg-work/. ` It’s the separator pattern which tells the consumer (browser, media player, etc) of the stream where the image data blocks begin and end.`\r\n\r\nThis here seems to be a pretty good reference implementation https://github.com/legege/node-mjpeg-proxy/blob/master/mjpeg-proxy.js.\r\n\r\nThey also send it on the server side: https://github.com/jacksonliam/mjpg-streamer/blob/4d070dfb170652ef73018bf916ce073489f64fc3/mjpg-streamer-experimental/plugins/output_http/httpd.c#L531.\r\n\r\nAs said above I will have time to look into it from next Wed on (travelling home where internet is spotty)."}}
{"actor":{"display_login":"dejanpan"}}