attempts to generate a valid matroska header