Your references to libavcodec and ffmpeg suggest you are using linux. mplayer can usually detect all the technical info - a clunky solution, however, although this might help prefiltering what module to lookup the rest with.
-M
Free your mind
Comment on Re: Multimedia metadata extraction - how to have it all?