<p>The following ffmpeg command will remove the first and last minute of a ten-minute input file:</p>

<pre><code>ffmpeg -i input.avi -ss 00:01:00 -t 00:08:00 -c copy output.avi
</code></pre>

<p><code>-ss</code> means start seek; that is, where the output will begin. <code>-t</code> means time; that is, the length of the output: so the above command will start at the first minute, and end eight minutes later.</p>

<p>With some video codecs, using these options with <code>-c copy</code> can cause issues due to I-frames (i.e. ffmpeg will cut to the nearest I-frame). This shouldn't be a problem with DV, though, sine AFAIK it's I-frame only.</p>

CC BY-SA 3.0
2013-01-16T22:47:59.707Z
2013-01-16T22:47:59.707Z
evilsoup
<p>I'm using a mac and I'd prefer a free utility, but don't mind using a commercial tool if I have to.</p>

<editing><video-editor>
What is a good utility for trimming .dv files without losing metadata?
Carl
# What is a good utility for trimming .dv files without losing metadata?

(Asked by: username_0 on 2011-09-22)

I'm using a mac and I'd prefer a free utility, but don't mind using a commercial tool if I have to.

**Tags:** editing, video-editor


---

## 1 answers

### Answer by username_1 on 2013-01-16. Score: 1 | Accepted answer

The following ffmpeg command will remove the first and last minute of a ten-minute input file:
ffmpeg -i input.avi -ss 00:01:00 -t 00:08:00 -c copy output.avi

-ss means start seek; that is, where the output will begin. -t means time; that is, the length of the output: so the above command will start at the first minute, and end eight minutes later.
With some video codecs, using these options with -c copy can cause issues due to I-frames (i.e. ffmpeg will cut to the nearest I-frame). This shouldn't be a problem with DV, though, sine AFAIK it's I-frame only.


---

