Files
FileFlowsPlugins/VideoNodes/StaticMethods.cs
2024-02-25 07:22:10 +13:00

16 lines
575 B
C#

namespace FileFlows.VideoNodes;
/// <summary>
/// Special class that exposes static methods to the script executor
/// </summary>
public class StaticMethods
{
/// <summary>
/// Gets the video info for a file
/// </summary>
/// <param name="args">the args</param>
/// <param name="filename">the name of the file to read</param>
/// <returns>the video info</returns>
public static VideoInfo GetVideoInfo(NodeParameters args, string filename)
=> VideoInfoHelper.ReadStatic(args.Logger, args.GetToolPath("FFMpeg"), filename).ValueOrDefault;
}