Thanks, Luca and Ben. About the .h file: where should I put it--libavformat or libavcodec? Is there some common include directory? I don't think it belongs in libavutil.h either. [about whitespace terminated lines] fixed [capital enums] fixed Nicholas -- http://ntung.com