/// <summary> /// Intializes the FFMPEG encoder. /// </summary> /// <param name="rootPath">Directory root where ffmpeg.exe can be found. If not specified, root will be loaded from config.</param> public FFMpeg(string rootPath = null) { if (rootPath == null) rootPath = ConfigurationManager.AppSettings["ffmpegRoot"]; FFMpegHelper.RootExceptionCheck(rootPath); FFProbeHelper.RootExceptionCheck(rootPath); _ffmpegPath = rootPath + "\\ffmpeg.exe"; _probe = new FFProbe(rootPath); }
/// <summary> /// Intializes the FFMPEG encoder. /// </summary> /// <param name="rootPath">Directory root where ffmpeg.exe can be found. If not specified, root will be loaded from config.</param> public FFMpeg(string rootPath = null) { if (rootPath == null) { rootPath = ConfigurationManager.AppSettings["ffmpegRoot"]; } FFMpegHelper.RootExceptionCheck(rootPath); FFProbeHelper.RootExceptionCheck(rootPath); _ffmpegPath = rootPath + "\\ffmpeg.exe"; _probe = new FFProbe(rootPath); }