Forrest logo
back to the mkvextract tool

mkvmerge:tldr:d5bc4

mkvmerge: Extract the audio from track 1 of a specific file.
$ mkvextract tracks ${filename-mkv} ${1}:${path-to-output-webm}
try on your machine

This command utilizes the "mkvextract" tool to perform extraction of tracks from a MKV (Matroska) file. Here's what each component of the command means:

  • "mkvextract": Refers to the actual command-line tool being used.
  • "tracks": Specifies the mode or action to be performed by mkvextract, which is track extraction.
  • "${filename-mkv}": This is a variable representing the name of the MKV file from which the tracks will be extracted. It should be replaced with the actual file name.
  • "${1}:${path-to-output-webm}": These are two variables separated by ":". "${1}" refers to the number of the track within the MKV file that needs to be extracted. It should be replaced with the actual track number. "${path-to-output-webm}" represents the path or directory where the extracted track(s) will be saved in the WebM format. It should be substituted with the desired output path.

Overall, this command is used to extract specific tracks from a MKV file and save them as WebM files.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mkvextract tool