How to Trim or Cut a Video Using Timestamps

Keep one passage, remove a middle mistake or join selected video ranges. Follow timestamp and FFmpeg methods, preserve sound boundaries and check the exported file.

Original selected source ranges become a consecutive output sequence with the unwanted gaps removed.

When you know the timestamps, decide what the output should contain: one retained passage, the material before and after a deleted mistake, or several selected ranges in a chosen order. A useful cut preserves the intended meaning, keeps picture and sound together and exports the actual file you requested.

CutNow is an AI video editing product for footage you already have. Its automatic finding and first cuts help when the useful passages still need choosing. A supplied range is a different starting point: the selection is already known, and a focused trim or cut prepares that material for delivery. The methods below work from your source file.

Write a range against the original file

Make a short cut note with the exact source filename, start, end and a recognizable phrase or action. Keep the original unchanged. A timestamp from a version with a shortened opening or changed speed may identify the wrong moment in another version.

Teaching cut noteValue
Sourceinterview-source.mp4
Source start00:12:40
Source end00:13:18
Intended contentA complete answer about choosing a camera
Planned duration38 seconds before any boundary adjustment

End minus start gives duration: 13:18 minus 12:40 is 38 seconds. Entering 13:18 into a duration field requests something different. A player position, a project timeline and a camera timecode printed into the picture can also use different clocks. Record positions within the actual source file, then confirm them by playing the identifying content.

Set the beginning and end in the timeline

In a timeline editor, locate the range in the source view. Project positions match source positions only when the material has not already been shifted, trimmed or retimed. Keep corresponding sound attached to the picture while cutting.

For one retained passage, remove the material outside its boundaries from this working edit. To remove a middle mistake, split before and after it, remove that interval and bring the remaining parts together; leaving a gap produces a different result. For several retained ranges, place each range consecutively in the order written in the cut note.

Do not assume source order is always the requested output order. If you deliberately reorder material, check that the new sequence still represents the facts. The diagram uses original teaching ranges on a 30-second source; its lengths are planned arithmetic, not measured outputs.

One source illustrates a retained range, a deleted middle interval and several consecutive kept ranges.
Original teaching diagram. Source positions and output positions are different clocks.

Listen for a complete thought at both boundaries

The timestamp gets you near a place; playback tells you whether the cut works. Beginning on “because it is lighter” may omit the subject or comparison. Ending “it is not cheaper, but it is easier to carry” after “cheaper” changes its meaning. Keep necessary questions, names and conditions with the answer.

Listen across every new join, not only the outer edges. A breath, room sound or the end of a word belongs to the scene too. Keep a demonstration's action through its visible result. If a boundary moves, update both the picture and matching audio, plus the cut note. A hard join is not automatically an audio crossfade.

A local method for a known range

FFmpeg provides a documented command-line route. The following teaching commands assume a decodable, ordinary SDR source and a build with libx264 and AAC encoders. For sources with HDR or unusual pixel formats, choose an appropriate delivery workflow before applying these encoding settings.

To retain the original interview example, use:

ffmpeg -n -ss 00:12:40 -i "interview-source.mp4" -t 00:00:38 -map "0:v:0" -map "0:a:0?" -c:v libx264 -pix_fmt yuv420p -c:a aac "interview-1240-1318-v1.mp4"

The FFmpeg manual documents input seeking, output duration and stream mapping. This selects the first video and optional first audio, re-encodes the passage and refuses an existing output name through -n. Default accurate seeking during transcoding differs from stream-copy seeking; changing to -c copy is not a promise of identical boundaries. Review the exported content at its actual frame and audio timing.

Remove a middle interval and join what remains

For a source longer than 12 seconds, this example removes seconds 8–12: input one supplies the opening eight seconds, and input two supplies the material from second 12 onward. This version requires an intended first audio stream already synchronized with the picture.

ffmpeg -n -t 8 -i "source.mp4" -ss 12 -i "source.mp4" -filter_complex "[0:v:0]setpts=PTS-STARTPTS[v0];[0:a:0]asetpts=PTS-STARTPTS[a0];[1:v:0]setpts=PTS-STARTPTS[v1];[1:a:0]asetpts=PTS-STARTPTS[a1];[v0][a0][v1][a1]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" -c:v libx264 -pix_fmt yuv420p -c:a aac "middle-removed-v1.mp4"

The concat-filter documentation requires each segment to start at timestamp zero. The setpts and asetpts chains do that, while each segment's video and audio enter concat together. The retained ranges become adjacent, not a black interval with the same old running time.

For a source with no audio stream, use this complete video-only version:

ffmpeg -n -t 8 -i "source.mp4" -ss 12 -i "source.mp4" -filter_complex "[0:v:0]setpts=PTS-STARTPTS[v0];[1:v:0]setpts=PTS-STARTPTS[v1];[v0][v1]concat=n=2:v=1:a=0[v]" -map "[v]" -an -c:v libx264 -pix_fmt yuv420p "middle-removed-silent-v1.mp4"

Adding an optional ? to a final audio map does not supply a missing audio input to a filter graph. Choose the graph that matches the source.

Join several retained ranges in the chosen order

For a source at least 30 seconds long with the intended synchronized audio stream, this example retains 0–8, 12–20 and 24–30, in that order. Each -ss/-t before an -i describes that input's start and duration. Keep the same source revision for all inputs.

ffmpeg -n -t 8 -i "source.mp4" -ss 12 -t 8 -i "source.mp4" -ss 24 -t 6 -i "source.mp4" -filter_complex "[0:v:0]setpts=PTS-STARTPTS[v0];[0:a:0]asetpts=PTS-STARTPTS[a0];[1:v:0]setpts=PTS-STARTPTS[v1];[1:a:0]asetpts=PTS-STARTPTS[a1];[2:v:0]setpts=PTS-STARTPTS[v2];[2:a:0]asetpts=PTS-STARTPTS[a2];[v0][a0][v1][a1][v2][a2]concat=n=3:v=1:a=1[v][a]" -map "[v]" -map "[a]" -c:v libx264 -pix_fmt yuv420p -c:a aac "selected-ranges-v1.mp4"

The planned total is 22 seconds, subject to the actual boundaries and media timing. This is one joined output, not three separate files. To change the order, change the input-range list and keep each picture/audio pair together. These same-source examples avoid mixing different picture sizes; concat across different sources needs compatible parameters and explicit normalization where required.

Name and verify the actual exported clip

Open the saved file, confirm the selected words/actions and play every join. Compare the running time with the cut note, but do not use duration alone as proof of the right content. Concat can pad shorter audio to the segment's longest stream, so listen for an unintended pause as well as checking synchronization.

If a command fails, retain the error. A missing audio stream needs the video-only path; missing encoders need a suitable build. An out-of-range section needs corrected source positions. Use a new output name when -n reports an existing file.

Keep the source, ordered range list and final filename together. Caption cues from the whole recording need adapting to the new output clock and joins; the subtitle-delivery guide covers that handoff.

When you still need to find the passage

Manual cutting follows known ranges. Finding complete, distinct answers in a longer recording is the earlier task that CutNow's automatic selection and first cuts address. The long-video-to-shorts guide explains multiple independent video deliveries, rather than one known-range cut or a joined compilation.

Explore CutNow to choose the workflow that fits your source and intended delivery.