mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 09:29:53 -06: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.
BIN
Emby/Emby.csproj
BIN
Emby/Emby.csproj
Binary file not shown.
BIN
Emby/Plugin.cs
BIN
Emby/Plugin.cs
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Gotify/Plugin.cs
BIN
Gotify/Plugin.cs
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.
BIN
Plex/Plex.csproj
BIN
Plex/Plex.csproj
Binary file not shown.
BIN
Plex/Plugin.cs
BIN
Plex/Plugin.cs
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