2012-10-01 18 views
1

我在c#中創建了一個窗口應用程序,它一次播放多個視頻...我使用了DirectX SDK 2010年6月...它在我的機器上工作正常,但它在客戶端機器中發出異常...機器有DirectX11安裝了,所以它不是一個問題,還有......我得到的例外是...無法在C#中的客戶機上運行我的視頻項目?

************** Exception Text ************** 
Error in the application. 
-2147220891 (VFW_E_UNSUPPORTED_STREAM) 
at Microsoft.DirectX.AudioVideoPlayback.Video.Open(String fileName, Boolean autoRun) 
at Microsoft.DirectX.AudioVideoPlayback.Video..ctor(String fileName) 
at Video_Project.FormMain.FormMain_Load(Object sender, EventArgs e) in D:\Video_Project\Video_Project\Form1.cs:line 240 
at System.Windows.Forms.Form.OnLoad(EventArgs e) 
at System.Windows.Forms.Form.OnCreateControl() 
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
at System.Windows.Forms.Control.CreateControl() 
at System.Windows.Forms.Control.WmShowWindow(Message& m) 
at System.Windows.Forms.Control.WndProc(Message& m) 
at System.Windows.Forms.ScrollableControl.WndProc(Message& m) 
at System.Windows.Forms.ContainerControl.WndProc(Message& m) 
at System.Windows.Forms.Form.WmShowWindow(Message& m) 
at System.Windows.Forms.Form.WndProc(Message& m) 
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

請任何一個可以幫助我在這.....我被困在這個一整天

+3

丟失客戶端上的編解碼器? –

+0

那麼我的客戶需要具體什麼? – Drone

+0

這取決於您的視頻文件中的流編碼。嘗試在媒體播放器中打開文件,看看它告訴你什麼。 –

回答

0
PLS

檢查機器安裝的wmp編解碼器: 轉到WMP,按alt以獲取菜單,選擇幫助 - >關於...,然後單擊技術支持信息。它將生成一份報告,其中列出了所有支持的音頻和視頻編解碼器。

在兩臺機器上都這樣做,希望這會顯示缺少的編解碼器。

相關問題