File size: 22,075 Bytes
06ba7ea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 |
{
"workflow_meta": {
"id": "video_editing_pipeline",
"name": "Video Editing Workflow",
"description": "Automated video editing pipeline node map, including pro/normal nodes"
},
"nodes": [
{
"id": "load_media",
"name": "Load Media",
"kind": "load_media",
"pro": false,
"description": "Loads and indexes input media. Entry point with no dependencies; required by all downstream operations.",
"dependencies": [],
"next_nodes": [
"split_shots"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Automatic mode; skip: Skip mode; default: Default mode",
"default": "auto"
}
],
"output_schema": [
{
"name": "media",
"type": "List[Media]",
"description": "List of media objects with metadata"
}
]
},
{
"id": "search_media",
"name": "Search Media",
"kind": "search_media",
"pro": false,
"description": "Search media from external sources (e.g., Pexels).",
"dependencies": [],
"next_nodes": [
"load_media"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Automatically search media from pexels; skip: skip search; default: skip search",
"default": "auto"
},
{
"name": "search_keyword",
"type": "String",
"description": "Keywords of the media the user wants to obtain",
"default": "scenery"
},
{
"name": "video_number",
"type": "Integer",
"description": "The number of videos the user wants to obtain",
"default": 5
},
{
"name": "photo_number",
"type": "Integer",
"description": "The number of images the user wants to obtain",
"default": 0
},
{
"name": "orientation",
"type": "Enum",
"options": [
"landscape",
"portrait"
],
"description": "landscape: wider horizontally; portrait: higher vertically",
"default": "landscape"
},
{
"name": "min_video_duration",
"type": "Integer",
"description": "The shortest duration of footage requested by the user (seconds)",
"default": 1
},
{
"name": "max_video_duration",
"type": "Integer",
"description": "The longest duration of footage requested by the user (seconds)",
"default": 30
}
],
"output_schema": [
{
"name": "media",
"type": "List[Media]",
"description": "Retrieved media objects"
}
]
},
{
"id": "split_shots",
"name": "Split Shots",
"kind": "split_shots",
"pro": false,
"description": "Automatically segment videos into shots based on scene changes; treat images as single shots.",
"dependencies": [
"load_media"
],
"next_nodes": [
"understand_clips"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Automatically segment shots based on scene changes, treat images as single shots; skip: Do not segment shots; default: Use default segmentation method",
"default": "auto"
},
{
"name": "min_shot_duration",
"type": "Integer",
"description": "Segmented shots must not be shorter than this duration (milliseconds)",
"default": 1000
},
{
"name": "max_shot_duration",
"type": "Integer",
"description": "If a single shot exceeds this duration, force segmentation (milliseconds)",
"default": 10000
}
],
"output_schema": [
{
"name": "clip_captions",
"type": "List[Clip]",
"description": "List of clips after splitting shots"
},
{
"name": "overall",
"type": "Dict[String,String]",
"description": "Overall summary/metadata (key-value)"
}
]
},
{
"id": "understand_clips",
"name": "Understand Clips",
"kind": "understand_clips",
"pro": false,
"description": "Generate descriptions/captions for each clip based on media content.",
"dependencies": [
"split_shots"
],
"next_nodes": [
"filter_clips",
"recommend_script_template"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Generate descriptions based on media content; skip: Do not generate descriptions; default: Use default description generation method",
"default": "auto"
}
],
"output_schema": [
{
"name": "clip_captions",
"type": "List[Clip]",
"description": "List of clips after understanding clips"
},
{
"name": "overall",
"type": "Dict[String,String]",
"description": "Overall summary/metadata (key-value)"
}
]
},
{
"id": "filter_clips",
"name": "Filter Clips",
"kind": "filter_clips",
"pro": false,
"description": "Filter clips based on user requirements.",
"dependencies": [
"understand_clips"
],
"next_nodes": [
"group_clips"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Filter clips based on user requirements; skip: Skip filtering; default: Use default filtering method",
"default": "auto"
},
{
"name": "user_request",
"type": "String",
"description": "User's requirements for clip filtering; if none provided, formulate one based on materials and other editing requirements.",
"default": ""
}
],
"output_schema": [
{
"name": "clip_captions",
"type": "List[Clip]",
"description": "List of clips"
},
{
"name": "overall",
"type": "Dict[String,String]",
"description": "Overall summary/metadata (key-value)"
}
]
},
{
"id": "group_clips",
"name": "Group Clips",
"kind": "group_clips",
"pro": false,
"description": "Organize clips into narrative groups and arrange playback order.",
"dependencies": [
"filter_clips"
],
"next_nodes": [
"generate_script"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Organize clips in a logical order based on narrative flow and user's sequencing requirements; skip: Skip sorting; default: Use default ordering method",
"default": "auto"
},
{
"name": "user_request",
"type": "String",
"description": "User's requirements for media organization order; if none provided, arrange in a logical narrative sequence following standard conventions.",
"default": ""
}
],
"output_schema": [
{
"name": "groups",
"type": "List[GroupClips]",
"description": "List of clip groups with ordering and summaries"
}
]
},
{
"id": "generate_script",
"name": "Generate Script",
"kind": "generate_script",
"pro": false,
"description": "Generate script/subtitles for each group; supports passing a custom_script override (subtitle_units removed).",
"dependencies": [
"group_clips"
],
"next_nodes": [
"generate_voiceover",
"recommend_text"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Generate appropriate script based on media content and user's script requirements; skip: Skip, do not add subtitles; default: Use default script",
"default": "auto"
},
{
"name": "user_request",
"type": "String",
"description": "User's requirements for the script.",
"default": ""
},
{
"name": "custom_script",
"type": "Dict[String,Any]",
"description": "If user has specific character-level editing requirements for script/title, pass the edited custom script and title through this parameter. Format should be based on the original script generation output format but with the subtitle_units field removed. In this case, mode must use `auto`, other modes are prohibited.",
"default": {}
}
],
"output_schema": [
{
"name": "group_scripts",
"type": "List[GroupScript]",
"description": "Group-level script content including subtitle units"
},
{
"name": "title",
"type": "Optional[String]",
"description": "Optional generated title"
}
]
},
{
"id": "recommend_script_template",
"name": "Recommend Script Template",
"kind": "recommend_script_template",
"pro": false,
"description": "Recommend/select a copywriting template based on material content and user's requirements. (Output schema not defined in the provided schema file.)",
"dependencies": [
"understand_clips"
],
"next_nodes": [],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Select an appropriate copywriting template based on the material content and user's requirements for voiceover style; skip: Skip;",
"default": "auto"
},
{
"name": "user_request",
"type": "String",
"description": "User's specific requirements for the script style.",
"default": ""
},
{
"name": "filter_include",
"type": "Dict[String,List[String]]",
"description": "Positive filter conditions. Multiple dimensions are combined with AND, multiple values within the same dimension are combined with OR. Supported dimensions: tags (one or more of [Life, Food, Beauty, Entertainment, Travel, Tech, Business, Vehicle, Health, Family, Pets, Knowledge]).",
"default": {}
},
{
"name": "filter_exclude",
"type": "Dict[String,List[String]]",
"description": "Negative filter conditions. Items matching these conditions will be excluded. Supported dimensions: tags, id.",
"default": {}
}
],
"output_schema": []
},
{
"id": "generate_voiceover",
"name": "Generate Voiceover",
"kind": "generate_voiceover",
"pro": false,
"description": "Generate voiceover/narration items (e.g., TTS) for each group.",
"dependencies": [
"generate_script"
],
"next_nodes": [
"select_bgm",
"plan_timeline"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Generate appropriate voiceover based on media content and user's voice requirements; skip: Skip voiceover; default: Use default voiceover",
"default": "auto"
},
{
"name": "user_request",
"type": "String",
"description": "User's requirements for voiceover.",
"default": ""
}
],
"output_schema": [
{
"name": "voiceover",
"type": "List[Voiceover]",
"description": "Voiceover list"
}
]
},
{
"id": "select_bgm",
"name": "Select BGM",
"kind": "select_bgm",
"pro": false,
"description": "Select appropriate background music (BGM) based on material content and user requirements; supports include/exclude filters.",
"dependencies": [
"generate_script"
],
"next_nodes": [
"recommend_transition",
"plan_timeline"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Select appropriate music based on media content and user's music requirements; skip: Do not use music; default: Use default music",
"default": "auto"
},
{
"name": "user_request",
"type": "String",
"description": "User's requirements for background music.",
"default": ""
},
{
"name": "filter_include",
"type": "Dict[String,List[Union[String,Integer]]]",
"description": "Positive filter conditions. Supported dimensions: mood [Dynamic, Chill, Happy, Sorrow, Romantic, Calm, Excited, Healing, Inspirational]; scene [Vlog, Travel, Relaxing, Emotion, Transition, Outdoor, Cafe, Evening, Scenery, Food, Date, Club]; genre [Pop, BGM, Electronic, R&B/Soul, Hip Hop/Rap, Rock, Jazz, Folk, Classical, Chinese Style]; lang [bgm, en, zh, ko, ja]; id (int).",
"default": {}
},
{
"name": "filter_exclude",
"type": "Dict[String,List[Union[String,Integer]]]",
"description": "Negative filter conditions. Items matching these conditions will be excluded. Supported dimensions: mood, scene, genre, lang, id.",
"default": {}
}
],
"output_schema": [
{
"name": "bgm",
"type": "List[BGM]",
"description": "BGM list"
}
]
},
{
"id": "recommend_transition",
"name": "Recommend Transition",
"kind": "recommend_transition",
"pro": false,
"description": "Recommend transitions (e.g., fade in/out) at beginning and end.",
"dependencies": [
"select_bgm"
],
"next_nodes": [
"render_video"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: add fade in and fade out transitions at beginning and end; skip: Do not use transitions; default: Use default transitions",
"default": "auto"
},
{
"name": "duration",
"type": "Integer",
"description": "Duration of the transition in milliseconds",
"default": 1000
}
],
"output_schema": [
{
"name": "mode",
"type": "Enum",
"description": "auto / skip / default mode (output model is BaseInput)"
}
]
},
{
"id": "recommend_text",
"name": "Recommend Text",
"kind": "recommend_text",
"pro": false,
"description": "Recommend subtitle font style/color based on user's requirements; supports include filters.",
"dependencies": [
"generate_script"
],
"next_nodes": [
"render_video"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Select appropriate font style and color based on user's subtitle font style requirements; default: Use default font",
"default": "auto"
},
{
"name": "user_request",
"type": "String",
"description": "User's requirements for font style",
"default": ""
},
{
"name": "filter_include",
"type": "Dict[String,List[Union[String,Integer]]]",
"description": "Positive filter conditions. Supported dimensions: class [Creative, Handwriting, Calligraphy, Basic].",
"default": {}
}
],
"output_schema": [
{
"name": "mode",
"type": "Enum",
"description": "auto / skip / default mode (output model is BaseInput)"
}
]
},
{
"id": "plan_timeline",
"name": "Plan Timeline",
"kind": "plan_timeline",
"pro": false,
"description": "Plan timeline tracks for video, subtitles, voiceover, and BGM; optionally sync transitions with BGM beats.",
"dependencies": [
"group_clips",
"generate_script",
"generate_voiceover",
"select_bgm"
],
"next_nodes": [
"render_video"
],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Automatic mode; skip: Skip mode; default: Default mode",
"default": "auto"
},
{
"name": "use_beats",
"type": "Boolean",
"description": "Whether clip transitions should sync with BGM beats",
"default": true
}
],
"output_schema": [
{
"name": "tracks",
"type": "List[TimelineTracks]",
"description": "Timeline track collection"
}
]
},
{
"id": "render_video",
"name": "Render Video",
"kind": "render_video",
"pro": false,
"description": "Render/export the final video with canvas, subtitle, audio, and encoding parameters. (Output schema not defined in the provided schema file.)",
"dependencies": [
"plan_timeline"
],
"next_nodes": [],
"input_schema": [
{
"name": "mode",
"type": "Enum",
"options": [
"auto",
"skip",
"default"
],
"description": "auto: Automatic mode; skip: Skip mode; default: Default mode",
"default": "auto"
},
{
"name": "aspect_ratio",
"type": "Optional[String]",
"description": "Canvas aspect ratio override: one of 16:9, 4:3, 1:1, 3:4, 9:16; auto if unset.",
"default": null
},
{
"name": "output_max_dimension_px",
"type": "Optional[Integer]",
"description": "Maximum output size in pixels (longest side); defaults to 1080 and works with the aspect ratio.",
"default": null
},
{
"name": "clip_compose_mode",
"type": "String",
"description": "How to fit media into the canvas: 'padding' keeps aspect ratio and fills empty areas; 'crop' center-crops media to match the canvas aspect ratio.",
"default": "crop"
},
{
"name": "bg_color",
"type": "Tuple[Integer,Integer,Integer] | List[Integer] | Null",
"description": "Background color for canvas padding, specified as an (R, G, B) tuple (no alpha channel).",
"default": [
0,
0,
0
]
},
{
"name": "crf",
"type": "Integer",
"description": "CRF value (10–30), lower = better quality, larger file",
"default": 23
},
{
"name": "font_color",
"type": "Tuple[Integer,Integer,Integer,Integer]",
"description": "Font color, RGBA format (R, G, B, A), values range 0-255",
"default": [
255,
255,
255,
255
]
},
{
"name": "font_size",
"type": "Integer",
"description": "Font size in pixels. Recommended range: 28–120.",
"default": 40
},
{
"name": "margin_bottom",
"type": "Integer",
"description": "Bottom margin for subtitles in pixels. Defaults to 80; valid range: 40–600.",
"default": 80
},
{
"name": "stroke_width",
"type": "Integer",
"description": "Text stroke width (px), typically 0–8",
"default": 2
},
{
"name": "stroke_color",
"type": "Tuple[Integer,Integer,Integer,Integer]",
"description": "Text stroke color in RGBA format",
"default": [
0,
0,
0,
255
]
},
{
"name": "bgm_volume_scale",
"type": "Float",
"description": "Background music volume multiplier, range 0.0–3.0 (1.0 = default volume)",
"default": 1.0
},
{
"name": "tts_volume_scale",
"type": "Float",
"description": "TTS volume multiplier, range 0.0–3.0 (1.0 = default volume)",
"default": 1.0
},
{
"name": "include_video_audio",
"type": "Boolean",
"description": "Whether to include the original video audio track",
"default": false
}
],
"output_schema": []
}
]
}
|