.mpg file to .dat file conversion

hi dear friends,could you please, help me with the following problem to be solved in C++ :
I have an .mpg file (with glint video), which is needed to be converted into .dat file (reading all the frames consequently in order, there is appx. 1790 frames of the .mpg file) and store every frame as an array element of .dat array type. So, that every element (.dat) could be easily called and processed whenever needed.
I'll be very grateful to You if you provide me with such a C++ code.
You could write your own code for this, but it'd be much easier to use an existing tool. ffmpeg will happily dump every frame into an image for you, and you can then bind those images into a single giant file, if you wish.

.dat "format" does not exist; it is a catch-all term for an unspecified data format. I'm guessing you mean you want a big string of numbers, each one representing the colour (or rather each triplet representing some colour via RGB) of one pixel of one frame?
Topic archived. No new replies allowed.