如何合并两个文件 [英] How to merge two files

查看:108
本文介绍了如何合并两个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将两个视频与GUI合并时(Clips =>在时间轴末尾添加源代码)它可以正常工作!

但是当我尝试使用SDK时。 ..它会抛出异常"选择了错误的音频配置文件"即使我添加相同的视频文件。

When i try to merge two videos with GUI (Clips => Add the source at the end of the timeline) it works !
But when i try to use the SDK... it throws an exception "bad audio profile selected" even if i add the same video file.

我用来添加剪辑的代码是:

the code i use to add a clip is:

MediaItem media = new MediaItem(1stFile);

media.Sources.Add(new Source(2ndFile));
$


我知道这是将视频与SDK合并的答案论坛但它对我不起作用...

MediaItem media = new MediaItem(1stFile);
media.Sources.Add(new Source(2ndFile));

I know that it was the answer of merging video with SDK on the forum but it doesn't work for me...

推荐答案

为了帮助您,请回答以下问题:< a href ="http://social.expression.microsoft.com/Forums/en-US/encoder/thread/6653223d-72c7-45dd-ba09-4f18114e9c28">
http://social.expression.microsoft .com /论坛/ en-US /编码/ thread / 6653223d-72c7-45dd-ba09-4f18114e9c28

谢谢。


这篇关于如何合并两个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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