[英]How to overlay audio file on .wmv video file using c#?
I want to record video and audio files using C#. 我想使用C#录制视频和音频文件。 After recording of audio + video i want to merge them.
录制音频和视频后,我想将它们合并。 There can be only one video file and 10 audio file.
只能有一个视频文件和10个音频文件。 I want this ten files to overlay on one video file.
我希望这十个文件叠加在一个视频文件上。
I am assure that i want video file in .wmv format. 我确定我想要.wmv格式的视频文件。 Can you tell me i should record audios in which format so later i can overlay those audio files on .wmv format video file?
您能告诉我我应该以哪种格式记录音频,以便以后可以将那些音频文件覆盖在.wmv格式的视频文件上吗?
Also please let me know how to overlay audio file on .wmv video file? 还请让我知道如何在.wmv视频文件上叠加音频文件?
Hope i will get prompt reply for this 希望我能对此得到及时的答复
You can use DirectShow Editing Services (DES) to do it. 您可以使用DirectShow编辑服务(DES)来完成。 DirectShowLib should provide DES support in C#.
DirectShowLib应该在C#中提供DES支持。 Using it, create a timeline with video group (1 track) and audio group (several tracks if you need to overlay/mix some audios, ie hear more than one at a time).
使用它,创建一个具有视频组(1条轨道)和音频组(如果需要叠加/混合一些音频,即一次听到多个音频)的时间线。 Place your video and audio files on the timeline in desired positions.
将视频和音频文件放在时间轴上的所需位置。 Then tell DES to create a DirectShow graph and you'll get one video and one audio output pin.
然后,告诉DES创建DirectShow图,您将获得一个视频和一个音频输出引脚。 Connect them to ASF writer to save result to WMV.
将它们连接到ASF writer,以将结果保存到WMV。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.