mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-06 04:39:31 -06:00
added support for variables in nodes, and crated Renamer in basic nodes which can use variables to rename a file
This commit is contained in:
@@ -33,7 +33,15 @@ namespace FileFlows.VideoNodes
|
||||
bool success = Encoder.Encode(args.WorkingFile, outputFile, ffmpegParameters);
|
||||
args.Logger.ILog("Encoding succesful: " + success);
|
||||
if (success)
|
||||
{
|
||||
args.SetWorkingFile(outputFile);
|
||||
|
||||
// get the new video info
|
||||
var videoInfo = new VideoInfoHelper(ffmpegExe, args.Logger).Read(outputFile);
|
||||
var newVariables = new Dictionary<string, object>();
|
||||
SetVideoInfo(args, videoInfo, newVariables);
|
||||
args.UpdateVariables(newVariables);
|
||||
}
|
||||
Encoder.AtTime -= AtTimeEvent;
|
||||
Encoder = null;
|
||||
return success;
|
||||
|
||||
Reference in New Issue
Block a user