I have a video 20 muminute long time, I want to cut the first 5 minutes and 5 minutes of video finally. I have to use commands like, can help me?

I user commant here: ffmpeg -ss [start_seconds] -i [input_file] -t [duration_seconds] [outputfile] . But I think it is not right.

illustrating images


To cut out first 5 and last 5 minutes, use

ffmpeg -ss 300 -t 609 -i input -c copy -avoid_negative_ts make_zero output

Depending on location of keyframes, the cutpoints won't be precise. If you skip the -c copy, it will transcode, which will be a precise cut.

  • I only want video between and can only use a command not ? thanks – M Join Jul 16 '16 at 13:30
  • Sorry, read the Q too quickly. Corrected. – Gyan Jul 16 '16 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.