Hi everyone,
I am trying to generate Video Thumbs for my Plugin:
But it doesn't work. Am I doing it wrong?
I also noticed that creating a thumb for the tv-plugin doesn't always work:
Has someone an idea what could be wrong?
Thx in advance!
/***EDIT****/
I could solve it on this way:
But i think this is a more slower, uncomfortable way.
I am trying to generate Video Thumbs for my Plugin:
Code:
VideoThumbCreator.CreateVideoThumb(@"C:\video.ts", @"C:\thumb.jpg", true, false);
But it doesn't work. Am I doing it wrong?
I also noticed that creating a thumb for the tv-plugin doesn't always work:
Has someone an idea what could be wrong?
Thx in advance!
/***EDIT****/
I could solve it on this way:
Code:
private void generateThumb()
{
Process proc = new Process();
proc.StartInfo.FileName = Environment.SystemDirectory + @"\cmd.exe";
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.WorkingDirectory = @"C:\";
proc.StartInfo.FileName = @"ffmpeg.exe";
proc.StartInfo.Arguments = "-i video.ts -vframes 1 -ss 00:00:15 -s 160x120 thumb.jpg";
proc.Start();
proc.WaitForExit();
proc.Close();
}
But i think this is a more slower, uncomfortable way.