Egon
Egon

Reputation: 3848

overwriting mp4/wmv video's audio content with a new audio in C#

I have a video clip and an audio clip. I want to place the audio over a section of the video. The starting point of both match, but the video is slightly longer. I want to do this in C# preferably. Does anybody know how I can do this ? I want to batch up a huge bunch of short ( 10 -12 min clips), and so need this to be in code.

Thnx for the help.

-egon

Upvotes: 2

Views: 1846

Answers (1)

apros
apros

Reputation: 2878

Your requirements is a quite specific. And I can see only a one way how to solve it. In my opinion, you should follow in the way of using FFmpeg. The bad news in this case - it is a not a managed tool, so you should create/find some wrapper for using it. And good news - some wrappers already was created and bellow you can see a list of them:

1) http://www.ffmpeg-csharp.com/

2) NET Media Handler Pro

3) http://jasonjano.wordpress.com/2010/02/09/a-simple-c-wrapper-for-ffmpeg/

Upvotes: 1

Related Questions