How to clip a movie from specified start time in ffmpeg?

8

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?

Ali1S232

Posted 2011-06-05T14:43:28.943

Reputation: 439

Answers

7

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.

Mat

Posted 2011-06-05T14:43:28.943

Reputation: 6 193

4I've tried that but the point was I had to put it before -i option i've always tried it after that. – Ali1S232 – 2011-06-05T15:48:56.773

appears that location of -ss makes a difference: http://ffmpeg.org/trac/ffmpeg/wiki/Seeking%20with%20FFmpeg

– rogerdpack – 2012-09-12T19:18:50.883

0

You could use dmMediaConverter with Split option, it will do it quickly without re-encoding. It is a ffmpeg GUI. http://dmsimpleapps.blogspot.com/2014/04/dmmediaconverter.html enter image description here

mdalacu

Posted 2011-06-05T14:43:28.943

Reputation: 121