//運(yùn)行FFMpeg的視頻解碼, public void RunFFMpeg(string strCmd) { //創(chuàng)建并啟動(dòng)一個(gè)新進(jìn)程 Process p = new Process(); //設(shè)置進(jìn)程啟動(dòng)信息屬性StartInfo,這是ProcessStartInfo類(lèi),包括了一些屬性和方法: p.StartInfo.FileName = "ffmpeg.exe"; //程序名 p.StartInfo.Arguments = " -i " + strCmd; //執(zhí)行參數(shù) p.Start(); }
//運(yùn)行Cmd.exe執(zhí)行Dos 命令,并返回執(zhí)行結(jié)果 public string RunCmd(string command) { //創(chuàng)建并啟動(dòng)一個(gè)對(duì)進(jìn)程 Process p = new Process();