<code>-ss 00:00:04</code> specifies the starting time, in this case 4 seconds (use format HH:MM:SS, or HH:MM:SS.MS)
+
+
<code>-to 00:00:06</code> specifies end point, in this case 6 seconds (same formatting as above)
+
+
Alternatively, instead of <code>-to</code>, you can use <code>-t 00:00:02</code> to cut exactly 2 seconds from the starting time.
+
+
<code>-vcodec h264</code> specifies video codec.
+
+
<code>-b:v 8M</code> specifies video bit rate, in this case 8Mbit/s, which determines video quality.
+
+
+
+
Note: you can use <code>-c copy</code> to trim without re-encoding, but FFmpeg can only cut to the nearest keyframe, so the output may not be exactly the same length as specified.