示例#1
0
 private void Convert_Log(object sender, FFMpegLogEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Data))
     {
         Console.WriteLine(e.Data);
     }
 }
 private void FfMpeg_LogReceived(object sender, FFMpegLogEventArgs e)
 {
     try
     {
         log = e.Data.ToString();
         File.AppendAllText($@"Files\log.txt", string.Format("ffmpeg log: {0}" + Environment.NewLine + Environment.NewLine + Environment.NewLine, e.Data.ToString()));
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
示例#3
0
        private void FfMpeg_LogReceived(object sender, FFMpegLogEventArgs e)
        {
            Match match = FindDurationRegex.Match(e.Data);

            if (match.Success)
            {
                _duration = int.Parse(match.Groups[1].Value) * 3600 +
                            int.Parse(match.Groups[2].Value) * 60 +
                            int.Parse(match.Groups[3].Value) +
                            int.Parse(match.Groups[4].Value) / 100.0;

                _cancellationTokenSource.Cancel();
            }
        }
示例#4
0
 private void FfMpeg_LogReceived(object sender, FFMpegLogEventArgs e)
 {
     EncodingLog.AppendLine(e.Data);
 }
 private void FfMpeg_LogReceived(object sender, FFMpegLogEventArgs e)
 {
     Debug.WriteLine(string.Format("ffmpeg: {0}", e.Data));
 }
示例#6
0
 private void OnLogReceived(object o, FFMpegLogEventArgs e)
 {
     //Use for debugging, if needed
 }
示例#7
0
 private static void logs(object sender, FFMpegLogEventArgs e)
 {
     //Console.WriteLine(e.Data);
 }