{"action":"created","comment":{"url":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/comments/62993857","id":62993857,"diff_hunk":"@@ -386,28 +386,33 @@\n   </div>\n   <!-- ends Excerpt from beginning -->\n \n-  <!-- Excerpt from middle -->\n-  <span data-toggle=\"modal\" data-target=\".excerpt_from_middle\"><button type=\"button\" class=\"btn btn-default\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"Capture five seconds from the middle of a video file\">Excerpt from middle</button></span>\n-  <div class=\"modal fade excerpt_from_middle\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\">\n+  <!-- Trim -->\n+  <span data-toggle=\"modal\" data-target=\".trim\"><button type=\"button\" class=\"btn btn-default\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"Trim video\">Trim video</button></span>\n+  <div class=\"modal fade trim\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\">\n     <div class=\"modal-dialog modal-lg\">\n       <div class=\"modal-content\">\n         <div class=\"well\">\n-          <h3>Excerpt from middle</h3>\n-          <p><code>ffmpeg -i <i>input_file</i> -ss <i>5</i> -t <i>10</i> -c copy <i>output_file</i></code></p>\n-          <p>This command captures a certain portion of a video file, starting from a designated point in the file and taking an excerpt as long as the amount of time (in seconds) specified in the script. This can be used to create a preview or clip out a desired segment. To be more specific, use timecode, such as 00:00:05.</p>\n+          <h3>Trim a video without re-encoding</h3>\n+          <p><code>ffmpeg -i <i>input_file</i> -ss 00:02:00 -to 00:55:00 -c copy <i>output_file</i></code></p>\n+          <p>This command allows you to create an excerpt from a video file without re-encoding the image data.</p>\n           <dl>\n             <dt>ffmpeg</dt><dd>starts the command</dd>\n             <dt>-i <i>input_file</i></dt><dd>path, name and extension of the input file</dd>\n-            <dt>-ss <i>5</i></dt><dd>Tells ffmpeg what timecode in the file to look for to start copying, and specifies the number of seconds into the video that ffmpeg should start copying. To be more specific, you can use timecode such as 00:00:05.</dd>\n-            <dt>-t <i>10</i></dt><dd>Tells ffmpeg to stop copying from the input file after a certain time, and specifies the number of seconds after which to stop copying. In this case, 10 seconds is specified.</dd>\n-            <dt>-c copy</dt><dd>use stream copy mode to re-mux instead of re-encode</dd>\n+            <dt>-ss 00:02:00</dt><dd>sets in point at 00:02:00</dd>\n+\t\t    <dt>-to 00:55:00</dt><dd>sets out point at 00:55:00</dd>\n+            <dt>-c copy</dt><dd>use stream copy mode (no re-encoding)</dd>\n+\t\t\t<dd><i>Note:</i> watch out when using <code>-ss</code> with <code>-c copy</code> if the source is encoded with an interframe codec (e.g., H.264). Since ffmpeg must split on i-frames, it will seek to the nearest i-frame to begin the stream copy.</dd>\n             <dt><i>output_file</i></dt><dd>path, name and extension of the output file</dd>\n           </dl>\n+\t\t  <p>Variation: trim video by setting duration, by using <code>-t</code> instead of <code>-to</code></p>\n+\t\t  <p><code>ffmpeg -i <i>input_file</i> -ss 00:05:00 -t 10 -c copy <i>output_file</i></code></p>\n+          <dt>-ss 00:05:00 -t 10</dt>\n+\t\t  <dd>Beginning five minutes into the original video, this command will create a 10-second-long excerpt.</dd>","path":"index.html","position":null,"original_position":46,"commit_id":"b37fdca5f66dc82537f25adb45bc4a517775c2d0","original_commit_id":"5bf9729ddd1f3c5c993593638fb259fb15baf118","user":{"login":"kfrn","id":16832997,"avatar_url":"https://avatars.githubusercontent.com/u/16832997?v=3","gravatar_id":"","url":"https://api.github.com/users/kfrn","html_url":"https://github.com/kfrn","followers_url":"https://api.github.com/users/kfrn/followers","following_url":"https://api.github.com/users/kfrn/following{/other_user}","gists_url":"https://api.github.com/users/kfrn/gists{/gist_id}","starred_url":"https://api.github.com/users/kfrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfrn/subscriptions","organizations_url":"https://api.github.com/users/kfrn/orgs","repos_url":"https://api.github.com/users/kfrn/repos","events_url":"https://api.github.com/users/kfrn/events{/privacy}","received_events_url":"https://api.github.com/users/kfrn/received_events","type":"User","site_admin":false},"body":"I have wrapped the variation code in its own `<dl>` pair, I hope that is permissable.","created_at":"2016-05-12T09:55:31Z","updated_at":"2016-05-12T09:55:31Z","html_url":"https://github.com/amiaopensource/ffmprovisr/pull/56#discussion_r62993857","pull_request_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/comments/62993857"},"html":{"href":"https://github.com/amiaopensource/ffmprovisr/pull/56#discussion_r62993857"},"pull_request":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56","id":69497822,"html_url":"https://github.com/amiaopensource/ffmprovisr/pull/56","diff_url":"https://github.com/amiaopensource/ffmprovisr/pull/56.diff","patch_url":"https://github.com/amiaopensource/ffmprovisr/pull/56.patch","issue_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/issues/56","number":56,"state":"open","locked":false,"title":"add trim video option","user":{"login":"kfrn","id":16832997,"avatar_url":"https://avatars.githubusercontent.com/u/16832997?v=3","gravatar_id":"","url":"https://api.github.com/users/kfrn","html_url":"https://github.com/kfrn","followers_url":"https://api.github.com/users/kfrn/followers","following_url":"https://api.github.com/users/kfrn/following{/other_user}","gists_url":"https://api.github.com/users/kfrn/gists{/gist_id}","starred_url":"https://api.github.com/users/kfrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfrn/subscriptions","organizations_url":"https://api.github.com/users/kfrn/orgs","repos_url":"https://api.github.com/users/kfrn/repos","events_url":"https://api.github.com/users/kfrn/events{/privacy}","received_events_url":"https://api.github.com/users/kfrn/received_events","type":"User","site_admin":false},"body":"Although there are a few variations on how one can trim a video, I'd like to suggest this as a useful all-purpose command.","created_at":"2016-05-10T12:33:01Z","updated_at":"2016-05-12T09:55:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcdd731cb9cd85c59fc7b9967175d4be1c3c714d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56/commits","review_comments_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56/comments","review_comment_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/issues/56/comments","statuses_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/statuses/b37fdca5f66dc82537f25adb45bc4a517775c2d0","head":{"label":"kfrn:gh-pages","ref":"gh-pages","sha":"b37fdca5f66dc82537f25adb45bc4a517775c2d0","user":{"login":"kfrn","id":16832997,"avatar_url":"https://avatars.githubusercontent.com/u/16832997?v=3","gravatar_id":"","url":"https://api.github.com/users/kfrn","html_url":"https://github.com/kfrn","followers_url":"https://api.github.com/users/kfrn/followers","following_url":"https://api.github.com/users/kfrn/following{/other_user}","gists_url":"https://api.github.com/users/kfrn/gists{/gist_id}","starred_url":"https://api.github.com/users/kfrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfrn/subscriptions","organizations_url":"https://api.github.com/users/kfrn/orgs","repos_url":"https://api.github.com/users/kfrn/repos","events_url":"https://api.github.com/users/kfrn/events{/privacy}","received_events_url":"https://api.github.com/users/kfrn/received_events","type":"User","site_admin":false},"repo":{"id":58456916,"name":"ffmprovisr","full_name":"kfrn/ffmprovisr","owner":{"login":"kfrn","id":16832997,"avatar_url":"https://avatars.githubusercontent.com/u/16832997?v=3","gravatar_id":"","url":"https://api.github.com/users/kfrn","html_url":"https://github.com/kfrn","followers_url":"https://api.github.com/users/kfrn/followers","following_url":"https://api.github.com/users/kfrn/following{/other_user}","gists_url":"https://api.github.com/users/kfrn/gists{/gist_id}","starred_url":"https://api.github.com/users/kfrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfrn/subscriptions","organizations_url":"https://api.github.com/users/kfrn/orgs","repos_url":"https://api.github.com/users/kfrn/repos","events_url":"https://api.github.com/users/kfrn/events{/privacy}","received_events_url":"https://api.github.com/users/kfrn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kfrn/ffmprovisr","description":"","fork":true,"url":"https://api.github.com/repos/kfrn/ffmprovisr","forks_url":"https://api.github.com/repos/kfrn/ffmprovisr/forks","keys_url":"https://api.github.com/repos/kfrn/ffmprovisr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kfrn/ffmprovisr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kfrn/ffmprovisr/teams","hooks_url":"https://api.github.com/repos/kfrn/ffmprovisr/hooks","issue_events_url":"https://api.github.com/repos/kfrn/ffmprovisr/issues/events{/number}","events_url":"https://api.github.com/repos/kfrn/ffmprovisr/events","assignees_url":"https://api.github.com/repos/kfrn/ffmprovisr/assignees{/user}","branches_url":"https://api.github.com/repos/kfrn/ffmprovisr/branches{/branch}","tags_url":"https://api.github.com/repos/kfrn/ffmprovisr/tags","blobs_url":"https://api.github.com/repos/kfrn/ffmprovisr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kfrn/ffmprovisr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kfrn/ffmprovisr/git/refs{/sha}","trees_url":"https://api.github.com/repos/kfrn/ffmprovisr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kfrn/ffmprovisr/statuses/{sha}","languages_url":"https://api.github.com/repos/kfrn/ffmprovisr/languages","stargazers_url":"https://api.github.com/repos/kfrn/ffmprovisr/stargazers","contributors_url":"https://api.github.com/repos/kfrn/ffmprovisr/contributors","subscribers_url":"https://api.github.com/repos/kfrn/ffmprovisr/subscribers","subscription_url":"https://api.github.com/repos/kfrn/ffmprovisr/subscription","commits_url":"https://api.github.com/repos/kfrn/ffmprovisr/commits{/sha}","git_commits_url":"https://api.github.com/repos/kfrn/ffmprovisr/git/commits{/sha}","comments_url":"https://api.github.com/repos/kfrn/ffmprovisr/comments{/number}","issue_comment_url":"https://api.github.com/repos/kfrn/ffmprovisr/issues/comments{/number}","contents_url":"https://api.github.com/repos/kfrn/ffmprovisr/contents/{+path}","compare_url":"https://api.github.com/repos/kfrn/ffmprovisr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kfrn/ffmprovisr/merges","archive_url":"https://api.github.com/repos/kfrn/ffmprovisr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kfrn/ffmprovisr/downloads","issues_url":"https://api.github.com/repos/kfrn/ffmprovisr/issues{/number}","pulls_url":"https://api.github.com/repos/kfrn/ffmprovisr/pulls{/number}","milestones_url":"https://api.github.com/repos/kfrn/ffmprovisr/milestones{/number}","notifications_url":"https://api.github.com/repos/kfrn/ffmprovisr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kfrn/ffmprovisr/labels{/name}","releases_url":"https://api.github.com/repos/kfrn/ffmprovisr/releases{/id}","deployments_url":"https://api.github.com/repos/kfrn/ffmprovisr/deployments","created_at":"2016-05-10T11:50:07Z","updated_at":"2016-05-10T11:50:08Z","pushed_at":"2016-05-12T09:54:07Z","git_url":"git://github.com/kfrn/ffmprovisr.git","ssh_url":"git@github.com:kfrn/ffmprovisr.git","clone_url":"https://github.com/kfrn/ffmprovisr.git","svn_url":"https://github.com/kfrn/ffmprovisr","homepage":"","size":803,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"amiaopensource:gh-pages","ref":"gh-pages","sha":"6b829f2d3c45b0c0dbc660e215a25061161cf7c7","user":{"login":"amiaopensource","id":5024964,"avatar_url":"https://avatars.githubusercontent.com/u/5024964?v=3","gravatar_id":"","url":"https://api.github.com/users/amiaopensource","html_url":"https://github.com/amiaopensource","followers_url":"https://api.github.com/users/amiaopensource/followers","following_url":"https://api.github.com/users/amiaopensource/following{/other_user}","gists_url":"https://api.github.com/users/amiaopensource/gists{/gist_id}","starred_url":"https://api.github.com/users/amiaopensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amiaopensource/subscriptions","organizations_url":"https://api.github.com/users/amiaopensource/orgs","repos_url":"https://api.github.com/users/amiaopensource/repos","events_url":"https://api.github.com/users/amiaopensource/events{/privacy}","received_events_url":"https://api.github.com/users/amiaopensource/received_events","type":"Organization","site_admin":false},"repo":{"id":21527482,"name":"ffmprovisr","full_name":"amiaopensource/ffmprovisr","owner":{"login":"amiaopensource","id":5024964,"avatar_url":"https://avatars.githubusercontent.com/u/5024964?v=3","gravatar_id":"","url":"https://api.github.com/users/amiaopensource","html_url":"https://github.com/amiaopensource","followers_url":"https://api.github.com/users/amiaopensource/followers","following_url":"https://api.github.com/users/amiaopensource/following{/other_user}","gists_url":"https://api.github.com/users/amiaopensource/gists{/gist_id}","starred_url":"https://api.github.com/users/amiaopensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amiaopensource/subscriptions","organizations_url":"https://api.github.com/users/amiaopensource/orgs","repos_url":"https://api.github.com/users/amiaopensource/repos","events_url":"https://api.github.com/users/amiaopensource/events{/privacy}","received_events_url":"https://api.github.com/users/amiaopensource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amiaopensource/ffmprovisr","description":"","fork":false,"url":"https://api.github.com/repos/amiaopensource/ffmprovisr","forks_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/forks","keys_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/teams","hooks_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/hooks","issue_events_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/issues/events{/number}","events_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/events","assignees_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/assignees{/user}","branches_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/branches{/branch}","tags_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/tags","blobs_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/git/refs{/sha}","trees_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/statuses/{sha}","languages_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/languages","stargazers_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/stargazers","contributors_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/contributors","subscribers_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/subscribers","subscription_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/subscription","commits_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/commits{/sha}","git_commits_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/git/commits{/sha}","comments_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/comments{/number}","issue_comment_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/issues/comments{/number}","contents_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/contents/{+path}","compare_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/merges","archive_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/downloads","issues_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/issues{/number}","pulls_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls{/number}","milestones_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/milestones{/number}","notifications_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/labels{/name}","releases_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/releases{/id}","deployments_url":"https://api.github.com/repos/amiaopensource/ffmprovisr/deployments","created_at":"2014-07-05T20:15:01Z","updated_at":"2016-05-12T08:18:13Z","pushed_at":"2016-05-12T09:54:08Z","git_url":"git://github.com/amiaopensource/ffmprovisr.git","ssh_url":"git@github.com:amiaopensource/ffmprovisr.git","clone_url":"https://github.com/amiaopensource/ffmprovisr.git","svn_url":"https://github.com/amiaopensource/ffmprovisr","homepage":"","size":739,"stargazers_count":21,"watchers_count":21,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":11,"forks":10,"open_issues":11,"watchers":21,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56"},"html":{"href":"https://github.com/amiaopensource/ffmprovisr/pull/56"},"issue":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/issues/56"},"comments":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/amiaopensource/ffmprovisr/statuses/b37fdca5f66dc82537f25adb45bc4a517775c2d0"}}}}