0

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

1 Answer 1

0

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .