{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7572","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7572/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7572/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7572/events","html_url":"https://github.com/home-assistant/home-assistant/issues/7572","id":228444477,"number":7572,"title":"ffmpeg camera hangs HA after ~1 hour.","user":{"login":"tube0013","id":11084412,"avatar_url":"https://avatars0.githubusercontent.com/u/11084412?v=3","gravatar_id":"","url":"https://api.github.com/users/tube0013","html_url":"https://github.com/tube0013","followers_url":"https://api.github.com/users/tube0013/followers","following_url":"https://api.github.com/users/tube0013/following{/other_user}","gists_url":"https://api.github.com/users/tube0013/gists{/gist_id}","starred_url":"https://api.github.com/users/tube0013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tube0013/subscriptions","organizations_url":"https://api.github.com/users/tube0013/orgs","repos_url":"https://api.github.com/users/tube0013/repos","events_url":"https://api.github.com/users/tube0013/events{/privacy}","received_events_url":"https://api.github.com/users/tube0013/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-05-13T02:56:51Z","updated_at":"2017-05-19T13:22:02Z","closed_at":null,"body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`):0.44.2 (Docker)\r\n\r\n\r\n**Python release (`python3 --version`):3.5.3\r\n\r\n\r\n**Component/platform:Camera/ffmpeg\r\n\r\n\r\n**Description of problem:  I have a Yi Home Camera with the hacked firmware to serve a rtsp stream.  It runs fine, then about an hour after Home-Assistant starts, it hangs.  debug logging shows the ffmpeg commend to pull an image I think as the last thing:\r\n\r\n`2017-05-12 22:05:58 DEBUG (MainThread) [haffmpeg.core] Start FFmpeg with ['ffmpeg', '-rtsp_transport', 'tcp', '-i', 'rtsp://192.168.2.200:554/ch0_0.h264', '-an', '-frames:v', '1', '-c:v', 'mjpeg', '-f', 'image2pipe', '-']`\r\n\r\nAfter this I have to restart HA, and then if this component remains in my config, it will hang HA agian in an hour or so.\r\n\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```yaml\r\ncamera Yi:\r\n  platform: ffmpeg\r\n  name: Yi Cam 1\r\n  input: -rtsp_transport tcp -i rtsp://192.168.2.200:554/ch0_0.h264\r\n```\r\n\r\n1.  Add ffmpeg cam\r\n2. leave HA open in browser with Camera view up (not live stream)\r\n3. watch log in debug, and HA eventually just stops.\r\n\r\n**Traceback (if applicable):**\r\n```bash\r\n\r\n```\r\n\r\n**Additional info:**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/302701194","html_url":"https://github.com/home-assistant/home-assistant/issues/7572#issuecomment-302701194","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7572","id":302701194,"user":{"login":"pvizeli","id":15338540,"avatar_url":"https://avatars0.githubusercontent.com/u/15338540?v=3","gravatar_id":"","url":"https://api.github.com/users/pvizeli","html_url":"https://github.com/pvizeli","followers_url":"https://api.github.com/users/pvizeli/followers","following_url":"https://api.github.com/users/pvizeli/following{/other_user}","gists_url":"https://api.github.com/users/pvizeli/gists{/gist_id}","starred_url":"https://api.github.com/users/pvizeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvizeli/subscriptions","organizations_url":"https://api.github.com/users/pvizeli/orgs","repos_url":"https://api.github.com/users/pvizeli/repos","events_url":"https://api.github.com/users/pvizeli/events{/privacy}","received_events_url":"https://api.github.com/users/pvizeli/received_events","type":"User","site_admin":false},"created_at":"2017-05-19T13:22:02Z","updated_at":"2017-05-19T13:22:02Z","body":"You say hass hangs only if the UI will be open in this time?"}}
{"actor":{"display_login":"pvizeli"}}