public static FFmpegCommand CreateResourceCommand(this CommandFactory factory) { factory.AddCommandAsResource(FFmpegCommand.Create(factory)); return(factory.CommandList[factory.CommandList.Count - 1]); }