mkclean is a command line tool to clean and optimize Matroska files that have already been muxed.