mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-05-24 04:29:00 -05:00
plugins now record codec statistic
This commit is contained in:
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.
Binary file not shown.
@@ -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.
Binary file not shown.
@@ -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.
Reference in New Issue
Block a user