3
Answers

How to get frame from the video

Krishna Garad

Krishna Garad

13y
9.9k
1
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)