Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to extract all attachments in a mkv file via mkvextract with batch?

Otherwise I need to give the name of all attachments one by one.

share|improve this question

If you run the following: mkvextract attachments file.mkv 1:1.ttf 2:2.ttf 3:3.ttf 4:4.ttf 5:5.ttf 6:6.ttf ... etc Then mkvextract will extract attachments by id until it can't find an attachment. It will exit when it fails to find an attachment, so the batch will progress. Disadvantage here is that you lost the attachment filenames, but without grepping around some mkvinfo output, this is the only way I know of to extract all the attachments.

share|improve this answer
Actually, I just learned that leaving the outname empty preserves the original filename, so you should just run mkvextract attachments file.mkv 1: 2: 3: 4: 5: 6:. – Suchipi Dec 27 '12 at 0:08
Scratch that- should be mkvextract attachments 1 2 3 4 5 6 – Suchipi Dec 27 '12 at 0:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.