Extracting every frame from video file as image in OS X
I'd do it with FFmpeg, which you can get through Homebrew, or alternatively ffmpegX.
In the first case, install Homebrew and then run brew install ffmpeg
. This will require Xcode and building from source, which might be a bit of an overhead for your simple requirement.
In the second case, install the .app
, and use the ffmpeg
version bundled with it – however be advised that this version is from 2006, and therefore might not work with all input files.
/Applications/ffmpegX.app/Contents/Resources/ffmpeg
It worked for a h.264/MP4 clip for me.
Regardless, use FFmpeg to output each frame individually:
ffmpeg -i /path/to/video.mkv /path/to/output-%04d.jpg
You can also use png
instead of jpg
for lossless results, and change the number in %04d
if you need more digits when the file is longer.