I am trying edit out a two minute clip from a long movie.

This is the command I'm using:

ffmpeg -ss 01:05:16 -t 120 -i input.avi -vcodec copy -an clips/output.avi

I thought that 120 would be in seconds, giving me a two minute clip. But the clip I get is over 45 minutes long. It seems to be as long as from the start time to the end of the film.

Why is this not working and what command should I use to get a two minute clip?

  • ffmpeg is sensitive to the order in which you put the different options. Try changing that around (as Mulvya) suggests. Commented Dec 19, 2012 at 23:13

2 Answers 2


I found that the time after -t has to be in the format 00:00:00. So, for a two minute clip, the command is:

ffmpeg -i input.avi -sameq -ss 01:05:16 -t 00:02:00 clips/output.avi
  • 1
    This is a perfectly fine solution, except you should (almost) never use -sameq - it doesn't mean 'same quality'. There are a few cases where it may be useful, but it is very much an advances option (so if you aren't sure that you need to use it, don't use it).
    – evilsoup
    Commented Jan 15, 2013 at 19:24
  • And it was removed in recent ffmpeg builds - ffmpeg.org/… Commented Mar 30, 2015 at 7:17

Try putting-t 120 after -an

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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