user34688: 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?

user31818: 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

34688: <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>
 31818: <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>
