protected void Page_Load(object sender, EventArgs e) 3 { 4 string ffmpeg = Server.MapPath("~/ffmpeg/ffmpeg.exe"); 5 Process p = new Process(); 6 p.StartInfo.FileName = ffmpeg; 7 p.StartInfo.Arguments = 8 " -i F:\\1.avi -y -f image2 -ss 2 -vframes 1 320×240 -s F:\\1.jpg"; 9 try10 {11 p.Start();12 }13 catch (Exception ex)14 {15 throw ex;16 }17 finally18 {19 p.Close();20 }21 }我已經用過ffmpeg轉換轉換電影,,可是這ffmpeg怎么也截不出圖來。。。。。。。。。我把代碼拿出來像上面那樣試試。 也是不行.... 為什么呢。。Agument出錯在哪里? 有哪位兄臺做過的。參考一下
- 3 回答
- 0 關注
- 1001 瀏覽
添加回答
舉報
0/150
提交
取消