CONTENTS

Home
Projects
More Projects
Resume
Computer Skills
Music
Links To Friends
Pictures
About Mike

Random Link
Kunzip



AVI Video

Related pages on www.mikekohn.net: SSE Image Processing, GIF, TIFF, BMP/RLE, JPEG, AVI, kunzip, gif2avi, Ringtone Tools, yuv2rgb

Read AVI - AVI Header Dumper

The AVI file format is an audio/video file "container" that can hold raw video, mjpeg, xvid, divx, and many other compressed audio and video formats. This simple little program is an example how to parse AVI files and will dump the AVI headers from a file. I found this program quite useful for debugging AVI files created by programs I wrote and for figuring out what video codecs an AVI file using.

Download

readavi-2007-08-25.tar.gz (Source Code)
readavi-2007-08-25.zip (Source Code)

libkohn_avi - AVI creator

This is a tiny library I made (with zero dependencies) for creating AVI files. It basically has 3 functions:

struct kavi_t *kavi_open(char *filename, int width, int height, char *fourcc, int fps);
void kavi_add_frame(struct kavi_t *kavi, unsigned char *buffer, int len);
void kavi_close(struct kavi_t *kavi);

To use this library, simply call kavi_open() to create the avi file, kavi_add_frame() for every raw frame, and kavi_close() to finalize it all. I included a sample program called jpeg2avi which can take a series of jpeg files and create an avi using the mjpeg codec. The mjpeg code of course is just an avi file with a series of jpegs in it. To use this program, if you had a directory full of jpegs with filenames like frame000.jpeg, frame001.jpeg, frame002.jpeg, etc, simply run jpeg2avi like so:

jpeg2avi out.avi /path/to/jpegs/frame%03d.jpeg 15

This library is distributed under the LGPL license.

Download

libkohn_avi-2008-04-09.tar.gz (Source Code)
libkohn_avi-2008-04-09.zip (Windows Binaries)


Copyright 1997-2008 - Michael Kohn

Please visit my many other projects, including free J2ME Java games for Mobile phones, graphics and sound programs, chat software, and much more at http://www.mikekohn.net.

This page was designed to work with all standard HTML compatible webbrowsers including Firefox, IE, Safari, and Links.