[UWP]如何混合视频和音频文件? [英] [UWP]How to mix Video and Audio file?
问题描述
有没有人有关于如何将视频文件(.mp4)与音频文件(.wav)混合的示例代码或一些指示?我认为这将涉及Media Foundation。
您好daniel_ca2,
您可以使用
Windows.Media.Audio 命名空间,您可以从 了解更多信息; 音频图 文档,它显示了如何使用
Windows.Media.Audio 命名空间中的API创建用于音频路由,混合和处理场景的音频图。
此外,这里是
AudioGraph UWP示例,您可以从类似的
Scenar io4_Submix 页面。您可以在选择文件时添加.mp4和.wav文件类型过滤器。filePicker.FileTypeFilter.Add(" .wav");
filePicker.FileTypeFilter.Add(" .mp4");祝你好运,
Breeze
Does anyone have sample code or some pointers on how to mix a video file (.mp4) with an audio file (.wav)? I assume this would involve Media Foundation.
Hi daniel_ca2,
You can use the Windows.Media.Audio namespace, you can learn more form the Audio graphs document, it shows how to use the APIs in the Windows.Media.Audio namespace to create audio graphs for audio routing, mixing, and processing scenarios.
Besides, here is the AudioGraph UWP sample, you can get a code sample from the similar Scenario4_Submix page. You can add the .mp4 and .wav file type filter when picker a file.
filePicker.FileTypeFilter.Add(".wav"); filePicker.FileTypeFilter.Add(".mp4");Best regards,
Breeze
这篇关于[UWP]如何混合视频和音频文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!