Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a video encoded with H264, size 1.4 GB and I only need some part of the frames in the middle.

Can I use ffmpeg to extract part of the frames from the middle of the video?

share|improve this question
up vote 1 down vote accepted

Yes. The -ss switch to ffmpeg seeks to a given time. The -vframes flag records a specific number of frames.

$ ffmpeg -i myvideo.avi -ss 00:01:00 -vframes 20 myclip.avi

Should get 20 frames from 1 minute and onwards and put them in myclip.avi

If you want individual images set -vframes to 1 and save as a .png file for example.

share|improve this answer
if you place -ss before -i then it will be a whole lot faster. – romkyns Nov 11 '15 at 16:38

You must log in to answer this question.

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