Video Thumb Creator (1 Viewer)

bmt

Portal Member
February 17, 2010
23
0
Home Country
Germany Germany
Hi everyone,

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:

video_thumbs.JPG


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.
 

Users who are viewing this thread

Top Bottom