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 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

1 Answer 1

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

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.