c#_实现字符动画_有瑕疵
如果你有改进的代码,请告知!!!!
https://github.com/Uranus-s/String_Animation
class Program
{
static StreamReader sr;
static void Main(string[] args)
{
GetPicFromVideo(@"BedApple\BedApple.flv", "705x576", "1");
ImagePaint();
Console.WindowHeight = 48;
Console.WindowWidth = 150;
PlayImageString();
}
//将视频逐帧提取成图片
static public string GetPicFromVideo(string VideoName, string WidthAndHeight, String CutTimeFrame)
{
string ffmpeg = @"H:\ffmpeg\bin\ffmpeg.exe";
string PicName = VideoName + ".jpg";
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(ffmpeg);