replace audio suing FFMPEG.Core

Viewed 13

I have used FFMpegCore which is wrapper library for using ffmpeg in .net Core. it has a simple 'ReplaceAudio' method for changing audio of existing video ,but it doesn't work and nothing change in output video.

FFMpeg.ReplaceAudio(inputPath, inputAudioPath, outputPath);

does it have any trick or requirement ?

1 Answers

using Mute function before using ReplaceAudio will fix the problem.

FFMpeg.Mute(videoFile, mutedVideo);
FFMpeg.ReplaceAudio(mutedVideo, audioFile, videoFile, true);
Related