Browser-based video tool · mute, replace or mix the soundtrack → MP4 or WebM

Replace Audio in Video

Swap a video's sound for a new track, lay music under the original audio, or strip the sound out. Set the new track's volume, offset and fades, and loop or trim it to the video's length. The video is played and re-recorded on your own computer; nothing is uploaded.

Video and new audio

The whole video is used, up to 30 minutes.

Drop a video here or click to choose

.mp4, .webm, .mov, .m4v

What to do with the sound

Soundtrack

The original sound is dropped and the new track takes its place.

Drop the new audio here or click to choose

.mp3, .wav, .m4a, .ogg, .flac

Levels, timing and output

A positive offset starts the track that many seconds into the video; a negative one starts it that far into the track, so the music begins at the first frame.

Keep this tab in front while rendering; recording pauses while it is hidden and resumes when you return.

Video with new audio

The result plays here once it is ready

Choose a video to start.

Replace Audio in Video

Operator: Abdulla Al Fahad. How tools are built and checked

A 90-second screen recording, a 40-second music loop and one question: where does the music start, how many times does it play and when does it fade? The answer is worked out before you render: the track plays three times, the last pass is cut at 90 seconds, and a two-second fade-out ends exactly there. Pick a video and an audio file, choose Replace or Mix under, and the browser plays the video once while recording the picture together with the new sound.

Key features

  • A positive offset delays the track; a negative one starts it that far into the track so the music begins on the first frame
  • Looping that repeats the usable part of the track, or a single pass followed by silence
  • Fades that are clamped to half of the audible span so they never overlap
  • A summary of when the track is audible, how often it plays and whether it runs short or is cut

Offset, looping, fades and mixing levels

The video can be any file the browser can play (MP4, WebM, MOV, M4V) up to 30 minutes; the whole video is used, so trim it first if you need part of it. The new audio can be any audio file the browser can decode, up to an hour. Output is MP4 or WebM, chosen by the same rules as the other recorders on this site, with a resolution limit of original, 1080, 720 or 480 on the shorter side.

Three modes: Remove gives a file with no audio track at all; Replace drops the original sound and plays the new track; Mix under keeps the original sound at a volume of 0 to 150% (35% by default) and adds the track at 0 to 150%. Offset runs from -600 to +600 seconds, and fade in and fade out from 0 to 10 seconds.

Common use cases

  • Putting a licensed 40-second music loop under a 90-second product walkthrough that was recorded without sound
  • Replacing a noisy microphone track with a clean 3-minute voice-over recorded separately
  • Lowering the original audio of a 2-minute family clip to 20% and adding a song at 100% on top
  • Stripping the audio from a 25-second clip before posting it where sound is unwanted
  • Skipping a 10-second silent intro in a song by setting the offset to -10 so the music starts on the first frame

How to use this tool

  1. Drop the video and, unless you are removing the sound, the audio file.
  2. Pick Remove, Replace or Mix under, then set the track volume, the original volume for a mix, the offset and the fades.
  3. Read the summary line: it states from when to when the track is audible and what happens at the end.
  4. Choose resolution, quality and file type, then click Render with new audio.

Example

90 s video, 40 s music track, fade-out 2 s

Offset 0, loop on
Offset +5 s, loop on
Offset -10 s, loop off

Timing worked out by the code

Offset 0:      audible 0 to 90 s, 3 passes; at 35% volume the gain is 0.35 until 88 s, then falls to 0 at 90 s
Offset +5 s:   audible 5 to 90 s, 3 passes (85 s of room / 40 s)
Offset -10 s:  starts 10 s into the track, audible 0 to 30 s, runs short, then 60 s of silence

Tips for best results

  • For narration over footage that has its own sound, Mix under with the original at 20% to 35% and the voice at 100% keeps the scene's ambience without competing.
  • Use a negative offset to skip a quiet intro in a song instead of editing the song.
  • Give a mixed track a fade-out of 2 to 3 seconds; an abrupt stop at the last frame is more noticeable than the music itself.
  • To use a voice-over that starts a few seconds into the video, set a positive offset and turn looping off.
  • A negative offset also moves the loop point. The loop runs from the offset to the end of the track, so with -10 s on a 40-second song every pass plays seconds 10 to 40 and the skipped intro never returns; the usable part is then 30 seconds, and a 90-second video needs exactly 3 passes instead of the 2.25 the full track would take.

Common pitfalls

A looping track jumps from its end to its start with no crossfade, which can click if the track does not end on a clean beat. Choose a track made to loop, or set the video length near a whole number of passes.

The track is started when playback begins, so it can be a frame or two off from a particular moment in the picture; do not rely on it for lip-sync.

The new file is recorded while the video plays, so a 5-minute clip needs 5 minutes, and the clock stops while the tab is hidden.

Offsets past the end of either file are clamped rather than refused. A positive offset longer than the video puts the start at the last frame, so the track is never heard. A negative offset longer than the track starts 0.05 seconds before its end, and with looping on that 50 ms sliver repeats for the whole video: -60 s on a 40-second track under a 90-second clip loops it 1,800 times, which sounds like a buzz. Check that the pass count in the summary is a small number before rendering.

Common errors and how to fix them

Render with new audio is greyed out in Replace or Mix mode.
No audio file has been chosen, or it could not be decoded. Choose another file or switch to Remove, which needs none.

Best practices

  • Read the summary line before rendering. It gives how many times the track plays and whether it runs short, which saves a wasted real-time render.

Frequently asked questions

Does Remove keep a silent audio track?

No. In Remove mode the recorder is given no audio at all, so the file has only a video track. Some players show that as 'no audio'.

What if the music is longer than the video?

It is cut at the last frame, with the fade-out ending there, and the summary line notes that the video ends before the track does.

Why does the output file differ in size from the original?

The video is recorded again at a bitrate chosen from its pixel count and your quality setting, so it can be larger or smaller than the source.