mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 13:30:11 -06:00
FF-413 - added static functions to Video nodes
This commit is contained in:
16
VideoNodes/StaticMethods.cs
Normal file
16
VideoNodes/StaticMethods.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user