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()); } }
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(); } }
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)); }
private void OnLogReceived(object o, FFMpegLogEventArgs e) { //Use for debugging, if needed }
private static void logs(object sender, FFMpegLogEventArgs e) { //Console.WriteLine(e.Data); }