{"action":"created","comment":{"url":"https://api.github.com/repos/videalize/video-processor/pulls/comments/91700265","pull_request_review_id":12210736,"id":91700265,"diff_hunk":"@@ -38,10 +40,17 @@ def process_video(self, output_file):\n         parts = self.extract_necessary_times()\n         clips = []\n         for part in parts:\n-            clips.append(self.video.subclip(part['start'] / 1000.0, part['end'] / 1000.0))\n+            clips.append(self.video.subclip(part['start'], part['end']))\n         self.output_video = mpy.concatenate_videoclips(clips)\n         self.output_video.write_videofile(output_file)\n \n     def extract_necessary_times(self):\n-        return [{'start': 11000, 'end': 18000},\n-                {'start': 34000, 'end': 49000}]\n+        audio_path = self.video_path.replace('mp4', 'wav')\n+        # ff = FFmpeg(\n+        #     inputs={self.video_path: None},\n+        #     outputs={self.video_path.replace('mp4', 'wav'): None}\n+        # )\n+        # ff.run()\n+\n+        sound_processor = SoundProcessor(audio_path, 8820, 'MEDIAN')","path":"videalize/processor/processor.py","position":30,"original_position":30,"commit_id":"9f7dcbe363efa9e92e05b9e4ccd95fc8daf5004a","original_commit_id":"9f7dcbe363efa9e92e05b9e4ccd95fc8daf5004a","user":{"login":"tuvistavie","id":1436271,"avatar_url":"https://avatars.githubusercontent.com/u/1436271?v=3","gravatar_id":"","url":"https://api.github.com/users/tuvistavie","html_url":"https://github.com/tuvistavie","followers_url":"https://api.github.com/users/tuvistavie/followers","following_url":"https://api.github.com/users/tuvistavie/following{/other_user}","gists_url":"https://api.github.com/users/tuvistavie/gists{/gist_id}","starred_url":"https://api.github.com/users/tuvistavie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuvistavie/subscriptions","organizations_url":"https://api.github.com/users/tuvistavie/orgs","repos_url":"https://api.github.com/users/tuvistavie/repos","events_url":"https://api.github.com/users/tuvistavie/events{/privacy}","received_events_url":"https://api.github.com/users/tuvistavie/received_events","type":"User","site_admin":false},"body":"@taniTk \r\nこの値固定でいいの？","created_at":"2016-12-09T11:22:20Z","updated_at":"2016-12-09T11:22:20Z","html_url":"https://github.com/videalize/video-processor/pull/26#discussion_r91700265","pull_request_url":"https://api.github.com/repos/videalize/video-processor/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/videalize/video-processor/pulls/comments/91700265"},"html":{"href":"https://github.com/videalize/video-processor/pull/26#discussion_r91700265"},"pull_request":{"href":"https://api.github.com/repos/videalize/video-processor/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/videalize/video-processor/pulls/26","id":96217329,"html_url":"https://github.com/videalize/video-processor/pull/26","diff_url":"https://github.com/videalize/video-processor/pull/26.diff","patch_url":"https://github.com/videalize/video-processor/pull/26.patch","issue_url":"https://api.github.com/repos/videalize/video-processor/issues/26","number":26,"state":"closed","locked":false,"title":"音量周りの処理を追加","user":{"login":"taniTk","id":11326071,"avatar_url":"https://avatars.githubusercontent.com/u/11326071?v=3","gravatar_id":"","url":"https://api.github.com/users/taniTk","html_url":"https://github.com/taniTk","followers_url":"https://api.github.com/users/taniTk/followers","following_url":"https://api.github.com/users/taniTk/following{/other_user}","gists_url":"https://api.github.com/users/taniTk/gists{/gist_id}","starred_url":"https://api.github.com/users/taniTk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taniTk/subscriptions","organizations_url":"https://api.github.com/users/taniTk/orgs","repos_url":"https://api.github.com/users/taniTk/repos","events_url":"https://api.github.com/users/taniTk/events{/privacy}","received_events_url":"https://api.github.com/users/taniTk/received_events","type":"User","site_admin":false},"body":"音量周りの処理を追加しました．\r\n切り取り終始点をJSONで返すようにしてます．\r\n単位は1 / 44100秒です．","created_at":"2016-12-02T03:48:55Z","updated_at":"2016-12-09T11:22:20Z","closed_at":"2016-12-09T10:55:38Z","merged_at":"2016-12-09T10:55:38Z","merge_commit_sha":"e775525d810fdc3e9bd04f209737170bae3cca2e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/videalize/video-processor/pulls/26/commits","review_comments_url":"https://api.github.com/repos/videalize/video-processor/pulls/26/comments","review_comment_url":"https://api.github.com/repos/videalize/video-processor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/videalize/video-processor/issues/26/comments","statuses_url":"https://api.github.com/repos/videalize/video-processor/statuses/9f7dcbe363efa9e92e05b9e4ccd95fc8daf5004a","head":{"label":"videalize:sound_volume","ref":"sound_volume","sha":"9f7dcbe363efa9e92e05b9e4ccd95fc8daf5004a","user":{"login":"videalize","id":22706949,"avatar_url":"https://avatars.githubusercontent.com/u/22706949?v=3","gravatar_id":"","url":"https://api.github.com/users/videalize","html_url":"https://github.com/videalize","followers_url":"https://api.github.com/users/videalize/followers","following_url":"https://api.github.com/users/videalize/following{/other_user}","gists_url":"https://api.github.com/users/videalize/gists{/gist_id}","starred_url":"https://api.github.com/users/videalize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videalize/subscriptions","organizations_url":"https://api.github.com/users/videalize/orgs","repos_url":"https://api.github.com/users/videalize/repos","events_url":"https://api.github.com/users/videalize/events{/privacy}","received_events_url":"https://api.github.com/users/videalize/received_events","type":"Organization","site_admin":false},"repo":{"id":71348770,"name":"video-processor","full_name":"videalize/video-processor","owner":{"login":"videalize","id":22706949,"avatar_url":"https://avatars.githubusercontent.com/u/22706949?v=3","gravatar_id":"","url":"https://api.github.com/users/videalize","html_url":"https://github.com/videalize","followers_url":"https://api.github.com/users/videalize/followers","following_url":"https://api.github.com/users/videalize/following{/other_user}","gists_url":"https://api.github.com/users/videalize/gists{/gist_id}","starred_url":"https://api.github.com/users/videalize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videalize/subscriptions","organizations_url":"https://api.github.com/users/videalize/orgs","repos_url":"https://api.github.com/users/videalize/repos","events_url":"https://api.github.com/users/videalize/events{/privacy}","received_events_url":"https://api.github.com/users/videalize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/videalize/video-processor","description":null,"fork":false,"url":"https://api.github.com/repos/videalize/video-processor","forks_url":"https://api.github.com/repos/videalize/video-processor/forks","keys_url":"https://api.github.com/repos/videalize/video-processor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/videalize/video-processor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/videalize/video-processor/teams","hooks_url":"https://api.github.com/repos/videalize/video-processor/hooks","issue_events_url":"https://api.github.com/repos/videalize/video-processor/issues/events{/number}","events_url":"https://api.github.com/repos/videalize/video-processor/events","assignees_url":"https://api.github.com/repos/videalize/video-processor/assignees{/user}","branches_url":"https://api.github.com/repos/videalize/video-processor/branches{/branch}","tags_url":"https://api.github.com/repos/videalize/video-processor/tags","blobs_url":"https://api.github.com/repos/videalize/video-processor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/videalize/video-processor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/videalize/video-processor/git/refs{/sha}","trees_url":"https://api.github.com/repos/videalize/video-processor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/videalize/video-processor/statuses/{sha}","languages_url":"https://api.github.com/repos/videalize/video-processor/languages","stargazers_url":"https://api.github.com/repos/videalize/video-processor/stargazers","contributors_url":"https://api.github.com/repos/videalize/video-processor/contributors","subscribers_url":"https://api.github.com/repos/videalize/video-processor/subscribers","subscription_url":"https://api.github.com/repos/videalize/video-processor/subscription","commits_url":"https://api.github.com/repos/videalize/video-processor/commits{/sha}","git_commits_url":"https://api.github.com/repos/videalize/video-processor/git/commits{/sha}","comments_url":"https://api.github.com/repos/videalize/video-processor/comments{/number}","issue_comment_url":"https://api.github.com/repos/videalize/video-processor/issues/comments{/number}","contents_url":"https://api.github.com/repos/videalize/video-processor/contents/{+path}","compare_url":"https://api.github.com/repos/videalize/video-processor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/videalize/video-processor/merges","archive_url":"https://api.github.com/repos/videalize/video-processor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/videalize/video-processor/downloads","issues_url":"https://api.github.com/repos/videalize/video-processor/issues{/number}","pulls_url":"https://api.github.com/repos/videalize/video-processor/pulls{/number}","milestones_url":"https://api.github.com/repos/videalize/video-processor/milestones{/number}","notifications_url":"https://api.github.com/repos/videalize/video-processor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/videalize/video-processor/labels{/name}","releases_url":"https://api.github.com/repos/videalize/video-processor/releases{/id}","deployments_url":"https://api.github.com/repos/videalize/video-processor/deployments","created_at":"2016-10-19T11:07:29Z","updated_at":"2016-10-19T16:23:43Z","pushed_at":"2016-12-09T10:55:40Z","git_url":"git://github.com/videalize/video-processor.git","ssh_url":"git@github.com:videalize/video-processor.git","clone_url":"https://github.com/videalize/video-processor.git","svn_url":"https://github.com/videalize/video-processor","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"videalize:master","ref":"master","sha":"dbb0665fda26c9b5789274bdf9babdd95ff05ebc","user":{"login":"videalize","id":22706949,"avatar_url":"https://avatars.githubusercontent.com/u/22706949?v=3","gravatar_id":"","url":"https://api.github.com/users/videalize","html_url":"https://github.com/videalize","followers_url":"https://api.github.com/users/videalize/followers","following_url":"https://api.github.com/users/videalize/following{/other_user}","gists_url":"https://api.github.com/users/videalize/gists{/gist_id}","starred_url":"https://api.github.com/users/videalize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videalize/subscriptions","organizations_url":"https://api.github.com/users/videalize/orgs","repos_url":"https://api.github.com/users/videalize/repos","events_url":"https://api.github.com/users/videalize/events{/privacy}","received_events_url":"https://api.github.com/users/videalize/received_events","type":"Organization","site_admin":false},"repo":{"id":71348770,"name":"video-processor","full_name":"videalize/video-processor","owner":{"login":"videalize","id":22706949,"avatar_url":"https://avatars.githubusercontent.com/u/22706949?v=3","gravatar_id":"","url":"https://api.github.com/users/videalize","html_url":"https://github.com/videalize","followers_url":"https://api.github.com/users/videalize/followers","following_url":"https://api.github.com/users/videalize/following{/other_user}","gists_url":"https://api.github.com/users/videalize/gists{/gist_id}","starred_url":"https://api.github.com/users/videalize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videalize/subscriptions","organizations_url":"https://api.github.com/users/videalize/orgs","repos_url":"https://api.github.com/users/videalize/repos","events_url":"https://api.github.com/users/videalize/events{/privacy}","received_events_url":"https://api.github.com/users/videalize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/videalize/video-processor","description":null,"fork":false,"url":"https://api.github.com/repos/videalize/video-processor","forks_url":"https://api.github.com/repos/videalize/video-processor/forks","keys_url":"https://api.github.com/repos/videalize/video-processor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/videalize/video-processor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/videalize/video-processor/teams","hooks_url":"https://api.github.com/repos/videalize/video-processor/hooks","issue_events_url":"https://api.github.com/repos/videalize/video-processor/issues/events{/number}","events_url":"https://api.github.com/repos/videalize/video-processor/events","assignees_url":"https://api.github.com/repos/videalize/video-processor/assignees{/user}","branches_url":"https://api.github.com/repos/videalize/video-processor/branches{/branch}","tags_url":"https://api.github.com/repos/videalize/video-processor/tags","blobs_url":"https://api.github.com/repos/videalize/video-processor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/videalize/video-processor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/videalize/video-processor/git/refs{/sha}","trees_url":"https://api.github.com/repos/videalize/video-processor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/videalize/video-processor/statuses/{sha}","languages_url":"https://api.github.com/repos/videalize/video-processor/languages","stargazers_url":"https://api.github.com/repos/videalize/video-processor/stargazers","contributors_url":"https://api.github.com/repos/videalize/video-processor/contributors","subscribers_url":"https://api.github.com/repos/videalize/video-processor/subscribers","subscription_url":"https://api.github.com/repos/videalize/video-processor/subscription","commits_url":"https://api.github.com/repos/videalize/video-processor/commits{/sha}","git_commits_url":"https://api.github.com/repos/videalize/video-processor/git/commits{/sha}","comments_url":"https://api.github.com/repos/videalize/video-processor/comments{/number}","issue_comment_url":"https://api.github.com/repos/videalize/video-processor/issues/comments{/number}","contents_url":"https://api.github.com/repos/videalize/video-processor/contents/{+path}","compare_url":"https://api.github.com/repos/videalize/video-processor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/videalize/video-processor/merges","archive_url":"https://api.github.com/repos/videalize/video-processor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/videalize/video-processor/downloads","issues_url":"https://api.github.com/repos/videalize/video-processor/issues{/number}","pulls_url":"https://api.github.com/repos/videalize/video-processor/pulls{/number}","milestones_url":"https://api.github.com/repos/videalize/video-processor/milestones{/number}","notifications_url":"https://api.github.com/repos/videalize/video-processor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/videalize/video-processor/labels{/name}","releases_url":"https://api.github.com/repos/videalize/video-processor/releases{/id}","deployments_url":"https://api.github.com/repos/videalize/video-processor/deployments","created_at":"2016-10-19T11:07:29Z","updated_at":"2016-10-19T16:23:43Z","pushed_at":"2016-12-09T10:55:40Z","git_url":"git://github.com/videalize/video-processor.git","ssh_url":"git@github.com:videalize/video-processor.git","clone_url":"https://github.com/videalize/video-processor.git","svn_url":"https://github.com/videalize/video-processor","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/videalize/video-processor/pulls/26"},"html":{"href":"https://github.com/videalize/video-processor/pull/26"},"issue":{"href":"https://api.github.com/repos/videalize/video-processor/issues/26"},"comments":{"href":"https://api.github.com/repos/videalize/video-processor/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/videalize/video-processor/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/videalize/video-processor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/videalize/video-processor/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/videalize/video-processor/statuses/9f7dcbe363efa9e92e05b9e4ccd95fc8daf5004a"}}}}
{"actor":{"display_login":"tuvistavie"}}