{
 "id": "212b8764-455d-4592-85ee-ca833e833507",
 "revision": 0,
 "last_node_id": 9,
 "last_link_id": 28,
 "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": [
      15
     ]
    }
   ],
   "title": "16:9 recording of a 4:3 show",
   "properties": {
    "Node name for S&R": "LoadVideo"
   },
   "widgets_values": [
    "recording.mp4",
    "image"
   ],
   "widgets_values_named": {
    "file": "recording.mp4",
    "upload": "image"
   }
  },
  {
   "id": 2,
   "type": "GetVideoComponents",
   "pos": [
    482.798828125,
    130
   ],
   "size": [
    193.530859375,
    106
   ],
   "flags": {},
   "order": 1,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 15
    }
   ],
   "outputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "links": [
      16,
      20
     ]
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "type": "AUDIO",
     "links": [
      27
     ]
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "links": [
      26
     ]
    },
    {
     "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": "GetImageSize",
   "pos": [
    776.3296875,
    130
   ],
   "size": [
    140,
    66
   ],
   "flags": {},
   "order": 2,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 16
    }
   ],
   "outputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "links": [
      18
     ]
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "links": [
      17,
      22
     ]
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "links": null
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 4,
   "type": "ComfyMathExpression",
   "pos": [
    1016.3296875,
    130
   ],
   "size": [
    400,
    200
   ],
   "flags": {},
   "order": 3,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "a",
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 17
    },
    {
     "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": [
      19,
      21
     ]
    },
    {
     "localized_name": "BOOL",
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": null
    }
   ],
   "title": "Crop width = height x 4/3",
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "round(a * 4 / 3)"
   ],
   "widgets_values_named": {
    "expression": "round(a * 4 / 3)"
   }
  },
  {
   "id": 5,
   "type": "ComfyMathExpression",
   "pos": [
    1516.3296875,
    130
   ],
   "size": [
    400,
    200
   ],
   "flags": {},
   "order": 4,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "a",
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 18
    },
    {
     "localized_name": "b",
     "name": "values.b",
     "shape": 7,
     "type": "FLOAT,INT,BOOLEAN",
     "link": 19
    },
    {
     "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": null
    },
    {
     "localized_name": "INT",
     "name": "INT",
     "type": "INT",
     "links": [
      23
     ]
    },
    {
     "localized_name": "BOOL",
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": null
    }
   ],
   "title": "Left edge = (width - crop width) / 2",
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "round((a - b) / 2)"
   ],
   "widgets_values_named": {
    "expression": "round((a - b) / 2)"
   }
  },
  {
   "id": 6,
   "type": "ImageCrop",
   "pos": [
    2016.3296875,
    130
   ],
   "size": [
    281.7154296875,
    130
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 20
    },
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": 21
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": 22
    },
    {
     "localized_name": "x",
     "name": "x",
     "type": "INT",
     "widget": {
      "name": "x"
     },
     "link": 23
    },
    {
     "localized_name": "y",
     "name": "y",
     "type": "INT",
     "widget": {
      "name": "y"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      24
     ]
    }
   ],
   "title": "Centre crop to 4:3",
   "properties": {
    "Node name for S&R": "ImageCrop"
   },
   "widgets_values": [
    512,
    512,
    0,
    0
   ],
   "widgets_values_named": {
    "width": 512,
    "height": 512,
    "x": 0,
    "y": 0
   }
  },
  {
   "id": 7,
   "type": "ImageScale",
   "pos": [
    2398.0451171875,
    130
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 6,
   "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": [
      25
     ]
    }
   ],
   "title": "Scale to 1024 x 768",
   "properties": {
    "Node name for S&R": "ImageScale"
   },
   "widgets_values": [
    "lanczos",
    1024,
    768,
    "disabled"
   ],
   "widgets_values_named": {
    "upscale_method": "lanczos",
    "width": 1024,
    "height": 768,
    "crop": "disabled"
   }
  },
  {
   "id": 8,
   "type": "CreateVideo",
   "pos": [
    2768.0451171875,
    130
   ],
   "size": [
    270,
    150
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "link": 25
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "shape": 7,
     "type": "AUDIO",
     "link": 27
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "widget": {
      "name": "fps"
     },
     "link": 26
    },
    {
     "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": [
      28
     ]
    }
   ],
   "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": 9,
   "type": "SaveVideo",
   "pos": [
    3138.0451171875,
    130
   ],
   "size": [
    270,
    154
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 28
    },
    {
     "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": "4:3 clip (sound kept)",
   "properties": {},
   "widgets_values": [
    "core/crop43",
    "mp4",
    "h264",
    "re-encode",
    16,
    "auto"
   ],
   "widgets_values_named": {
    "filename_prefix": "core/crop43",
    "format": "mp4",
    "format.codec": "h264",
    "format.codec.encoding": "re-encode",
    "format.codec.encoding.crf": 16,
    "codec": "auto"
   }
  }
 ],
 "links": [
  [
   15,
   1,
   0,
   2,
   0,
   "VIDEO"
  ],
  [
   16,
   2,
   0,
   3,
   0,
   "IMAGE"
  ],
  [
   17,
   3,
   1,
   4,
   0,
   "INT"
  ],
  [
   18,
   3,
   0,
   5,
   0,
   "INT"
  ],
  [
   19,
   4,
   1,
   5,
   1,
   "INT"
  ],
  [
   20,
   2,
   0,
   6,
   0,
   "IMAGE"
  ],
  [
   21,
   4,
   1,
   6,
   1,
   "INT"
  ],
  [
   22,
   3,
   1,
   6,
   2,
   "INT"
  ],
  [
   23,
   5,
   1,
   6,
   3,
   "INT"
  ],
  [
   24,
   6,
   0,
   7,
   0,
   "IMAGE"
  ],
  [
   25,
   7,
   0,
   8,
   0,
   "IMAGE"
  ],
  [
   26,
   2,
   2,
   8,
   2,
   "FLOAT"
  ],
  [
   27,
   2,
   1,
   8,
   1,
   "AUDIO"
  ],
  [
   28,
   8,
   0,
   9,
   0,
   "VIDEO"
  ]
 ],
 "groups": [],
 "config": {},
 "extra": {
  "ds": {
   "scale": 0.9,
   "offset": [
    416,
    110
   ]
  }
 },
 "version": 0.4
}