I have 2 files. Both are the same length (in seconds):
- a video file (H.264, .mov)
- an audio file (PCM, .wav)
How do I use the NAudio .NET library in my C# application to overwrite the audio of file #1 with the audio from file #2? I want to write the final result to disk as a new video file.
I believe this is possible using the Media Foundation capabilities of NAudio 1.7, but I can't figure out how to modify the audio stream of a video file and re-save the video.