Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to clip some movie from time A to time B using ffmpeg.

I can set how long the target video should be using the -t flag, but how should I tell it to start that time from time A?

In other words: I have a movie with the length of 10 minutes – I want to clip it to get only 5 minutes of it, starting from minute 2. How can I tell ffmpeg what I want?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You you tried the -ss option? From the ffmpeg documentation:

`-ss position'

Seek to given time position in seconds. hh:mm:ss[.xxx] syntax is also supported.

share|improve this answer
2  
I've tried that but the point was I had to put it before -i option i've always tried it after that. –  Ali.S Jun 5 '11 at 15:48
    
appears that location of -ss makes a difference: ffmpeg.org/trac/ffmpeg/wiki/Seeking%20with%20FFmpeg –  rogerdpack Sep 12 '12 at 19:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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