Cut media files using ffmpeg

From Notes to self
Revision as of 21:31, 11 October 2024 by Verbovet (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
$ ffmpeg -ss hh:mm:ss -i infile -t hh:mm:ss -codec copy -avoid_negative_ts make_zero outfile
-ss position
Seek to given time position
-t duration
Restrict the video to the duration

The order -ss ... -i ... -t ... is important.