FG
💻 Software

Using FFMpeg to cut a video into 2 minute clips

Fresh7 days ago
Mar 15, 202614809 views
Confidence Score0%
0%

Problem

I have a video lasting 10 minutes which I want to cut into five 2-minute segments. I can use ffmpeg to cut a video to a specific time with the following: Do I first have to obtain the length of the video and then repeat the above command, or is there a simpler way to do this?

Error Output

ffmpeg -sameq -ss [start_seconds] -t [duration_seconds] -i [input_file] [outputfile]

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Using FFMpeg to cut a video into 2 minute clips

Low Risk

...will create files along the lines of 'out01.mp4 'out02.mp4', each one being 120 seconds in duration (except the last one, which may be shorter). Note that it has to split up the file on a keyframe, so you won't get 100% accurate splitting. See th…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment