ffmpeg -ss 00:02:00 -i input.mp4 -t 60 -c:v libx264 -crf 23 -c:a aac output.mp4

Category: Media & Conversion

ffmpeg -ss 00:02:00 -i input.mp4 -t 60 -c:v libx264 -crf 23 -c:a aac output.mp4

Trim a clip precisely by re-encoding

Cuts 60 seconds starting 2 minutes in, re-encoding with libx264 and AAC so the cut is frame-accurate. -ss before -i seeks first, then only the requested span is decoded. Slower than -c copy trimming but exact.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.