{
 "id": "e2e57cb3-fc92-46d8-b496-9e741cd7f5b6",
 "revision": 0,
 "last_node_id": 14,
 "last_link_id": 36,
 "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": [
      19
     ]
    }
   ],
   "title": "Generated part (may be padded / longer)",
   "properties": {
    "Node name for S&R": "LoadVideo"
   },
   "widgets_values": [
    "part1.mp4",
    "image"
   ],
   "widgets_values_named": {
    "file": "part1.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": 19
    }
   ],
   "outputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "links": [
      22
     ]
    },
    {
     "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": 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": [
      20
     ]
    }
   ],
   "title": "The cut source (frame count, rate, sound)",
   "properties": {
    "Node name for S&R": "LoadVideo"
   },
   "widgets_values": [
    "source_shot.mp4",
    "image"
   ],
   "widgets_values_named": {
    "file": "source_shot.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": 20
    }
   ],
   "outputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "links": [
      21,
      25
     ]
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "type": "AUDIO",
     "links": [
      29
     ]
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "links": [
      27,
      34
     ]
    },
    {
     "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": 21
    }
   ],
   "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": [
      23
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 6,
   "type": "ImageFromBatch",
   "pos": [
    1016.3296875,
    130
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 6,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 22
    },
    {
     "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": 23
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      24
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageFromBatch"
   },
   "widgets_values": [
    0,
    1
   ],
   "widgets_values_named": {
    "batch_index": 0,
    "length": 1
   }
  },
  {
   "id": 7,
   "type": "ImageScale",
   "pos": [
    1516.3296875,
    130
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 24
    },
    {
     "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": null
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": null
    },
    {
     "localized_name": "crop",
     "name": "crop",
     "type": "COMBO",
     "widget": {
      "name": "crop"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      33
     ]
    }
   ],
   "title": "Scale to the Start still size",
   "properties": {
    "Node name for S&R": "ImageScale"
   },
   "widgets_values": [
    "lanczos",
    1024,
    576,
    "disabled"
   ],
   "widgets_values_named": {
    "upscale_method": "lanczos",
    "width": 1024,
    "height": 576,
    "crop": "disabled"
   }
  },
  {
   "id": 8,
   "type": "GetImageSize",
   "pos": [
    776.3296875,
    326
   ],
   "size": [
    140,
    66
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 25
    }
   ],
   "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": [
      26
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 9,
   "type": "ComfyMathExpression",
   "pos": [
    1016.3296875,
    342
   ],
   "size": [
    400,
    200
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "a",
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 26
    },
    {
     "localized_name": "b",
     "name": "values.b",
     "shape": 7,
     "type": "FLOAT,INT,BOOLEAN",
     "link": 27
    },
    {
     "localized_name": "c",
     "name": "values.c",
     "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": [
      28,
      32
     ]
    },
    {
     "localized_name": "INT",
     "name": "INT",
     "type": "INT",
     "links": null
    },
    {
     "localized_name": "BOOL",
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": null
    }
   ],
   "title": "Picture length = frames / fps",
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "a / b"
   ],
   "widgets_values_named": {
    "expression": "a / b"
   }
  },
  {
   "id": 10,
   "type": "EmptyAudio",
   "pos": [
    1516.3296875,
    390
   ],
   "size": [
    270,
    106
   ],
   "flags": {},
   "order": 9,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "duration",
     "name": "duration",
     "type": "FLOAT",
     "widget": {
      "name": "duration"
     },
     "link": 28
    },
    {
     "localized_name": "sample_rate",
     "name": "sample_rate",
     "type": "INT",
     "widget": {
      "name": "sample_rate"
     },
     "link": null
    },
    {
     "localized_name": "channels",
     "name": "channels",
     "type": "INT",
     "widget": {
      "name": "channels"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "AUDIO",
     "name": "AUDIO",
     "type": "AUDIO",
     "links": [
      30
     ]
    }
   ],
   "title": "Silence to pad a short tail",
   "properties": {
    "Node name for S&R": "EmptyAudio"
   },
   "widgets_values": [
    60,
    48000,
    2
   ],
   "widgets_values_named": {
    "duration": 60,
    "sample_rate": 48000,
    "channels": 2
   }
  },
  {
   "id": 11,
   "type": "AudioConcat",
   "pos": [
    1886.3296875,
    130
   ],
   "size": [
    270,
    78
   ],
   "flags": {},
   "order": 10,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "audio1",
     "name": "audio1",
     "type": "AUDIO",
     "link": 29
    },
    {
     "localized_name": "audio2",
     "name": "audio2",
     "type": "AUDIO",
     "link": 30
    },
    {
     "localized_name": "direction",
     "name": "direction",
     "type": "COMBO",
     "widget": {
      "name": "direction"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "AUDIO",
     "name": "AUDIO",
     "type": "AUDIO",
     "links": [
      31
     ]
    }
   ],
   "title": "Sound + silence",
   "properties": {
    "Node name for S&R": "AudioConcat"
   },
   "widgets_values": [
    "after"
   ],
   "widgets_values_named": {
    "direction": "after"
   }
  },
  {
   "id": 12,
   "type": "TrimAudioDuration",
   "pos": [
    2256.3296875,
    130
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 11,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "audio",
     "name": "audio",
     "type": "AUDIO",
     "link": 31
    },
    {
     "localized_name": "start_index",
     "name": "start_index",
     "type": "FLOAT",
     "widget": {
      "name": "start_index"
     },
     "link": null
    },
    {
     "localized_name": "duration",
     "name": "duration",
     "type": "FLOAT",
     "widget": {
      "name": "duration"
     },
     "link": 32
    }
   ],
   "outputs": [
    {
     "localized_name": "AUDIO",
     "name": "AUDIO",
     "type": "AUDIO",
     "links": [
      35
     ]
    }
   ],
   "title": "Sound trimmed to the picture length",
   "properties": {
    "Node name for S&R": "TrimAudioDuration"
   },
   "widgets_values": [
    0,
    60
   ],
   "widgets_values_named": {
    "start_index": 0,
    "duration": 60
   }
  },
  {
   "id": 13,
   "type": "CreateVideo",
   "pos": [
    2626.3296875,
    130
   ],
   "size": [
    270,
    150
   ],
   "flags": {},
   "order": 12,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "link": 33
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "shape": 7,
     "type": "AUDIO",
     "link": 35
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "widget": {
      "name": "fps"
     },
     "link": 34
    },
    {
     "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": [
      36
     ]
    }
   ],
   "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": 14,
   "type": "SaveVideo",
   "pos": [
    2996.3296875,
    130
   ],
   "size": [
    270.038671875,
    154
   ],
   "flags": {},
   "order": 13,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 36
    },
    {
     "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": "Finished clip (source rate + sound)",
   "properties": {},
   "widgets_values": [
    "core/finished",
    "mp4",
    "h264",
    "re-encode",
    17,
    "auto"
   ],
   "widgets_values_named": {
    "filename_prefix": "core/finished",
    "format": "mp4",
    "format.codec": "h264",
    "format.codec.encoding": "re-encode",
    "format.codec.encoding.crf": 17,
    "codec": "auto"
   }
  }
 ],
 "links": [
  [
   19,
   1,
   0,
   2,
   0,
   "VIDEO"
  ],
  [
   20,
   3,
   0,
   4,
   0,
   "VIDEO"
  ],
  [
   21,
   4,
   0,
   5,
   0,
   "IMAGE"
  ],
  [
   22,
   2,
   0,
   6,
   0,
   "IMAGE"
  ],
  [
   23,
   5,
   2,
   6,
   2,
   "INT"
  ],
  [
   24,
   6,
   0,
   7,
   0,
   "IMAGE"
  ],
  [
   25,
   4,
   0,
   8,
   0,
   "IMAGE"
  ],
  [
   26,
   8,
   2,
   9,
   0,
   "INT"
  ],
  [
   27,
   4,
   2,
   9,
   1,
   "FLOAT"
  ],
  [
   28,
   9,
   0,
   10,
   0,
   "FLOAT"
  ],
  [
   29,
   4,
   1,
   11,
   0,
   "AUDIO"
  ],
  [
   30,
   10,
   0,
   11,
   1,
   "AUDIO"
  ],
  [
   31,
   11,
   0,
   12,
   0,
   "AUDIO"
  ],
  [
   32,
   9,
   0,
   12,
   2,
   "FLOAT"
  ],
  [
   33,
   7,
   0,
   13,
   0,
   "IMAGE"
  ],
  [
   34,
   4,
   2,
   13,
   2,
   "FLOAT"
  ],
  [
   35,
   12,
   0,
   13,
   1,
   "AUDIO"
  ],
  [
   36,
   13,
   0,
   14,
   0,
   "VIDEO"
  ]
 ],
 "groups": [],
 "config": {},
 "extra": {
  "ds": {
   "scale": 0.9,
   "offset": [
    416,
    110
   ]
  }
 },
 "version": 0.4
}