Answers.Body: <p>Yes, it does. <code>-to</code> looks at the timestamps. And input <code>ss</code> resets them to zero from the seek point. Either use <code>-ss</code> as output option (after <code>-i</code>) or calculate and use duration <code>-t</code>. The former will slow operation, as it performs a slow seek (decode and discard till inpoint).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-26T05:24:01.417Z
Answers.Text: Thank you, Mulvya.  That now makes sense.  I should have my code calculate the duration and do it that way.
Answers.UserDisplayName: Fred Polli
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-25T05:05:17.700Z
Answers.LastActivityDate: 2017-08-25T05:05:17.700Z
Answers.UserDisplayName: Gyan
Body: <p>The following command is producing a video of the exact length of the -to parameter:</p>
  
  <pre><code>ffmpeg -ss 00:06:26 -i fftestinput.mp4 -to 00:06:38 -r 29.97 fftestoutput.mp4
  </code></pre>
  
  <p>Again, the final product is a very nice video of length 6:38.</p>
  
Tags: <ffmpeg>
Title: ffmpeg -to option acting like -t option?
UserDisplayName: Fred Polli
ThreadText: # ffmpeg -to option acting like -t option?
  
  (Asked by: username_0 on 2017-08-25)
  
  The following command is producing a video of the exact length of the -to parameter:
  
  ```
  ffmpeg -ss 00:06:26 -i fftestinput.mp4 -to 00:06:38 -r 29.97 fftestoutput.mp4
  
  ```
  
  Again, the final product is a very nice video of length 6:38.
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-08-25. Score: 1 | Accepted answer
  
  Yes, it does. `-to` looks at the timestamps. And input `ss` resets them to zero from the seek point. Either use `-ss` as output option (after `-i`) or calculate and use duration `-t`. The former will slow operation, as it performs a slow seek (decode and discard till inpoint).
  
  > **Comments:**
  > **username_0**: Thank you, Mulvya.  That now makes sense.  I should have my code calculate the duration and do it that way.  
  
  ---
  
  