@kamassito
At least the easiest Way to save VideoFrames to Image
Files - with a little Help of FFmpeg's 'ffmpeg.exe' CommandLine Tool - is here:
http://forum.lazarus.freepascal.org/index.php/topic,43411.0.html-> GoTo "[Grab]+[-i "grabbed.mkv" -map v frame%08d.png] will
save the File's VideoFrames to PNG-ImageFiles.".
In Your Case, write
-i "videofile.avi" -map v frame%08d.bmp into the first Line of 'RunFFmpeg' and click [Grab].
If You want to obtain the Video
Frames themselves and furthermore as fast as possible, there is no easy Way.
You have to open/read/close the VideoFile by Yourself.
The Dranger-Tutorial explains very well how to do it with C and FFmpeg-Libraries:
http://dranger.com/ffmpeg/.
For how to read out FrameData, see
'Tutorial 01: Making Screencaps' -> GoTo: "the SaveFrame function" -> "Write pixel data".
For how to assign FrameData to BMP, see
'Tutorial 04: Spawning Threads' -> GoTo "copy the frame into the overlay" -> "/* point pict at the queue */.
For how to read out FrameData with FPC, see e.g.
attached 'mpegpas02.zip' -> 'mpegpas02\PacketRead5.pas' -> procedure 'SaveFrame()' -> "Write pixel data".
For how to assign FrameData to BMP with FPC, see here
http://forum.lazarus.freepascal.org/index.php/topic,26666.msg196377.html#msg196377-> Dnload attached 'DrangerTutorial08.c2FPC.lpr.zip' and GoTo "//* point pict at the queue */".