Ejemplo n.º 1
0
 void IFFmpegLogRepository.Remove(IFFmpegLogEntry Entry)
 {
     if (Entry is FFmpegLogItem logItem)
     {
         Remove(logItem);
     }
 }
        public static Process StartFFmpeg(string Arguments, string FileName, out IFFmpegLogEntry FFmpegLog)
        {
            var process = new Process
            {
                StartInfo =
                {
                    FileName              = FFmpegExePath,
                    Arguments             = Arguments,
                    UseShellExecute       = false,
                    CreateNoWindow        = true,
                    RedirectStandardError = true,
                    RedirectStandardInput = true
                },
                EnableRaisingEvents = true
            };

            //var log = ServiceProvider.Get<IFFmpegLogRepository>();

            //var logItem = log.CreateNew(Path.GetFileName(FileName), Arguments);
            FFmpegLog = null;

            //process.ErrorDataReceived += (S, E) => logItem.Write(E.Data);

            process.Start();

            process.BeginErrorReadLine();

            return(process);
        }
Ejemplo n.º 3
0
 public void Remove(IFFmpegLogEntry Entry)
 {
 }