views:

209

answers:

1

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

+1  A: 

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

ffmpeg -y -ss 3000 -i "clipname.mov" -vcodec png -vframes 1 -an -f rawvideo "clipScreenshot001.png"

e.tadeu
huh, I thought I had tried that, guess not. It now makes a screenshot in under a second which would take about 5 minutes before, THANK YOU!To be honest I didn't think anyone would figure this question out, but Im one happy guy now that it is (and my CPU thanks you too :))
Mint
Cool! You and your CPU are welcome :p
e.tadeu