Answers.Body: <p>ffmpeg parameters</p>
  <ul>
  <li>-ss specifies the start time i.e. the 30th second of stream as 00:00:30</li>
  <li>-t specifies the duration i.e. 10 second stream as 10</li>
  <li>-to specifies the end time i.e. the 90th second of stream as 00:01:30</li>
  </ul>
  <p>Note: Only -t will take effect if both  -t and -to parameters are used.</p>
  <p>Example script:</p>
  <p><code>ffmpeg -i canada.mp4 -ss 00:00:30 -to 00:01:30 -c copy oneMinute.mp4</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-17T10:57:01.600Z
Answers.Text: Can you post an example of that script?
Answers.UserDisplayName: GAP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-19T08:54:57.227Z
Answers.Text: ffmpeg -i canada.mp4 -ss 00:00:30 -to 00:01:30 -c copy oneMinute.mp4 and the result of ffprobe -i oneMinute.mp4 is Duration: 00:00:59.73, start: 0.333008, bitrate: 17036 kb/s
Answers.UserDisplayName: xer-rex
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-20T01:59:12.990Z
Answers.Text: So, it looks it need to learn how to use FFProbe and FFPlay. Thanks for the help.
Answers.UserDisplayName: GAP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-12T03:09:51.480Z
Answers.LastActivityDate: 2021-12-02T13:03:03.347Z
Answers.LastEditDate: 2021-12-02T13:03:03.347Z
Answers.UserDisplayName: xer-rex
Body: <p>I am trying to trim my videos in Virtualdub but I also wanted to make a stream copy of the same video that I am trimming. Unfortunately, Virtualdub does not always give me the results I want as it is always a few seconds off and I cannot stream copy the video as it does not always support the codecs that my video has. I hope that FFMPEG can do the job for me, but I do not know how to trim and cut in FFMPEG. How do you cut and trim in FFMPEG?</p>
  
Tags: <ffmpeg><virtualdub>
Title: How do you trim videos in FFMPEG?
UserDisplayName: GAP
ThreadText: # How do you trim videos in FFMPEG?
  
  (Asked by: username_0 on 2021-09-11)
  
  I am trying to trim my videos in Virtualdub but I also wanted to make a stream copy of the same video that I am trimming. Unfortunately, Virtualdub does not always give me the results I want as it is always a few seconds off and I cannot stream copy the video as it does not always support the codecs that my video has. I hope that FFMPEG can do the job for me, but I do not know how to trim and cut in FFMPEG. How do you cut and trim in FFMPEG?
  
  **Tags:** ffmpeg, virtualdub
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-09-12. Score: 3
  
  ffmpeg parameters
  
  * -ss specifies the start time i.e. the 30th second of stream as 00:00:30
  * -t specifies the duration i.e. 10 second stream as 10
  * -to specifies the end time i.e. the 90th second of stream as 00:01:30
  
  Note: Only -t will take effect if both -t and -to parameters are used.
  
  Example script:
  
  `ffmpeg -i canada.mp4 -ss 00:00:30 -to 00:01:30 -c copy oneMinute.mp4`
  
  > **Comments:**
  > **username_0**: Can you post an example of that script?  
  > **username_1**: ffmpeg -i canada.mp4 -ss 00:00:30 -to 00:01:30 -c copy oneMinute.mp4 and the result of ffprobe -i oneMinute.mp4 is Duration: 00:00:59.73, start: 0.333008, bitrate: 17036 kb/s  
  > **username_0**: So, it looks it need to learn how to use FFProbe and FFPlay. Thanks for the help.  
  
  ---
  
  