mEncoder = new WMEncoder();                // Retrieve the source group collection.
                IWMEncSourceGroupCollection SrcGrpColl = mEncoder.SourceGroupCollection;                // Add a source group to the collection.
                IWMEncSourceGroup SrcGrp = SrcGrpColl.Add("SG_1");                // Add a video and audio source to the source group.
                IWMEncAudioSource SrcAud = (WMEncoderLib.IWMEncAudioSource)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_AUDIO);
                SrcAud.SetInput(txtInputAudio.Text, "", "");
                IWMEncVideoSource2 SrcVid = (IWMEncVideoSource2)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);
                SrcVid.SetInput(txtInput.Text, "", "");                IWMEncFile File = mEncoder.File;
                File.LocalFileName = Path.Combine(txtOutput.Text, "outFile.wmv");
                //装载配置文件
                WMEncProfile2 Pro = new WMEncProfile2();
                string path=null;
                path = Path.Combine(Directory.GetCurrentDirectory(), "format.prx");
                Pro.LoadFromFile(path);
                SrcGrp.set_Profile(Pro);
                //开始转码
                mEncoder.PrepareToEncode(true);
                mEncoder.Start();以上代码 在音频视频源为同一个文件时 如:音频为a.mpg 视频也是a.mpg 转码正常。
但是如果 设定 SrvAud.SetInput("a.wav","","") 视频源 SrcVid.SetInput("a.mpg", "", "");时就会报0x80004005错误。另外我目前拿到的源文件是音频视频分离的1个视频文件a.avi是没声音的,再加上2个音频文件a1.wav和a2.wav.这种情况应该怎么搞才对 WMEncoderSDK 能处理这种情况吗?