C# ffmpeg截图
1//截图
2 string kk = "ffmpeg -i \"" + avsPath + "\" -vframes 1 -r 1 -ac 1 -ab 2 -f image2 -t 0.001 \"" + fileout + "\\" + filename + ".jpg\"\n";
3 System.Diagnostics.Process myProc1 = new System.Diagnostics.Process();
4 myProc1.StartInfo.FileName = "cmd.exe";
5 myProc1.StartInfo.Arguments = @" /c " + kk;
6 myProc1.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
7 myProc1.Start();
2 string kk = "ffmpeg -i \"" + avsPath + "\" -vframes 1 -r 1 -ac 1 -ab 2 -f image2 -t 0.001 \"" + fileout + "\\" + filename + ".jpg\"\n";
3 System.Diagnostics.Process myProc1 = new System.Diagnostics.Process();
4 myProc1.StartInfo.FileName = "cmd.exe";
5 myProc1.StartInfo.Arguments = @" /c " + kk;
6 myProc1.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
7 myProc1.Start();