This is just a collection of software and other useful things for
people in the lab.
Avi writing example code
Note: since AVI - Audio Video Interleave - format is not a complete
format, in the sense that it describes the way to INTERLEAVE chunks of
audio and video data BUT DOES NOT say what the coding format of those
chunks is (e.g., MPEG, ZIPPED, UNCOMPRESSED), it really doesn't make
complete sense to say "how do I write out an AVI file?" because you
also need a CODEC to create the chunks.
Directshow has a way of trying to find the correct codec, this is complicated
to use when it should be simple!!
Anyway, the example code here uses the older VFW (NOT DRIECTSHOW) interface
to the avi file writer.
When you run - you should see a pop up window appearing at some stage
which asks you for the compression format!
pnms to AVI
Reads in as pgms or ppms one per frame.
You need:
pnmstoavi.c