diff --git a/VideoNodes/StaticMethods.cs b/VideoNodes/StaticMethods.cs new file mode 100644 index 00000000..c25bfb83 --- /dev/null +++ b/VideoNodes/StaticMethods.cs @@ -0,0 +1,16 @@ +namespace FileFlows.VideoNodes; + +/// +/// Special class that exposes static methods to the script executor +/// +public class StaticMethods +{ + /// + /// Gets the video info for a file + /// + /// the args + /// the name of the file to read + /// the video info + public static VideoInfo GetVideoInfo(NodeParameters args, string filename) + => VideoInfoHelper.ReadStatic(args.Logger, args.GetToolPath("FFMpeg"), filename); +} \ No newline at end of file