Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture screenshots from a video clip 50 minutes into the clip and do it fast?

Ok it seems that whenever I tell ffmpeg to take a screen cap half way though the clip (clip can be as long as 10 hours) it uses 100% of 1 cpu core and takes ages… whereas if I let it do a frame at the start it goes real quick, as if it scans though the video to get to the middle instead of just jumping to it!

Here is the code im currently using:

ffmpeg -y -itsoffset -“500"  -i “clipname.mov" -vcodec png -vframes 1 -an -f rawvideo “clipScreenshot001.png”

This can take several minutes.

These are HD videos too, 720p/1080p and allot of the time they are raw unedited clips (e.g. very long).

So I was hoping for some better software that will make screen captures from video much faster (has to be linux and scriptable).

like image 332
Mint Avatar asked Feb 02 '10 10:02

Mint


People also ask

How do you screenshot a video on PC?

Simply double-click the middle of the video's window. Press the ⊞ Win key and the PrtScn key at the same time. The ⊞ Win key is in the bottom-left side of the keyboard, while the PrtScn ("Print Screen") key is in the upper-right side of the keyboard.


1 Answers

Try to use seek (the -ss flag) instead of delaying (the -itsoffset), i.e.:

ffmpeg -y -ss 3000 -i "clipname.mov" -vframes 1 "clipScreenshot001.png"
like image 97
e.tadeu Avatar answered Sep 24 '22 20:09

e.tadeu