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();
}


Suthish NairRank #92 · 22.8K reputationPosted Dec 31, 2010, 5:35 AM EST
using System.Diagnostics;
using System.IO;
public void exec(string input, string output, string parametri) { try { Process ffmpeg = new Process(); ffmpeg.StartInfo.FileName = Path.GetDirectoryName(Application.ExecutablePath) + @"\utils\ffmpeg.exe"; ffmpeg.StartInfo.Arguments = " -i " + input + (parametri != null ? " " + parametri : "") + " " + output; ffmpeg.StartInfo.UseShellExecute = false; ffmpeg.StartInfo.RedirectStandardOutput = false; ffmpeg.StartInfo.RedirectStandardError = true; ffmpeg.StartInfo.CreateNoWindow = false;private void Form1_Load(object sender, EventArgs e) { exec("G://1.mp4", "G://1.flv", "-b 64k"); }Suthish NairRank #92 · 22.8K reputationPosted Dec 31, 2010, 5:43 AM EST
Krishna GaradRank #191 · 12.8K reputationPosted Dec 31, 2010, 7:40 PM EST