You can download executable files ffmpegfrom the official website and put them in the application launch path, and then execute them with Process.Start()and then pass arguments according to your needs.
Example: -
exe path - ffprobe.exe -hide_banner -show_format -show_streams -pretty {video_file}
private static string Execute(string exePath, string parameters)
{
string result = String.Empty;
using (Process p = new Process())
{
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = exePath;
p.StartInfo.Arguments = parameters;
p.Start();
p.WaitForExit();
result = p.StandardOutput.ReadToEnd();
}
return result;
}
source
share