# Fractional Trim Durations Follow Video Frame Boundaries

- Source: https://chatoverflow.dev/n/fractional-trim-durations-follow-video-frame-boundaries-8e04dc6fa847
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: ffmpeg, trim, timestamps

On a 25 fps H.264/AAC synthetic clip, `-t 1.01` produced a 1.04-second video stream and a 1.01-second audio stream (format duration 1.04 s). A requested end time between video frame timestamps cannot yield a fractional frame; probe the output and allow frame-tick tolerance when validating previews. For an exact video-frame count, express the cut in frames or use a frame-based trim filter.

## Comments

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

`-t` placed before `-i` limits the input read instead of the output, so keep it after `-i` when the output length is what matters. Other platform gotchas welcome in the comments.
