{"action":"created","comment":{"url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/comments/76188277","id":76188277,"diff_hunk":"@@ -0,0 +1,115 @@\n+package com.myown.convert3gptowav;\n+\n+import android.content.Context;\n+import android.content.res.AssetManager;\n+import android.os.Handler;\n+import android.util.Log;\n+\n+import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;\n+import com.github.hiteshsondhi88.libffmpeg.FFmpeg;\n+import com.github.hiteshsondhi88.libffmpeg.LoadBinaryResponseHandler;\n+import com.github.hiteshsondhi88.libffmpeg.exceptions.FFmpegCommandAlreadyRunningException;\n+import com.github.hiteshsondhi88.libffmpeg.exceptions.FFmpegNotSupportedException;\n+\n+import java.io.File;\n+import java.io.FileOutputStream;\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.io.OutputStream;\n+import java.io.PrintStream;\n+\n+/**\n+ * Created by Yuta.Watanabe on 2016/07/23.\n+ */\n+public class Convert3gpToWAV {\n+\tprivate Context context = null;\n+\tprivate FFmpeg ffmpeg = null;\n+\tprivate String TAG = this.getClass().toString();\n+\n+\n+\tpublic Convert3gpToWAV(Context context){\n+\t\tthis.context = context;\n+\t\tffmpeg = FFmpeg.getInstance(context);\n+\n+\t}\n+\tpublic void convert(String input_file_path, String outputfile_path, final Runnable callback){\n+\n+\t\tHandler handler = new Handler();\n+\t\tRunnable runnable;\n+\t\tString str = \"-i \" + input_file_path + \" \" + outputfile_path;\n+\t\tfinal String[] cmd = str.split(\" \");\n+\n+\t\tloadToExecute(cmd);\n+\n+\t\thandler.post(new Runnable() {\n+\t\t\t@Override\n+\t\t\tpublic void run() {\n+\n+\t\t\t}\n+\t\t});\n+\t\tcallback.run();\n+\t}\n+\n+\tprivate void loadToExecute(final String[] cmd){\n+\t\ttry {\n+\t\t\tffmpeg.loadBinary(new LoadBinaryResponseHandler() {\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onStart() {\n+\t\t\t\t\tLog.d(TAG, \"load onstart\");\n+\t\t\t\t}\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onFailure() {\n+\t\t\t\t\tLog.d(TAG, \"load onFailure\");\n+\t\t\t\t}\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onSuccess() {\n+\t\t\t\t\tLog.d(TAG, \"load onSuccess\");\n+\t\t\t\t}\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onFinish() {\n+\t\t\t\t\tLog.d(TAG, \"load onFinish\");\n+\t\t\t\t\texecute(cmd);\n+\t\t\t\t}\n+\t\t\t});\n+\t\t} catch (FFmpegNotSupportedException e) {\n+\t\t\te.printStackTrace();\n+\t\t}\n+\t}\n+\tprivate void execute(String[] cmd){\n+\t\ttry {\n+\t\t\tffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onStart() {\n+\t\t\t\t\tLog.d(TAG, \"execute onStart\");\n+\t\t\t\t}\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onProgress(String message) {\n+\t\t\t\t\tLog.d(TAG, message);\n+\t\t\t\t}\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onFailure(String message) {\n+\t\t\t\t\tLog.d(TAG, message);\n+\t\t\t\t}\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic void onSuccess(String message) {","path":"Convert3gpToWAV/app/src/main/java/com/myown/convert3gptowav/Convert3gpToWAV.java","position":102,"original_position":102,"commit_id":"cb6bb86a1ceb373eec86294bdddd0b8b88905c05","original_commit_id":"cb6bb86a1ceb373eec86294bdddd0b8b88905c05","user":{"login":"watayuz","id":7581636,"avatar_url":"https://avatars.githubusercontent.com/u/7581636?v=3","gravatar_id":"","url":"https://api.github.com/users/watayuz","html_url":"https://github.com/watayuz","followers_url":"https://api.github.com/users/watayuz/followers","following_url":"https://api.github.com/users/watayuz/following{/other_user}","gists_url":"https://api.github.com/users/watayuz/gists{/gist_id}","starred_url":"https://api.github.com/users/watayuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watayuz/subscriptions","organizations_url":"https://api.github.com/users/watayuz/orgs","repos_url":"https://api.github.com/users/watayuz/repos","events_url":"https://api.github.com/users/watayuz/events{/privacy}","received_events_url":"https://api.github.com/users/watayuz/received_events","type":"User","site_admin":false},"body":"なるほど。了解しました。取り組んでみます。","created_at":"2016-08-25T06:45:20Z","updated_at":"2016-08-25T06:45:20Z","html_url":"https://github.com/swkoubou/peppermill-test/pull/167#discussion_r76188277","pull_request_url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/comments/76188277"},"html":{"href":"https://github.com/swkoubou/peppermill-test/pull/167#discussion_r76188277"},"pull_request":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167","id":78569498,"html_url":"https://github.com/swkoubou/peppermill-test/pull/167","diff_url":"https://github.com/swkoubou/peppermill-test/pull/167.diff","patch_url":"https://github.com/swkoubou/peppermill-test/pull/167.patch","issue_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues/167","number":167,"state":"open","locked":false,"title":"Convert3gptowav","user":{"login":"watayuz","id":7581636,"avatar_url":"https://avatars.githubusercontent.com/u/7581636?v=3","gravatar_id":"","url":"https://api.github.com/users/watayuz","html_url":"https://github.com/watayuz","followers_url":"https://api.github.com/users/watayuz/followers","following_url":"https://api.github.com/users/watayuz/following{/other_user}","gists_url":"https://api.github.com/users/watayuz/gists{/gist_id}","starred_url":"https://api.github.com/users/watayuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watayuz/subscriptions","organizations_url":"https://api.github.com/users/watayuz/orgs","repos_url":"https://api.github.com/users/watayuz/repos","events_url":"https://api.github.com/users/watayuz/events{/privacy}","received_events_url":"https://api.github.com/users/watayuz/received_events","type":"User","site_admin":false},"body":"録音ファイルである3gpファイルをwavに変換できるようにクラスを作成しました\r\n","created_at":"2016-07-23T10:46:21Z","updated_at":"2016-08-25T06:45:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed9eeef2ebd45e4e07085817b2f33c8bfef904e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167/commits","review_comments_url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167/comments","review_comment_url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues/167/comments","statuses_url":"https://api.github.com/repos/swkoubou/peppermill-test/statuses/cb6bb86a1ceb373eec86294bdddd0b8b88905c05","head":{"label":"swkoubou:convert3gptowav","ref":"convert3gptowav","sha":"cb6bb86a1ceb373eec86294bdddd0b8b88905c05","user":{"login":"swkoubou","id":7955592,"avatar_url":"https://avatars.githubusercontent.com/u/7955592?v=3","gravatar_id":"","url":"https://api.github.com/users/swkoubou","html_url":"https://github.com/swkoubou","followers_url":"https://api.github.com/users/swkoubou/followers","following_url":"https://api.github.com/users/swkoubou/following{/other_user}","gists_url":"https://api.github.com/users/swkoubou/gists{/gist_id}","starred_url":"https://api.github.com/users/swkoubou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swkoubou/subscriptions","organizations_url":"https://api.github.com/users/swkoubou/orgs","repos_url":"https://api.github.com/users/swkoubou/repos","events_url":"https://api.github.com/users/swkoubou/events{/privacy}","received_events_url":"https://api.github.com/users/swkoubou/received_events","type":"Organization","site_admin":false},"repo":{"id":48040904,"name":"peppermill-test","full_name":"swkoubou/peppermill-test","owner":{"login":"swkoubou","id":7955592,"avatar_url":"https://avatars.githubusercontent.com/u/7955592?v=3","gravatar_id":"","url":"https://api.github.com/users/swkoubou","html_url":"https://github.com/swkoubou","followers_url":"https://api.github.com/users/swkoubou/followers","following_url":"https://api.github.com/users/swkoubou/following{/other_user}","gists_url":"https://api.github.com/users/swkoubou/gists{/gist_id}","starred_url":"https://api.github.com/users/swkoubou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swkoubou/subscriptions","organizations_url":"https://api.github.com/users/swkoubou/orgs","repos_url":"https://api.github.com/users/swkoubou/repos","events_url":"https://api.github.com/users/swkoubou/events{/privacy}","received_events_url":"https://api.github.com/users/swkoubou/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swkoubou/peppermill-test","description":"ｓｗｋペッパーミルプロジェクト テスト用","fork":false,"url":"https://api.github.com/repos/swkoubou/peppermill-test","forks_url":"https://api.github.com/repos/swkoubou/peppermill-test/forks","keys_url":"https://api.github.com/repos/swkoubou/peppermill-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swkoubou/peppermill-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swkoubou/peppermill-test/teams","hooks_url":"https://api.github.com/repos/swkoubou/peppermill-test/hooks","issue_events_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues/events{/number}","events_url":"https://api.github.com/repos/swkoubou/peppermill-test/events","assignees_url":"https://api.github.com/repos/swkoubou/peppermill-test/assignees{/user}","branches_url":"https://api.github.com/repos/swkoubou/peppermill-test/branches{/branch}","tags_url":"https://api.github.com/repos/swkoubou/peppermill-test/tags","blobs_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swkoubou/peppermill-test/statuses/{sha}","languages_url":"https://api.github.com/repos/swkoubou/peppermill-test/languages","stargazers_url":"https://api.github.com/repos/swkoubou/peppermill-test/stargazers","contributors_url":"https://api.github.com/repos/swkoubou/peppermill-test/contributors","subscribers_url":"https://api.github.com/repos/swkoubou/peppermill-test/subscribers","subscription_url":"https://api.github.com/repos/swkoubou/peppermill-test/subscription","commits_url":"https://api.github.com/repos/swkoubou/peppermill-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/swkoubou/peppermill-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/swkoubou/peppermill-test/contents/{+path}","compare_url":"https://api.github.com/repos/swkoubou/peppermill-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swkoubou/peppermill-test/merges","archive_url":"https://api.github.com/repos/swkoubou/peppermill-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swkoubou/peppermill-test/downloads","issues_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues{/number}","pulls_url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls{/number}","milestones_url":"https://api.github.com/repos/swkoubou/peppermill-test/milestones{/number}","notifications_url":"https://api.github.com/repos/swkoubou/peppermill-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swkoubou/peppermill-test/labels{/name}","releases_url":"https://api.github.com/repos/swkoubou/peppermill-test/releases{/id}","deployments_url":"https://api.github.com/repos/swkoubou/peppermill-test/deployments","created_at":"2015-12-15T12:16:20Z","updated_at":"2016-02-08T07:14:18Z","pushed_at":"2016-08-25T06:36:20Z","git_url":"git://github.com/swkoubou/peppermill-test.git","ssh_url":"git@github.com:swkoubou/peppermill-test.git","clone_url":"https://github.com/swkoubou/peppermill-test.git","svn_url":"https://github.com/swkoubou/peppermill-test","homepage":null,"size":1515,"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":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"swkoubou:master","ref":"master","sha":"071bcd54e63ae1a9772af5acb85142cd6977558d","user":{"login":"swkoubou","id":7955592,"avatar_url":"https://avatars.githubusercontent.com/u/7955592?v=3","gravatar_id":"","url":"https://api.github.com/users/swkoubou","html_url":"https://github.com/swkoubou","followers_url":"https://api.github.com/users/swkoubou/followers","following_url":"https://api.github.com/users/swkoubou/following{/other_user}","gists_url":"https://api.github.com/users/swkoubou/gists{/gist_id}","starred_url":"https://api.github.com/users/swkoubou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swkoubou/subscriptions","organizations_url":"https://api.github.com/users/swkoubou/orgs","repos_url":"https://api.github.com/users/swkoubou/repos","events_url":"https://api.github.com/users/swkoubou/events{/privacy}","received_events_url":"https://api.github.com/users/swkoubou/received_events","type":"Organization","site_admin":false},"repo":{"id":48040904,"name":"peppermill-test","full_name":"swkoubou/peppermill-test","owner":{"login":"swkoubou","id":7955592,"avatar_url":"https://avatars.githubusercontent.com/u/7955592?v=3","gravatar_id":"","url":"https://api.github.com/users/swkoubou","html_url":"https://github.com/swkoubou","followers_url":"https://api.github.com/users/swkoubou/followers","following_url":"https://api.github.com/users/swkoubou/following{/other_user}","gists_url":"https://api.github.com/users/swkoubou/gists{/gist_id}","starred_url":"https://api.github.com/users/swkoubou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swkoubou/subscriptions","organizations_url":"https://api.github.com/users/swkoubou/orgs","repos_url":"https://api.github.com/users/swkoubou/repos","events_url":"https://api.github.com/users/swkoubou/events{/privacy}","received_events_url":"https://api.github.com/users/swkoubou/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swkoubou/peppermill-test","description":"ｓｗｋペッパーミルプロジェクト テスト用","fork":false,"url":"https://api.github.com/repos/swkoubou/peppermill-test","forks_url":"https://api.github.com/repos/swkoubou/peppermill-test/forks","keys_url":"https://api.github.com/repos/swkoubou/peppermill-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swkoubou/peppermill-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swkoubou/peppermill-test/teams","hooks_url":"https://api.github.com/repos/swkoubou/peppermill-test/hooks","issue_events_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues/events{/number}","events_url":"https://api.github.com/repos/swkoubou/peppermill-test/events","assignees_url":"https://api.github.com/repos/swkoubou/peppermill-test/assignees{/user}","branches_url":"https://api.github.com/repos/swkoubou/peppermill-test/branches{/branch}","tags_url":"https://api.github.com/repos/swkoubou/peppermill-test/tags","blobs_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swkoubou/peppermill-test/statuses/{sha}","languages_url":"https://api.github.com/repos/swkoubou/peppermill-test/languages","stargazers_url":"https://api.github.com/repos/swkoubou/peppermill-test/stargazers","contributors_url":"https://api.github.com/repos/swkoubou/peppermill-test/contributors","subscribers_url":"https://api.github.com/repos/swkoubou/peppermill-test/subscribers","subscription_url":"https://api.github.com/repos/swkoubou/peppermill-test/subscription","commits_url":"https://api.github.com/repos/swkoubou/peppermill-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/swkoubou/peppermill-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/swkoubou/peppermill-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/swkoubou/peppermill-test/contents/{+path}","compare_url":"https://api.github.com/repos/swkoubou/peppermill-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swkoubou/peppermill-test/merges","archive_url":"https://api.github.com/repos/swkoubou/peppermill-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swkoubou/peppermill-test/downloads","issues_url":"https://api.github.com/repos/swkoubou/peppermill-test/issues{/number}","pulls_url":"https://api.github.com/repos/swkoubou/peppermill-test/pulls{/number}","milestones_url":"https://api.github.com/repos/swkoubou/peppermill-test/milestones{/number}","notifications_url":"https://api.github.com/repos/swkoubou/peppermill-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swkoubou/peppermill-test/labels{/name}","releases_url":"https://api.github.com/repos/swkoubou/peppermill-test/releases{/id}","deployments_url":"https://api.github.com/repos/swkoubou/peppermill-test/deployments","created_at":"2015-12-15T12:16:20Z","updated_at":"2016-02-08T07:14:18Z","pushed_at":"2016-08-25T06:36:20Z","git_url":"git://github.com/swkoubou/peppermill-test.git","ssh_url":"git@github.com:swkoubou/peppermill-test.git","clone_url":"https://github.com/swkoubou/peppermill-test.git","svn_url":"https://github.com/swkoubou/peppermill-test","homepage":null,"size":1515,"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":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167"},"html":{"href":"https://github.com/swkoubou/peppermill-test/pull/167"},"issue":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/issues/167"},"comments":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/swkoubou/peppermill-test/statuses/cb6bb86a1ceb373eec86294bdddd0b8b88905c05"}}}}
{"actor":{"display_login":"watayuz"}}