mkvalidator is a command line tool to verify Matroska files for spec conformance.
Matroska is an audio/video container based on EBML. For more information on Matroska you can have a look at the Matroska specs.
You can also access the source directly from our SVN server via Subversion.