Krishna Garad

Krishna Garad

  • NA
  • 15.6k
  • 8.5m

How to get frame from the video

Dec 31 2010 6:20 AM
Hi forum
 I want to get the images from running video in asp.net any idea are greatly appreceated. i'm using some process like follow but it's throwing an exception as Sytem can not find file specified even though the all the path is correct.

Process ffmpeg;

    public void exec(string input, string output, string parametri)
    {
        ffmpeg = new Process();

        ffmpeg.StartInfo.Arguments = " -i " + input + (parametri != null ? " " + parametri : "") + " " + output;
        ffmpeg.StartInfo.FileName = "utils/ffmpeg.exe";
        ffmpeg.StartInfo.UseShellExecute = false;
        ffmpeg.StartInfo.RedirectStandardOutput = true;
        ffmpeg.StartInfo.RedirectStandardError = true;
        ffmpeg.StartInfo.CreateNoWindow = true;

        ffmpeg.Start();
        ffmpeg.WaitForExit();
        ffmpeg.Close();
    }


Answers (3)