Here's the problem $ file rm-in-mkv.mkv rm-in-mkv.mkv: Matroska data
$ hd rm-in-mkv.mkv |head -n 2 00000000 1a 45 df a3 93 42 82 88 6d 61 74 72 6f 73 6b 61 |.E...B..matroska| 00000010 42 87 81 01 42 85 81 01 18 53 80 67 01 ff ff ff |B...B....S.g....| $ file video/brazil.mkv video/brazil.mkv: data $ hd video/brazil.mkv |head -n 2 00000000 1a 45 df a3 a3 42 86 81 01 42 f7 81 01 42 f2 81 |.E...B...B...B..| 00000010 04 42 f3 81 08 42 82 88 6d 61 74 72 6f 73 6b 61 |.B...B..matroska| According to http://www.matroska.org/technical/specs/index.html#EBMLBasics, Handbrake is including the EBMLVersion, EBMLReadVersion, and EBMLMaxIDLength elements before the DocType ("matroska" string), but that is legal. So the file magic needs to be more general, I believe. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

