plugins now record codec statistic

This commit is contained in:
John Andrews
2022-06-23 21:53:33 +12:00
parent fde326eade
commit ef452083bc
32 changed files with 17 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -45,6 +45,12 @@ namespace FileFlows.MusicNodes
{
if (ReadMusicFileInfo(args, ffmpegExe, args.WorkingFile))
return 1;
var musicInfo = GetMusicInfo(args);
if (string.IsNullOrEmpty(musicInfo.Codec) == false)
args.RecordStatistic("CODEC", musicInfo.Codec);
return 0;
}
catch (Exception ex)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -69,6 +69,17 @@ namespace FileFlows.VideoNodes
args.Logger.ILog($"Video stream '{vs.Codec}' '{vs.Index}'");
}
foreach (var stream in videoInfo.VideoStreams)
{
if (string.IsNullOrEmpty(stream.Codec) == false)
args.RecordStatistic("CODEC", stream.Codec);
}
foreach (var stream in videoInfo.AudioStreams)
{
if (string.IsNullOrEmpty(stream.Codec) == false)
args.RecordStatistic("CODEC", stream.Codec);
}
foreach (var vs in videoInfo.AudioStreams)

Binary file not shown.

Binary file not shown.