Answering machine question:
Is ffmpeg server installation required or just exe enough?
ffmpeg.exe will be enough, installation is not required.
Below is a screenshot of the captureTime for the video specified by the videoFilename variable and saves it in the imageFilename path.
Process ffmpeg = new Process(); ffmpeg.EnableRaisingEvents = true; ffmpeg.StartInfo = new ProcessStartInfo { FileName = this.ffmpegPath, Arguments = string.Format( "-i \"{0}\" -an -y -s 320x240 -ss {1} -vframes 1 -f image2 \"{2}\"", this.videoFilename, DateTime.MinValue.Add(this.captureTime).ToString("HH:mm:ss:ff", CultureInfo.InvariantCulture), this.imageFilename ), WorkingDirectory = this.workingDirectory, UseShellExecute = false, RedirectStandardError = true, RedirectStandardOutput = true, WindowStyle = ProcessWindowStyle.Hidden }; ffmpeg.Start(); ffmpeg.WaitForExit(this.timeout);
source share