In case you were wondering (the help is not available on-line), both YouTube and Vimeo take Matroska (.mkv) files as input. I’ve tested with HE-AAC+ audio and H.264 video at 720p.
The drag-and-drop interface for YouTube, however, doesn’t work for some reason: one needs to select the file for upload.