Extract All Attachments from MKV Using FFmpeg

Matroska (MKV) files often contain embedded attachments such as subtitle fonts, cover art, or lyrics. This article provides a quick and direct guide on how to extract all of these attachments from an MKV file simultaneously using a single FFmpeg command line.

To extract all embedded attachments from an MKV file at once, run the following command in your terminal or command prompt:

ffmpeg -dump_attachment:t "" -i input.mkv -f null -

Command Breakdown

Once executed, all attachments (such as .ttf, .otf, or .jpg files) will be saved directly into your current working directory.