How to Add an External Audio Track for HandBrake
Keep the original soundtrack or replace it with a dub. Choose the container, select the right tracks, and verify playback.
HandBrake 1.11.2 can select only the audio tracks in the source title you open. To add a separate WAV or M4A, put it in a new MKV with your video, then open that file in HandBrake. If the picture is ready to deliver, use MKVToolNix or FFmpeg to copy the video stream and add the new soundtrack.
Decide whether the original soundtrack should remain selectable. To add a language or commentary track, keep both. To replace a soundtrack, include the external one and leave out the old one. If narration needs to play over music or dialogue, mix the two in an editor first, then bring the finished audio into the video as a track.
Choose the workflow for your output
| What you have | What to use | What happens to the picture |
|---|---|---|
| Both tracks are already in the video you want to convert. | Open the video in HandBrake and select the tracks on the Audio tab. | HandBrake encodes new video. |
| The new soundtrack is a separate file and MKV works for your destination. | Combine the inputs in MKVToolNix and verify the saved MKV. | The video stream is copied. |
| The new soundtrack is separate and the destination requires MP4. | Map the video and the audio you want with FFmpeg. | Use stream copy for compatible video. Encode audio separately when the destination needs it. |
| You need to resize, compress or filter the video as well. | Open the combined file in HandBrake, then encode the required output. | HandBrake encodes new video. |
The HandBrake project tracks direct import as an open external audio feature request. The HandBrake feature overview explains that an encode converts the picture even when you set the audio to passthrough. I'd keep the original file until you've heard the new soundtrack in the app or device that needs it.
Add or replace audio in an MKV
- Open Multiplexer in MKVToolNix GUI and add the source video. Add the external soundtrack as a second source file. If another video contains the track, add that video and leave only its desired audio track checked.
- In the track list, leave the main video selected. To add a track, leave the original audio selected too. To replace it, uncheck the old audio. Keep any subtitle tracks you still need.
- Set the new audio track's language and, if useful, a name like Spanish dub or Director commentary. Give the output a new filename and choose Start multiplexing.

Open the resulting MKV and switch to the new soundtrack. If the file contains exactly the tracks you wanted and works in your destination, keep it as the final output. To convert the picture in HandBrake, open this file as your source. The mkvmerge manual explains which tracks the multiplexer copies.
Copy the same tracks from the command line
These examples assume original.mkv contains the picture and its original audio, and dub.m4a has one compatible audio track. The first command adds the dub. The second omits the original audio with --no-audio before the input it applies to.
mkvmerge -o "both-audio.mkv" "original.mkv" "dub.m4a"
mkvmerge -o "dub-only.mkv" --no-audio "original.mkv" "dub.m4a"
When the donor is a second video or has more than one audio track, inspect it with mkvmerge -i. Check the filename next to each track in the Multiplexer list. This matters when both inputs call their audio English or show the same codec.
Keep an MP4 video stream and add a new soundtrack
Use FFmpeg stream copy if the destination accepts the video as it is. Here original.mp4 has one picture stream and one audio stream. dub.m4a has a single aligned AAC track. Both soundtracks use formats the MP4 player accepts.
ffmpeg -n -i "original.mp4" -i "dub.m4a" -map 0:V:0 -map 0:a:0 -map 1:a:0 -c copy "both-audio.mp4"
ffmpeg -n -i "original.mp4" -i "dub.m4a" -map 0:V:0 -map 1:a:0 -c copy "dub-only.mp4"
-map 0:V:0 selects the first video stream in the first input, excluding attached cover art. -map 0:a:0 selects its first audio stream and -map 1:a:0 selects the second input's first audio. You can use another MP4 as the second input if its first audio track is the one you need. The second command retains only that soundtrack. The -n flag protects an existing output file.
With explicit stream mapping, the examples carry only the indicated video and audio streams. If your file includes subtitles or other audio you need to keep, inspect it with ffprobe -hide_banner -show_streams "original.mp4" and map those tracks explicitly. Check that the output has the expected tracks and chapters before you send it.
When the picture is compatible and the new WAV track needs AAC, use FFmpeg's native AAC encoder for that track. The command maps the original soundtrack first and the WAV second. -c copy keeps the video and first audio stream, then -c:a:1 aac sets the codec for the second output audio stream.
ffmpeg -n -i "original.mp4" -i "dub.wav" -map 0:V:0 -map 0:a:0 -map 1:a:0 -c copy -c:a:1 aac "both-audio-aac.mp4"
To replace the original with the WAV, leave out -map 0:a:0 and use -c:a:0 aac. The new soundtrack is then the first and only output audio stream.
Select both tracks after reopening the merged file
- Open the new MKV in HandBrake and choose the output preset and container for your destination.
- Open Audio. On Windows 1.11.2, choose Tracks > Add All Remaining Tracks if you want every source audio track. For a more selective output, add a row and use its Source dropdown to choose the track.
- Review the rows one at a time. If you're keeping both soundtracks, confirm the rows point to different source tracks. If you want only one, remove the other row. Review the codec for each intended track before encoding.

If only one row appears after opening an MKV with two soundtracks, look at the preset's audio selection rules. A rule can select just the first track or limit automatic selection to matching languages. Verify the new soundtrack plays in the merged source, then check the dropdown and add the missing track explicitly. Two rows with the same entry in Source are two outputs of the same recording. Use the HandBrake audio settings guide to choose an encoder, mixdown or compatible passthrough for each row.
Play the added track and check its timing
Open the finished file in the player or editor you need. In VLC desktop, use Audio > Audio Track to switch to the new soundtrack. Listen briefly on every track you intended to keep, then check a visible sound cue near the beginning, middle and end on the new one. If a device chooses the wrong soundtrack by default, check its language setting and the track's name, language and default flag. MKVToolNix documents the default track flag as a player selection hint.

When both files came from the same cut and the new track is early or late by a steady amount, measure the offset before applying MKVToolNix's Delay (in ms) setting. Advancing the track can cut packets that shift before zero, so listen to the opening and ending after remuxing. If the timing difference grows, or the new track jumps after a missing scene, confirm the two cuts match. An editor can align and trim the audio against the picture before you make the final file.

![A framed image of a train with the caption [Train whistle]](https://storage.ghost.io/c/8e/77/8e778fda-def0-4fcb-ab82-ef7dd5ea524f/content/images/size/w320/2026/11/hbg-cover-series-closed-captions-20261124.webp)
