Copy the audio tracks n, m etc. The numbers are track IDs which can be obtained with the --identify switch. They're not simply the track numbers (see section track IDs). Default: copy all audio tracks.
Instead of track IDs you can also provide ISO 639-2 language codes. This will only work for source files that provide language tags for their tracks.
Default: copy all tracks of this kind.
If the IDs are prefixed with ! then the meaning is reversed: copy all tracks of this kind but the ones listed after the !.
C:\>"D:\ThaiCreate\mkvtoolnix\mkvmerge.exe" -o Y:\test.mkv -d -a hi "Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv"
mkvmerge v51.0.0 ('I Wish') 64-bit
Error: '-a' is not a valid IETF BCP 47/RFC 5646 language tag in '-d -a'. Additional information from the parser: The value does not adhere to the general structure of IETF BCP 47/RFC 5646 language tags.
C:\>"D:\ThaiCreate\mkvtoolnix\mkvmerge.exe" -o Y:\test.mkv -d -a hin "Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv"
mkvmerge v51.0.0 ('I Wish') 64-bit
Error: '-a' is not a valid IETF BCP 47/RFC 5646 language tag in '-d -a'. Additional information from the parser: The value does not adhere to the general structure of IETF BCP 47/RFC 5646 language tags.
C:\>"D:\ThaiCreate\mkvtoolnix\mkvmerge.exe" -o Y:\test.mkv -d --audio-tracks hi "Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv"
mkvmerge v51.0.0 ('I Wish') 64-bit
Error: '--audio-tracks' is not a valid IETF BCP 47/RFC 5646 language tag in '-d --audio-tracks'. Additional information from the parser: The value does not adhere to the general structure of IETF BCP 47/RFC 5646 language tags.
C:\>"D:\ThaiCreate\mkvtoolnix\mkvmerge.exe" -o Y:\test.mkv -d --audio-tracks hin "Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv"
mkvmerge v51.0.0 ('I Wish') 64-bit
Error: '--audio-tracks' is not a valid IETF BCP 47/RFC 5646 language tag in '-d --audio-tracks'. Additional information from the parser: The value does not adhere to the general structure of IETF BCP 47/RFC 5646 language tags.
C:\>"D:\ThaiCreate\mkvtoolnix\mkvmerge.exe" -o "Y:\test.mkv" -d -a hin "Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv"
mkvmerge v51.0.0 ('I Wish') 64-bit
Error: '-a' is not a valid IETF BCP 47/RFC 5646 language tag in '-d -a'. Additional information from the parser: The value does not adhere to the general structure of IETF BCP 47/RFC 5646 language tags.
C:\>"D:\ThaiCreate\mkvtoolnix\mkvmerge.exe" -o Y:\test.mkv -d 0 -a hi "Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv"
mkvmerge v51.0.0 ('I Wish') 64-bit
'Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv': Using the demultiplexer for the format 'Matroska'.
'Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv' track 0: Using the output module for the format 'AVC/H.264'.
'Z:\TCMOV\Monster.Hunter.2020.720p.HDCAM.Hindi.Dub.Dual-Audio.x264-1XBET..mkv' track 1: Using the output module for the format 'AAC'.
The file 'Y:\test.mkv' has been opened for writing.
Progress: 100%
The cue entries (the index) are being written...
Multiplexing took 57 seconds.
C:\>"D:\ThaiCreate\mkvtoolnix\mkvmerge.exe" -F json -i Y:\test.mkv
{
"attachments": [],
"chapters": [],
"container": {
"properties": {
"container_type": 17,
"date_local": "2020-12-22T10:37:18+07:00",
"date_utc": "2020-12-22T03:37:18Z",
"duration": 5499332000000,
"is_providing_timestamps": true,
"muxing_application": "libebml v1.4.0 + libmatroska v1.6.2",
"segment_uid": "383a30f8f2487f74593a8c6f64d7185c",
"writing_application": "mkvmerge v51.0.0 ('I Wish') 64-bit"
},
"recognized": true,
"supported": true,
"type": "Matroska"
},
"errors": [],
"file_name": "Y:\\test.mkv",
"global_tags": [
{
"num_entries": 1
}
],
"identification_format_version": 13,
"track_tags": [],
"tracks": [
{
"codec": "MPEG-4p10/AVC/H.264",
"id": 0,
"properties": {
"codec_id": "V_MPEG4/ISO/AVC",
"codec_private_data": "01640020ffe1002a67640020acd1c05004bf9f014202020280000003008000001e71300007270e0000e4e1d261c07c60c47801000668e9bb2cc00bfdf8f800",
"codec_private_length": 63,
"default_duration": 33333333,
"default_track": true,
"display_dimensions": "1280x580",
"display_unit": 0,
"enabled_track": true,
"forced_track": false,
"language": "und",
"language_ietf": "und",
"minimum_timestamp": 33000000,
"number": 1,
"packetizer": "mpeg4_p10_video",
"pixel_dimensions": "1280x580",
"uid": 1
},
"type": "video"
},
{
"codec": "AAC",
"id": 1,
"properties": {
"audio_channels": 2,
"audio_sampling_frequency": 48000,
"codec_id": "A_AAC",
"codec_private_data": "1190",
"codec_private_length": 2,
"default_duration": 21333333,
"default_track": true,
"enabled_track": true,
"forced_track": false,
"language": "hin",
"language_ietf": "hi",
"minimum_timestamp": 0,
"number": 2,
"uid": 2
},
"type": "audio"
}
],
"warnings": []
}
C:\>