{
 "id": "fd84e517-589c-4f59-a4e9-a813ff5016db",
 "revision": 0,
 "last_node_id": 33,
 "last_link_id": 102,
 "nodes": [
  {
   "id": 1,
   "type": "LoadVideo",
   "pos": [
    100,
    130
   ],
   "size": [
    282.798828125,
    82
   ],
   "flags": {},
   "order": 0,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "file",
     "name": "file",
     "type": "COMBO",
     "widget": {
      "name": "file"
     },
     "link": null
    },
    {
     "localized_name": "choose file to upload",
     "name": "upload",
     "type": "IMAGEUPLOAD",
     "widget": {
      "name": "upload"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      52
     ]
    }
   ],
   "title": "Source (the original clip)",
   "properties": {
    "Node name for S&R": "LoadVideo"
   },
   "widgets_values": [
    "source.mp4",
    "image"
   ],
   "widgets_values_named": {
    "file": "source.mp4",
    "upload": "image"
   }
  },
  {
   "id": 2,
   "type": "GetVideoComponents",
   "pos": [
    482.798828125,
    130
   ],
   "size": [
    193.530859375,
    106
   ],
   "flags": {},
   "order": 2,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 52
    }
   ],
   "outputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "links": [
      54,
      58,
      62
     ]
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "type": "AUDIO",
     "links": null
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "links": [
      88,
      101
     ]
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "type": "COMBO",
     "links": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "type": "COMBO",
     "links": null
    }
   ],
   "properties": {
    "Node name for S&R": "GetVideoComponents"
   }
  },
  {
   "id": 3,
   "type": "LoadVideo",
   "pos": [
    100,
    342
   ],
   "size": [
    282.798828125,
    82
   ],
   "flags": {},
   "order": 1,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "file",
     "name": "file",
     "type": "COMBO",
     "widget": {
      "name": "file"
     },
     "link": null
    },
    {
     "localized_name": "choose file to upload",
     "name": "upload",
     "type": "IMAGEUPLOAD",
     "widget": {
      "name": "upload"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      53
     ]
    }
   ],
   "title": "Final (the edited clip, same length and size)",
   "properties": {
    "Node name for S&R": "LoadVideo"
   },
   "widgets_values": [
    "final.mp4",
    "image"
   ],
   "widgets_values_named": {
    "file": "final.mp4",
    "upload": "image"
   }
  },
  {
   "id": 4,
   "type": "GetVideoComponents",
   "pos": [
    482.798828125,
    366
   ],
   "size": [
    193.530859375,
    106
   ],
   "flags": {},
   "order": 3,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 53
    }
   ],
   "outputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "links": [
      57
     ]
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "type": "AUDIO",
     "links": null
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "links": null
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "type": "COMBO",
     "links": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "type": "COMBO",
     "links": null
    }
   ],
   "properties": {
    "Node name for S&R": "GetVideoComponents"
   }
  },
  {
   "id": 5,
   "type": "GetImageSize",
   "pos": [
    776.3296875,
    130
   ],
   "size": [
    140,
    66
   ],
   "flags": {},
   "order": 4,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 54
    }
   ],
   "outputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "links": [
      55,
      90,
      93
     ]
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "links": [
      56,
      91,
      94
     ]
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "links": null
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 6,
   "type": "ImageScale",
   "pos": [
    1016.3296875,
    130
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 6,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 57
    },
    {
     "localized_name": "upscale_method",
     "name": "upscale_method",
     "type": "COMBO",
     "widget": {
      "name": "upscale_method"
     },
     "link": null
    },
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": 55
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": 56
    },
    {
     "localized_name": "crop",
     "name": "crop",
     "type": "COMBO",
     "widget": {
      "name": "crop"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      59
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageScale"
   },
   "widgets_values": [
    "bilinear",
    512,
    512,
    "disabled"
   ],
   "widgets_values_named": {
    "upscale_method": "bilinear",
    "width": 512,
    "height": 512,
    "crop": "disabled"
   }
  },
  {
   "id": 7,
   "type": "GetImageSize",
   "pos": [
    776.3296875,
    326
   ],
   "size": [
    140,
    66
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 58
    }
   ],
   "outputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "links": null
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "links": null
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "links": [
      60
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 8,
   "type": "ImageFromBatch",
   "pos": [
    1386.3296875,
    130
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 59
    },
    {
     "localized_name": "batch_index",
     "name": "batch_index",
     "type": "INT",
     "widget": {
      "name": "batch_index"
     },
     "link": null
    },
    {
     "localized_name": "length",
     "name": "length",
     "type": "INT",
     "widget": {
      "name": "length"
     },
     "link": 60
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      61,
      64,
      67,
      97
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageFromBatch"
   },
   "widgets_values": [
    0,
    1
   ],
   "widgets_values_named": {
    "batch_index": 0,
    "length": 1
   }
  },
  {
   "id": 9,
   "type": "GetImageSize",
   "pos": [
    1756.3296875,
    130
   ],
   "size": [
    140,
    66
   ],
   "flags": {},
   "order": 9,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 61
    }
   ],
   "outputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "links": null
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "links": null
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "links": [
      63
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 10,
   "type": "ImageFromBatch",
   "pos": [
    1996.3296875,
    130
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 10,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 62
    },
    {
     "localized_name": "batch_index",
     "name": "batch_index",
     "type": "INT",
     "widget": {
      "name": "batch_index"
     },
     "link": null
    },
    {
     "localized_name": "length",
     "name": "length",
     "type": "INT",
     "widget": {
      "name": "length"
     },
     "link": 63
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      65,
      66
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageFromBatch"
   },
   "widgets_values": [
    0,
    1
   ],
   "widgets_values_named": {
    "batch_index": 0,
    "length": 1
   }
  },
  {
   "id": 11,
   "type": "ImageBlend",
   "pos": [
    2366.3296875,
    130
   ],
   "size": [
    270,
    102
   ],
   "flags": {},
   "order": 11,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image1",
     "name": "image1",
     "type": "IMAGE",
     "link": 64
    },
    {
     "localized_name": "image2",
     "name": "image2",
     "type": "IMAGE",
     "link": 65
    },
    {
     "localized_name": "blend_factor",
     "name": "blend_factor",
     "type": "FLOAT",
     "widget": {
      "name": "blend_factor"
     },
     "link": null
    },
    {
     "localized_name": "blend_mode",
     "name": "blend_mode",
     "type": "COMBO",
     "widget": {
      "name": "blend_mode"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      68
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageBlend"
   },
   "widgets_values": [
    1,
    "difference"
   ],
   "widgets_values_named": {
    "blend_factor": 1,
    "blend_mode": "difference"
   }
  },
  {
   "id": 12,
   "type": "ImageBlend",
   "pos": [
    2366.3296875,
    362
   ],
   "size": [
    270,
    102
   ],
   "flags": {},
   "order": 12,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image1",
     "name": "image1",
     "type": "IMAGE",
     "link": 66
    },
    {
     "localized_name": "image2",
     "name": "image2",
     "type": "IMAGE",
     "link": 67
    },
    {
     "localized_name": "blend_factor",
     "name": "blend_factor",
     "type": "FLOAT",
     "widget": {
      "name": "blend_factor"
     },
     "link": null
    },
    {
     "localized_name": "blend_mode",
     "name": "blend_mode",
     "type": "COMBO",
     "widget": {
      "name": "blend_mode"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      69
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageBlend"
   },
   "widgets_values": [
    1,
    "difference"
   ],
   "widgets_values_named": {
    "blend_factor": 1,
    "blend_mode": "difference"
   }
  },
  {
   "id": 13,
   "type": "ImageBlend",
   "pos": [
    2736.3296875,
    130
   ],
   "size": [
    270,
    102
   ],
   "flags": {},
   "order": 13,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image1",
     "name": "image1",
     "type": "IMAGE",
     "link": 68
    },
    {
     "localized_name": "image2",
     "name": "image2",
     "type": "IMAGE",
     "link": 69
    },
    {
     "localized_name": "blend_factor",
     "name": "blend_factor",
     "type": "FLOAT",
     "widget": {
      "name": "blend_factor"
     },
     "link": null
    },
    {
     "localized_name": "blend_mode",
     "name": "blend_mode",
     "type": "COMBO",
     "widget": {
      "name": "blend_mode"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      70,
      72,
      73,
      77,
      80
     ]
    }
   ],
   "title": "Change from the source (|final - source|)",
   "properties": {
    "Node name for S&R": "ImageBlend"
   },
   "widgets_values": [
    1,
    "screen"
   ],
   "widgets_values_named": {
    "blend_factor": 1,
    "blend_mode": "screen"
   }
  },
  {
   "id": 14,
   "type": "GetImageSize",
   "pos": [
    3106.3296875,
    130
   ],
   "size": [
    140,
    66
   ],
   "flags": {},
   "order": 14,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 70
    }
   ],
   "outputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "links": null
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "links": null
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "links": [
      71,
      92
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 15,
   "type": "ComfyMathExpression",
   "pos": [
    3476.3296875,
    130
   ],
   "size": [
    400,
    200
   ],
   "flags": {},
   "order": 16,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "a",
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 71
    },
    {
     "localized_name": "b",
     "name": "values.b",
     "shape": 7,
     "type": "FLOAT,INT,BOOLEAN",
     "link": null
    },
    {
     "localized_name": "expression",
     "name": "expression",
     "type": "STRING",
     "widget": {
      "name": "expression"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "FLOAT",
     "name": "FLOAT",
     "type": "FLOAT",
     "links": null
    },
    {
     "localized_name": "INT",
     "name": "INT",
     "type": "INT",
     "links": [
      74
     ]
    },
    {
     "localized_name": "BOOL",
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": null
    }
   ],
   "title": "frames - 1",
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "a - 1"
   ],
   "widgets_values_named": {
    "expression": "a - 1"
   }
  },
  {
   "id": 16,
   "type": "ImageFromBatch",
   "pos": [
    3106.3296875,
    326
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 15,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 72
    },
    {
     "localized_name": "batch_index",
     "name": "batch_index",
     "type": "INT",
     "widget": {
      "name": "batch_index"
     },
     "link": null
    },
    {
     "localized_name": "length",
     "name": "length",
     "type": "INT",
     "widget": {
      "name": "length"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      75
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageFromBatch"
   },
   "widgets_values": [
    0,
    1
   ],
   "widgets_values_named": {
    "batch_index": 0,
    "length": 1
   }
  },
  {
   "id": 17,
   "type": "ImageFromBatch",
   "pos": [
    3976.3296875,
    130
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 18,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 73
    },
    {
     "localized_name": "batch_index",
     "name": "batch_index",
     "type": "INT",
     "widget": {
      "name": "batch_index"
     },
     "link": null
    },
    {
     "localized_name": "length",
     "name": "length",
     "type": "INT",
     "widget": {
      "name": "length"
     },
     "link": 74
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      76
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageFromBatch"
   },
   "widgets_values": [
    0,
    1
   ],
   "widgets_values_named": {
    "batch_index": 0,
    "length": 1
   }
  },
  {
   "id": 18,
   "type": "ImageBatch",
   "pos": [
    4346.3296875,
    130
   ],
   "size": [
    234.61484375,
    46
   ],
   "flags": {},
   "order": 19,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image1",
     "name": "image1",
     "type": "IMAGE",
     "link": 75
    },
    {
     "localized_name": "image2",
     "name": "image2",
     "type": "IMAGE",
     "link": 76
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      78,
      79
     ]
    }
   ],
   "title": "Previous frame's change",
   "properties": {
    "Node name for S&R": "ImageBatch"
   }
  },
  {
   "id": 19,
   "type": "ImageBlend",
   "pos": [
    4680.944531249999,
    130
   ],
   "size": [
    270,
    102
   ],
   "flags": {},
   "order": 20,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image1",
     "name": "image1",
     "type": "IMAGE",
     "link": 77
    },
    {
     "localized_name": "image2",
     "name": "image2",
     "type": "IMAGE",
     "link": 78
    },
    {
     "localized_name": "blend_factor",
     "name": "blend_factor",
     "type": "FLOAT",
     "widget": {
      "name": "blend_factor"
     },
     "link": null
    },
    {
     "localized_name": "blend_mode",
     "name": "blend_mode",
     "type": "COMBO",
     "widget": {
      "name": "blend_mode"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      81
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageBlend"
   },
   "widgets_values": [
    1,
    "difference"
   ],
   "widgets_values_named": {
    "blend_factor": 1,
    "blend_mode": "difference"
   }
  },
  {
   "id": 20,
   "type": "ImageBlend",
   "pos": [
    4680.944531249999,
    362
   ],
   "size": [
    270,
    102
   ],
   "flags": {},
   "order": 21,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image1",
     "name": "image1",
     "type": "IMAGE",
     "link": 79
    },
    {
     "localized_name": "image2",
     "name": "image2",
     "type": "IMAGE",
     "link": 80
    },
    {
     "localized_name": "blend_factor",
     "name": "blend_factor",
     "type": "FLOAT",
     "widget": {
      "name": "blend_factor"
     },
     "link": null
    },
    {
     "localized_name": "blend_mode",
     "name": "blend_mode",
     "type": "COMBO",
     "widget": {
      "name": "blend_mode"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      82
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageBlend"
   },
   "widgets_values": [
    1,
    "difference"
   ],
   "widgets_values_named": {
    "blend_factor": 1,
    "blend_mode": "difference"
   }
  },
  {
   "id": 21,
   "type": "ImageBlend",
   "pos": [
    5050.944531249999,
    130
   ],
   "size": [
    270,
    102
   ],
   "flags": {},
   "order": 22,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image1",
     "name": "image1",
     "type": "IMAGE",
     "link": 81
    },
    {
     "localized_name": "image2",
     "name": "image2",
     "type": "IMAGE",
     "link": 82
    },
    {
     "localized_name": "blend_factor",
     "name": "blend_factor",
     "type": "FLOAT",
     "widget": {
      "name": "blend_factor"
     },
     "link": null
    },
    {
     "localized_name": "blend_mode",
     "name": "blend_mode",
     "type": "COMBO",
     "widget": {
      "name": "blend_mode"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      83
     ]
    }
   ],
   "title": "Flicker = how much the change jumps from the previous frame",
   "properties": {
    "Node name for S&R": "ImageBlend"
   },
   "widgets_values": [
    1,
    "screen"
   ],
   "widgets_values_named": {
    "blend_factor": 1,
    "blend_mode": "screen"
   }
  },
  {
   "id": 22,
   "type": "ImageBlur",
   "pos": [
    5420.944531249999,
    130
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 23,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 83
    },
    {
     "localized_name": "blur_radius",
     "name": "blur_radius",
     "type": "INT",
     "widget": {
      "name": "blur_radius"
     },
     "link": null
    },
    {
     "localized_name": "sigma",
     "name": "sigma",
     "type": "FLOAT",
     "widget": {
      "name": "sigma"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      84
     ]
    }
   ],
   "title": "Spread (so patches read as areas)",
   "properties": {
    "Node name for S&R": "ImageBlur"
   },
   "widgets_values": [
    8,
    4
   ],
   "widgets_values_named": {
    "blur_radius": 8,
    "sigma": 4
   }
  },
  {
   "id": 23,
   "type": "ImageToMask",
   "pos": [
    5790.944531249999,
    130
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 24,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 84
    },
    {
     "localized_name": "channel",
     "name": "channel",
     "type": "COMBO",
     "widget": {
      "name": "channel"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      85
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageToMask"
   },
   "widgets_values": [
    "red"
   ],
   "widgets_values_named": {
    "channel": "red"
   }
  },
  {
   "id": 24,
   "type": "ThresholdMask",
   "pos": [
    6160.944531249999,
    130
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 25,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "mask",
     "name": "mask",
     "type": "MASK",
     "link": 85
    },
    {
     "localized_name": "value",
     "name": "value",
     "type": "FLOAT",
     "widget": {
      "name": "value"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      86,
      95
     ]
    }
   ],
   "title": "Flicker threshold (lower = more sensitive)",
   "properties": {
    "Node name for S&R": "ThresholdMask"
   },
   "widgets_values": [
    0.08
   ],
   "widgets_values_named": {
    "value": 0.08
   }
  },
  {
   "id": 25,
   "type": "MaskToImage",
   "pos": [
    6530.944531249999,
    130
   ],
   "size": [
    193.2779296875,
    26
   ],
   "flags": {},
   "order": 26,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "mask",
     "name": "mask",
     "type": "MASK",
     "link": 86
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      87
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "MaskToImage"
   }
  },
  {
   "id": 26,
   "type": "CreateVideo",
   "pos": [
    6900.944531249999,
    130
   ],
   "size": [
    270,
    150
   ],
   "flags": {},
   "order": 28,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "link": 87
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "shape": 7,
     "type": "AUDIO",
     "link": null
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "widget": {
      "name": "fps"
     },
     "link": 88
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "bit_depth"
     },
     "link": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "color_space"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      89
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "CreateVideo"
   },
   "widgets_values": [
    30,
    "auto",
    "sRGB",
    "none"
   ],
   "widgets_values_named": {
    "fps": 30,
    "bit_depth": "auto",
    "color_space": "sRGB",
    "codec": "none"
   }
  },
  {
   "id": 27,
   "type": "SaveVideo",
   "pos": [
    7272.590624999999,
    130
   ],
   "size": [
    270,
    154
   ],
   "flags": {},
   "order": 30,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 89
    },
    {
     "localized_name": "filename_prefix",
     "name": "filename_prefix",
     "type": "STRING",
     "widget": {
      "name": "filename_prefix"
     },
     "link": null
    },
    {
     "localized_name": "format",
     "name": "format",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "format.codec",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec"
     },
     "link": null
    },
    {
     "localized_name": "encoding",
     "name": "format.codec.encoding",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec.encoding"
     },
     "link": null
    },
    {
     "localized_name": "crf",
     "name": "format.codec.encoding.crf",
     "type": "FLOAT",
     "widget": {
      "name": "format.codec.encoding.crf"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "links": null
    }
   ],
   "title": "Flicker mask (white = flicker)",
   "properties": {},
   "widgets_values": [
    "core/flicker-heat",
    "mp4",
    "h264",
    "re-encode",
    16,
    "auto"
   ],
   "widgets_values_named": {
    "filename_prefix": "core/flicker-heat",
    "format": "mp4",
    "format.codec": "h264",
    "format.codec.encoding": "re-encode",
    "format.codec.encoding.crf": 16,
    "codec": "auto"
   }
  },
  {
   "id": 28,
   "type": "EmptyImage",
   "pos": [
    3476.3296875,
    460
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 17,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": 90
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": 91
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "widget": {
      "name": "batch_size"
     },
     "link": 92
    },
    {
     "localized_name": "color",
     "name": "color",
     "type": "INT",
     "widget": {
      "name": "color"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      98
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "EmptyImage"
   },
   "widgets_values": [
    512,
    512,
    1,
    16719904
   ],
   "widgets_values_named": {
    "width": 512,
    "height": 512,
    "batch_size": 1,
    "color": 16719904
   }
  },
  {
   "id": 29,
   "type": "SolidMask",
   "pos": [
    1016.3296875,
    390
   ],
   "size": [
    270,
    106
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "value",
     "name": "value",
     "type": "FLOAT",
     "widget": {
      "name": "value"
     },
     "link": null
    },
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": 93
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": 94
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      96
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "SolidMask"
   },
   "widgets_values": [
    0.6,
    512,
    512
   ],
   "widgets_values_named": {
    "value": 0.6,
    "width": 512,
    "height": 512
   }
  },
  {
   "id": 30,
   "type": "MaskComposite",
   "pos": [
    6530.944531249999,
    286
   ],
   "size": [
    270,
    126
   ],
   "flags": {},
   "order": 27,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "destination",
     "name": "destination",
     "type": "MASK",
     "link": 95
    },
    {
     "localized_name": "source",
     "name": "source",
     "type": "MASK",
     "link": 96
    },
    {
     "localized_name": "x",
     "name": "x",
     "type": "INT",
     "widget": {
      "name": "x"
     },
     "link": null
    },
    {
     "localized_name": "y",
     "name": "y",
     "type": "INT",
     "widget": {
      "name": "y"
     },
     "link": null
    },
    {
     "localized_name": "operation",
     "name": "operation",
     "type": "COMBO",
     "widget": {
      "name": "operation"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      99
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "MaskComposite"
   },
   "widgets_values": [
    0,
    0,
    "multiply"
   ],
   "widgets_values_named": {
    "x": 0,
    "y": 0,
    "operation": "multiply"
   }
  },
  {
   "id": 31,
   "type": "ImageCompositeMasked",
   "pos": [
    6900.944531249999,
    410
   ],
   "size": [
    271.64609375,
    146
   ],
   "flags": {},
   "order": 29,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "destination",
     "name": "destination",
     "type": "IMAGE",
     "link": 97
    },
    {
     "localized_name": "source",
     "name": "source",
     "type": "IMAGE",
     "link": 98
    },
    {
     "localized_name": "mask",
     "name": "mask",
     "shape": 7,
     "type": "MASK",
     "link": 99
    },
    {
     "localized_name": "x",
     "name": "x",
     "type": "INT",
     "widget": {
      "name": "x"
     },
     "link": null
    },
    {
     "localized_name": "y",
     "name": "y",
     "type": "INT",
     "widget": {
      "name": "y"
     },
     "link": null
    },
    {
     "localized_name": "resize_source",
     "name": "resize_source",
     "type": "BOOLEAN",
     "widget": {
      "name": "resize_source"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      100
     ]
    }
   ],
   "title": "Flicker painted red over the final",
   "properties": {
    "Node name for S&R": "ImageCompositeMasked"
   },
   "widgets_values": [
    0,
    0,
    false
   ],
   "widgets_values_named": {
    "x": 0,
    "y": 0,
    "resize_source": false
   }
  },
  {
   "id": 32,
   "type": "CreateVideo",
   "pos": [
    7272.590624999999,
    414
   ],
   "size": [
    270,
    150
   ],
   "flags": {},
   "order": 31,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "link": 100
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "shape": 7,
     "type": "AUDIO",
     "link": null
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "widget": {
      "name": "fps"
     },
     "link": 101
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "bit_depth"
     },
     "link": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "color_space"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      102
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "CreateVideo"
   },
   "widgets_values": [
    30,
    "auto",
    "sRGB",
    "none"
   ],
   "widgets_values_named": {
    "fps": 30,
    "bit_depth": "auto",
    "color_space": "sRGB",
    "codec": "none"
   }
  },
  {
   "id": 33,
   "type": "SaveVideo",
   "pos": [
    7642.590624999999,
    130
   ],
   "size": [
    270,
    154
   ],
   "flags": {},
   "order": 32,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 102
    },
    {
     "localized_name": "filename_prefix",
     "name": "filename_prefix",
     "type": "STRING",
     "widget": {
      "name": "filename_prefix"
     },
     "link": null
    },
    {
     "localized_name": "format",
     "name": "format",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "format.codec",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec"
     },
     "link": null
    },
    {
     "localized_name": "encoding",
     "name": "format.codec.encoding",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec.encoding"
     },
     "link": null
    },
    {
     "localized_name": "crf",
     "name": "format.codec.encoding.crf",
     "type": "FLOAT",
     "widget": {
      "name": "format.codec.encoding.crf"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "links": null
    }
   ],
   "title": "Check by eye: red = flicker",
   "properties": {},
   "widgets_values": [
    "core/flicker-overlay",
    "mp4",
    "h264",
    "re-encode",
    16,
    "auto"
   ],
   "widgets_values_named": {
    "filename_prefix": "core/flicker-overlay",
    "format": "mp4",
    "format.codec": "h264",
    "format.codec.encoding": "re-encode",
    "format.codec.encoding.crf": 16,
    "codec": "auto"
   }
  }
 ],
 "links": [
  [
   52,
   1,
   0,
   2,
   0,
   "VIDEO"
  ],
  [
   53,
   3,
   0,
   4,
   0,
   "VIDEO"
  ],
  [
   54,
   2,
   0,
   5,
   0,
   "IMAGE"
  ],
  [
   55,
   5,
   0,
   6,
   2,
   "INT"
  ],
  [
   56,
   5,
   1,
   6,
   3,
   "INT"
  ],
  [
   57,
   4,
   0,
   6,
   0,
   "IMAGE"
  ],
  [
   58,
   2,
   0,
   7,
   0,
   "IMAGE"
  ],
  [
   59,
   6,
   0,
   8,
   0,
   "IMAGE"
  ],
  [
   60,
   7,
   2,
   8,
   2,
   "INT"
  ],
  [
   61,
   8,
   0,
   9,
   0,
   "IMAGE"
  ],
  [
   62,
   2,
   0,
   10,
   0,
   "IMAGE"
  ],
  [
   63,
   9,
   2,
   10,
   2,
   "INT"
  ],
  [
   64,
   8,
   0,
   11,
   0,
   "IMAGE"
  ],
  [
   65,
   10,
   0,
   11,
   1,
   "IMAGE"
  ],
  [
   66,
   10,
   0,
   12,
   0,
   "IMAGE"
  ],
  [
   67,
   8,
   0,
   12,
   1,
   "IMAGE"
  ],
  [
   68,
   11,
   0,
   13,
   0,
   "IMAGE"
  ],
  [
   69,
   12,
   0,
   13,
   1,
   "IMAGE"
  ],
  [
   70,
   13,
   0,
   14,
   0,
   "IMAGE"
  ],
  [
   71,
   14,
   2,
   15,
   0,
   "INT"
  ],
  [
   72,
   13,
   0,
   16,
   0,
   "IMAGE"
  ],
  [
   73,
   13,
   0,
   17,
   0,
   "IMAGE"
  ],
  [
   74,
   15,
   1,
   17,
   2,
   "INT"
  ],
  [
   75,
   16,
   0,
   18,
   0,
   "IMAGE"
  ],
  [
   76,
   17,
   0,
   18,
   1,
   "IMAGE"
  ],
  [
   77,
   13,
   0,
   19,
   0,
   "IMAGE"
  ],
  [
   78,
   18,
   0,
   19,
   1,
   "IMAGE"
  ],
  [
   79,
   18,
   0,
   20,
   0,
   "IMAGE"
  ],
  [
   80,
   13,
   0,
   20,
   1,
   "IMAGE"
  ],
  [
   81,
   19,
   0,
   21,
   0,
   "IMAGE"
  ],
  [
   82,
   20,
   0,
   21,
   1,
   "IMAGE"
  ],
  [
   83,
   21,
   0,
   22,
   0,
   "IMAGE"
  ],
  [
   84,
   22,
   0,
   23,
   0,
   "IMAGE"
  ],
  [
   85,
   23,
   0,
   24,
   0,
   "MASK"
  ],
  [
   86,
   24,
   0,
   25,
   0,
   "MASK"
  ],
  [
   87,
   25,
   0,
   26,
   0,
   "IMAGE"
  ],
  [
   88,
   2,
   2,
   26,
   2,
   "FLOAT"
  ],
  [
   89,
   26,
   0,
   27,
   0,
   "VIDEO"
  ],
  [
   90,
   5,
   0,
   28,
   0,
   "INT"
  ],
  [
   91,
   5,
   1,
   28,
   1,
   "INT"
  ],
  [
   92,
   14,
   2,
   28,
   2,
   "INT"
  ],
  [
   93,
   5,
   0,
   29,
   1,
   "INT"
  ],
  [
   94,
   5,
   1,
   29,
   2,
   "INT"
  ],
  [
   95,
   24,
   0,
   30,
   0,
   "MASK"
  ],
  [
   96,
   29,
   0,
   30,
   1,
   "MASK"
  ],
  [
   97,
   8,
   0,
   31,
   0,
   "IMAGE"
  ],
  [
   98,
   28,
   0,
   31,
   1,
   "IMAGE"
  ],
  [
   99,
   30,
   0,
   31,
   2,
   "MASK"
  ],
  [
   100,
   31,
   0,
   32,
   0,
   "IMAGE"
  ],
  [
   101,
   2,
   2,
   32,
   2,
   "FLOAT"
  ],
  [
   102,
   32,
   0,
   33,
   0,
   "VIDEO"
  ]
 ],
 "groups": [],
 "config": {},
 "extra": {
  "ds": {
   "scale": 0.9,
   "offset": [
    416,
    110
   ]
  }
 },
 "version": 0.4
}