wilai
January 23rd, 2003, 03:54 AM
I am looking for a way to add user-defined information to each MPEG1/MPEG2 group of frames and/or individual frames. Anyone has tried that before, or knows of information sources (such as detailed description of MPEG file format) where I can get the answer ?
Simon666
January 23rd, 2003, 06:38 AM
Originally posted by wilai
I am looking for a way to add user-defined information to each MPEG1/MPEG2 group of frames and/or individual frames. Anyone has tried that before, or knows of information sources (such as detailed description of MPEG file format) where I can get the answer ?
Is this only temporarily for just a couple of files or do you wish to develop a tool for this? I had to do a similar thing once. I used:
- VirtualDub (free) to convert the MPEG movie to an uncompressed AVI
- Irfanview (free I think, but if not there are plenty of free tools for this task) to extract all frames of the uncompressed AVI to bitmaps.
- Wrote my own program to process a series of bitmaps (using CBitmap, LoadImage, CDC and stuff) in a file and copy the resultant bitmaps as a new series in another directory
- Put all the frames together in an uncompressed AVI using Bmp2Avi, also free downloadable on the net.
- Compress it again using VirtualDub
If it is just for a couple of files it is probably less work than writing a tool to do all of that at once.