Replace audio + sync + save all to a new video file – VLC

audiosyncvideovlc-media-player

I have a video with audio. I have an .mp3 file of the same video but in another language. I need to do two things.

  1. Replace the built-in audio with the new audio.
  2. Because the new audio is not exactly in sync,
    I need to add 900 ms delay.

I can do all of that, but my problem is that I cannot
save the result. 
I can watch the movie perfectly, but not save.

I tried to use the “Save” option, and it makes some process but the result is the same (except the file size which is much bigger).

My steps:

Open Multiple Files…
enter image description here

Play another media synchronously (extra audio file, …)
enter image description here

Then click “Convert”.

Best Answer

Save doesn't work for what you are trying. This is because audio/video tracks aren't like photos that can be modified and saved immediately. They need to be "streamed" and recorded again. This is available in VLC in the "Convert" option.

Once you save the converted file and play it again it will contain both the audio files. Go to Audio> Audio Track> Track 2 (Click on this one). Basically, VLC adds the new audio track as the Track 2 which does not play by default.

But if you want to replace the existing audio file with the new file then you can follow the following instructions instead:

  1. Install FFmpeg on your system (follow the guide How to Install FFmpeg on Windows)

  2. Open command prompt and go to the folder where video1.mp4 is saved and audio_replace.m4a (or mp3 whatever it is) is saved.

  3. Type the following command:

    ffmpeg -i "video1.mp4 " -i "audio_replace.m4a" -vcodec copy -acodec copy -map 0:0 -map 1:0 output.mp4
    

Hope this solves your problem.

Related Question