Isn't that much simpler than Matroska? Originally committed as revision 13263 to svn://svn.ffmpeg.org/ffmpeg/trunk