{"action":"created","issue":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/1037","labels_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1037/labels{/name}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1037/comments","events_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1037/events","html_url":"https://github.com/foosel/OctoPrint/issues/1037","id":104035292,"number":1037,"title":"Timelapse start cleans tmp directory before avconv is finished","user":{"login":"JoseAlcerreca","id":609125,"avatar_url":"https://avatars.githubusercontent.com/u/609125?v=3","gravatar_id":"","url":"https://api.github.com/users/JoseAlcerreca","html_url":"https://github.com/JoseAlcerreca","followers_url":"https://api.github.com/users/JoseAlcerreca/followers","following_url":"https://api.github.com/users/JoseAlcerreca/following{/other_user}","gists_url":"https://api.github.com/users/JoseAlcerreca/gists{/gist_id}","starred_url":"https://api.github.com/users/JoseAlcerreca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoseAlcerreca/subscriptions","organizations_url":"https://api.github.com/users/JoseAlcerreca/orgs","repos_url":"https://api.github.com/users/JoseAlcerreca/repos","events_url":"https://api.github.com/users/JoseAlcerreca/events{/privacy}","received_events_url":"https://api.github.com/users/JoseAlcerreca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-31T11:29:20Z","updated_at":"2015-08-31T11:30:10Z","closed_at":null,"body":"The tmp directory is cleared when a new timelapse starts:\r\n\r\n```\r\ndef startTimelapse(self, gcodeFile):\r\n\t\tself._logger.debug(\"Starting timelapse for %s\" % gcodeFile)\r\n\t\tself.cleanCaptureDir()\r\n...\r\n```\r\n\r\nbut it's not checking if the previous timelapse is already generated. This is a problem if the cpu is slow (RPi) and you start a new print immediately after finishing the previous one. I've lost hours of video.\r\n\r\nMy suggestion is to use `tmp/{filename}/{n}.jpg` instead of `tmp/{n}.jpg` or something similar and maybe implementing some kind of processing queue. "},"comment":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/comments/136340374","html_url":"https://github.com/foosel/OctoPrint/issues/1037#issuecomment-136340374","issue_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1037","id":136340374,"user":{"login":"GitIssueBot","id":8257878,"avatar_url":"https://avatars.githubusercontent.com/u/8257878?v=3","gravatar_id":"","url":"https://api.github.com/users/GitIssueBot","html_url":"https://github.com/GitIssueBot","followers_url":"https://api.github.com/users/GitIssueBot/followers","following_url":"https://api.github.com/users/GitIssueBot/following{/other_user}","gists_url":"https://api.github.com/users/GitIssueBot/gists{/gist_id}","starred_url":"https://api.github.com/users/GitIssueBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitIssueBot/subscriptions","organizations_url":"https://api.github.com/users/GitIssueBot/orgs","repos_url":"https://api.github.com/users/GitIssueBot/repos","events_url":"https://api.github.com/users/GitIssueBot/events{/privacy}","received_events_url":"https://api.github.com/users/GitIssueBot/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T11:30:10Z","updated_at":"2015-08-31T11:30:10Z","body":"Hi @JoseAlcerreca,\n\nIt looks like there is some information missing from your ticket that will be needed in order to process it properly. Please take a look at the [Contribution Guidelines](https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md) and the page [How to file a bug report](https://github.com/foosel/OctoPrint/wiki/How-to-file-a-bug-report) on the project wiki, which will tell you **exactly** what your ticket has to contain in order to be processable.\n\nIf you did not intend to report a bug, please take special note of the title format to use as described in the [Contribution Guidelines](https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md).\n\nI'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two weeks (until 2015-09-14 11:30) I'll close this ticket so it doesn't clutter the bug tracker. This is nothing personal, so please just be considerate and help the maintainers solve this problem quickly by following the guidelines linked above. Thank you!\n\nBest regards,\n~ Your friendly GitIssueBot\n\nPS: I'm just an automated script, not a human being, so don't expect any replies from me :) Your ticket is read by humans too, I'm just not one of them.\n"}}