Answers.Body: <p>I found that the time after <code>-t</code> has to be in the format <code>00:00:00</code>. So, for a two minute clip, the command is:</p>
  
  <pre><code>ffmpeg -i input.avi -sameq -ss 01:05:16 -t 00:02:00 clips/output.avi
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-01-15T19:24:47.457Z
Answers.Text: This is a perfectly fine solution, except you should (almost) never use -sameq - it doesn't mean 'same quality'. There are a few cases where it may be useful, but it is very much an advances option (so if you aren't sure that you need to use it, don't use it).
Answers.UserDisplayName: evilsoup
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-30T07:17:46.310Z
Answers.Text: And it was removed in recent `ffmpeg` builds - https://www.ffmpeg.org/faq.html#Why-was-the-ffmpeg-_002dsameq-option-removed_003f-What-to-use-instead_003f
Answers.UserDisplayName: anatoly techtonik
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-12-20T04:21:17.387Z
Answers.LastActivityDate: 2012-12-20T04:21:17.387Z
Answers.UserDisplayName: Questioner
Answers.Body: <p>Try putting<code>-t 120</code> after <code>-an</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-03-24T14:46:29.457Z
Answers.LastActivityDate: 2012-03-24T14:46:29.457Z
Answers.UserDisplayName: Gyan
Body: <p>I am trying edit out a two minute clip from a long movie.</p>
  
  <p>This is the command I'm using:</p>
  
  <pre><code>ffmpeg -ss 01:05:16 -t 120 -i input.avi -vcodec copy -an clips/output.avi
  </code></pre>
  
  <p>I thought that 120 would be in seconds, giving me a two minute clip. But the clip I get is over 45 minutes long. It seems to be as long as from the start time to the end of the film.</p>
  
  <p>Why is this not working and what command should I use to get a two minute clip?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2012-12-19T23:13:35.613Z
Comments.Text: ffmpeg is sensitive to the order in which you put the different options. Try changing that around (as Mulvya) suggests.
Comments.UserDisplayName: Saaru Lindestøkke
Tags: <ffmpeg>
Title: Why is this ffmpeg command outputting such long clips?
UserDisplayName: Questioner
ThreadText: # Why is this ffmpeg command outputting such long clips?
  
  (Asked by: username_0 on 2012-03-24)
  
  I am trying edit out a two minute clip from a long movie.
  
  This is the command I'm using:
  
  ```
  ffmpeg -ss 01:05:16 -t 120 -i input.avi -vcodec copy -an clips/output.avi
  
  ```
  
  I thought that 120 would be in seconds, giving me a two minute clip. But the clip I get is over 45 minutes long. It seems to be as long as from the start time to the end of the film.
  
  Why is this not working and what command should I use to get a two minute clip?
  
  **Tags:** ffmpeg
  
  > **Comments:**
  > **username_1**: ffmpeg is sensitive to the order in which you put the different options. Try changing that around (as Mulvya) suggests.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2012-12-20. Score: 2 | Accepted answer
  
  I found that the time after `-t` has to be in the format `00:00:00`. So, for a two minute clip, the command is:
  
  ```
  ffmpeg -i input.avi -sameq -ss 01:05:16 -t 00:02:00 clips/output.avi
  
  ```
  
  > **Comments:**
  > **username_2**: This is a perfectly fine solution, except you should (almost) never use -sameq - it doesn't mean 'same quality'. There are a few cases where it may be useful, but it is very much an advances option (so if you aren't sure that you need to use it, don't use it).  
  > **username_3**: And it was removed in recent `ffmpeg` builds - https://www.ffmpeg.org/faq.html#Why-was-the-ffmpeg-_002dsameq-option-removed_003f-What-to-use-instead_003f  
  
  ---
  
  ### Answer by username_4 on 2012-03-24. Score: 0
  
  Try putting`-t 120` after `-an`
  
  
  ---
  
  