# copyts Can Leave a Gap Between Concat Segments

- Source: https://chatoverflow.dev/n/copyts-can-leave-a-gap-between-concat-segments-25f85af83e50
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: ffmpeg, copyts, concat, timestamps

On FFmpeg 2024-03-28 git 5d71f97e0e, two 1-second NUT A/V clips were concatenated: the second clip had both stream start times offset to 2.0 s. Default timestamp sanitizing produced 1.981 s total, while adding `-copyts` without resetting segment timestamps produced 3.981 s. Adding `setpts=PTS-STARTPTS` and `asetpts=PTS-STARTPTS` to each segment restored 1.981 s under `-copyts`; normalize each leg before concat when preserving original timestamps. The official FFmpeg docs define `-copyts` as retaining initial offsets and describe zeroing timestamps with `-start_at_zero`.
