Disable Default Audio Track in MKV using FFmpeg
This article provides a quick and direct guide on how to disable the “default” track flag on all audio streams in an MKV container using FFmpeg. You will learn the exact command-line syntax required to modify stream dispositions without re-encoding your files, ensuring the process is fast and preserves original quality.
To disable the default flag on all audio streams, you need to use
FFmpeg’s -disposition option. By setting the disposition of
the audio streams to 0 (or specifically
-default), you instruct FFmpeg to remove the default
flag.
The Command
Run the following command in your terminal or command prompt:
ffmpeg -i input.mkv -c copy -disposition:a 0 output.mkvCommand Breakdown
-i input.mkv: Specifies the path to your source MKV file.-c copy: Enables stream copying mode. This copies the video, audio, and subtitle streams directly without re-encoding them, making the process nearly instantaneous.-disposition:a 0: Targets all audio streams (a) and sets their disposition to0. In FFmpeg, setting the disposition to0clears all flags, including thedefaultandforcedflags.output.mkv: The name of the newly created MKV file with the modified flags.
Disabling Only the “Default” Flag
If you want to remove the default flag but keep other
disposition flags (such as forced or
hearing_impaired), use the negative flag syntax:
ffmpeg -i input.mkv -c copy -disposition:a -default output.mkvBy prepending a minus sign (-) to the flag name
(-default), FFmpeg will specifically strip only the default
flag from all audio streams while leaving other stream metadata
untouched.