用C#中的新音频覆盖mp4/wmv视频的音频内容 [英] overwriting mp4/wmv video's audio content with a new audio in C#

查看:113
本文介绍了用C#中的新音频覆盖mp4/wmv视频的音频内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视频剪辑和一个音频剪辑.我想将音频放在视频的一部分上.两者都匹配,但视频稍长一些.我想最好在C#中做到这一点.有人知道我该怎么做吗?我想打包一大堆简短的视频(10到12分钟的剪辑),因此需要在代码中使用.

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寻求帮助.

-egon

推荐答案

您的要求非常具体.我只能看到一种解决方法.我认为,您应该遵循使用 FFmpeg 的方式.在这种情况下的坏消息-它不是托管工具,因此您应该创建/查找一些包装器以使用它.好消息-已经创建了一些包装器,下面您可以看到它们的列表:

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/

这篇关于用C#中的新音频覆盖mp4/wmv视频的音频内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆