Формат используемый для лучшего качества видео
AVI (Audio-Video Interleaved) - это расширение огромного количества видеофайлов, но не является форматом или кодеком. Это контейнер, разработанный Microsoft, в котором могут храниться потоки 4-х типов - видео, аудио, текст и midi.
В этот контейнер может входить видео любого формата от mpeg1 до mpeg-4, звуки разных форматов, возможно любое сочетание кодеков. Чтоб определить содержимое данного контейнера, нужно воспользоваться одной из многочисленных программ от мощной Adobe Premiere до простенькой VideoToolBox.
MKV - (Матрешка или Matroska) - тоже контейнер, который может содержать видео, аудио, субтитры, меню и пр. Имеет открытый код, пока не очень распространен, но очень перспективен.