ComfyPilotComfyPilot
工作流 / 视频 / Gemini Omni Flash:视频编辑
Gemini Omni Flash:视频编辑

Gemini Omni Flash:视频编辑

Gemini Omni Flash: Video Edit

使用 Gemini Omni Flash 通过自然语言编辑视频,根据您的描述性指令将单个输入视频转换为一个编辑后的输出。在提示词中指定时长和宽高比,并利用 Omni 的世界知识进行直观编辑,例如更改背景或添加氛围。非常适合快速社交媒体混剪、电影场景调整以及无需技术提示词的迭代视频优化。

视频 6 个节点 1 个输入 40 次使用 ComfyUI ≥ 0.34.2 ComfyUI 22 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

SaveVideo × 1
PreviewAny × 1
MarkdownNote × 1
LoadVideo × 1
331103d2-d660-4a88-abf0-1117dc46b2df × 1
GeminiVideoOmniV2 × 1

官方标注的模型

Gemini Omni

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "5d4ec020-c06c-424e-af17-d6bfd877cd42",
3 "revision": 0,
4 "last_node_id": 18,
5 "last_link_id": 32,
6 "nodes": [
7 {
8 "id": 2,
9 "type": "SaveVideo",
10 "pos": [
11 500,
12 140
13 ],
14 "size": [
15 760,
16 125.90625
17 ],
18 "flags": [],
19 "order": 4,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "video",
24 "type": "VIDEO",
25 "link": 30
26 }
27 ],
28 "outputs": [
29 {
30 "name": "video",
31 "type": "VIDEO",
32 "links": null
33 }
34 ],
35 "properties": {
36 "cnr_id": "comfy-core",
37 "ver": "0.27.0",
38 "Node name for S&R": "SaveVideo"
39 },
40 "widgets_values": [
41 "video/ComfyUI",
42 "auto",
43 "auto",
44 "auto"
45 ],
46 "widgets_values_named": {
47 "filename_prefix": "video/ComfyUI",
48 "format": "auto",
49 "format.codec": "auto",
50 "codec": "auto"
51 }
52 },
53 {
54 "id": 3,
55 "type": "PreviewAny",
56 "pos": [
57 1300,
58 140
59 ],
60 "size": [
61 520,
62 270
63 ],
64 "flags": [],
65 "order": 5,
66 "mode": 0,
67 "inputs": [
68 {
69 "name": "source",
70 "type": "*",
71 "link": 32
72 }
73 ],
74 "outputs": [
75 {
76 "name": "STRING",
77 "type": "STRING",
78 "links": null
79 }
80 ],
81 "properties": {
82 "Node name for S&R": "PreviewAny",
83 "cnr_id": "comfy-core",
84 "ver": "0.27.0"
85 },
86 "widgets_values": [],
87 "widgets_values_named": []
88 },
89 {
90 "id": 4,
91 "type": "MarkdownNote",
92 "pos": [
93 60,
94 800
95 ],
96 "size": [
97 400,
98 180
99 ],
100 "flags": [],
101 "order": 0,
102 "mode": 0,
103 "inputs": [],
104 "outputs": [],
105 "title": "Note: Duration and Aspect Ratio",
106 "properties": [],
107 "widgets_values": [
108 "The Google Gemini Omni Video requires you to specify the `duration` and `aspect ratio` in the prompt. The `Prompt Constructor` subgraph helps you quickly construct the prompt with `duration` and `aspect ratio`.\n"
109 ],
110 "widgets_values_named": {
111 "text": "The Google Gemini Omni Video requires you to specify the `duration` and `aspect ratio` in the prompt. The `Prompt Constructor` subgraph helps you quickly construct the prompt with `duration` and `aspect ratio`.\n"
112 },
113 "color": "#222",
114 "bgcolor": "#000"
115 },
116 {
117 "id": 8,
118 "type": "LoadVideo",
119 "pos": [
120 -550,
121 150
122 ],
123 "size": [
124 560,
125 550
126 ],
127 "flags": [],
128 "order": 1,
129 "mode": 0,
130 "inputs": [],
131 "outputs": [
132 {
133 "name": "VIDEO",
134 "type": "VIDEO",
135 "links": [
136 31
137 ]
138 }
139 ],
140 "properties": {
141 "Node name for S&R": "LoadVideo",
142 "cnr_id": "comfy-core",
143 "ver": "0.27.0"
144 },
145 "widgets_values": [
146 "space_horse_rider.mp4",
147 "image"
148 ],
149 "widgets_values_named": {
150 "file": "space_horse_rider.mp4",
151 "upload": "image"
152 }
153 },
154 {
155 "id": 17,
156 "type": "331103d2-d660-4a88-abf0-1117dc46b2df",
157 "pos": [
158 60,
159 490
160 ],
161 "size": [
162 400,
163 250
164 ],
165 "flags": [],
166 "order": 2,
167 "mode": 0,
168 "inputs": [
169 {
170 "label": "prompt",
171 "name": "value",
172 "type": "STRING",
173 "widget": {
174 "name": "value"
175 },
176 "link": null
177 },
178 {
179 "label": "aspect_ratio:",
180 "name": "choice",
181 "type": "COMBO",
182 "widget": {
183 "name": "choice"
184 },
185 "link": null
186 },
187 {
188 "label": "duration",
189 "name": "choice_1",
190 "type": "COMBO",
191 "widget": {
192 "name": "choice_1"
193 },
194 "link": null
195 }
196 ],
197 "outputs": [
198 {
199 "label": "prompt",
200 "name": "STRING",
201 "type": "STRING",
202 "links": [
203 29
204 ]
205 }
206 ],
207 "properties": {
208 "cnr_id": "comfy-core",
209 "ver": "0.27.0",
210 "previewExposures": []
211 },
212 "widgets_values": [
213 "Keep astronaut space galloping composition, replace white horse with chubby giant flying sheep, fluffy white fur, tiny short wings, clumsy floating, funny cartoon animation style, cosmic soft light, 8K",
214 "9:16",
215 "3s "
216 ],
217 "widgets_values_named": {
218 "value": "Keep astronaut space galloping composition, replace white horse with chubby giant flying sheep, fluffy white fur, tiny short wings, clumsy floating, funny cartoon animation style, cosmic soft light, 8K",
219 "choice": "9:16",
220 "choice_1": "3s "
221 }
222 },
223 {
224 "id": 18,
225 "type": "GeminiVideoOmniV2",
226 "pos": [
227 60,
228 130
229 ],
230 "size": [
231 400,
232 320
233 ],
234 "flags": [],
235 "order": 3,
236 "mode": 0,
237 "inputs": [
238 {
239 "name": "model.prompt",
240 "type": "STRING",
241 "widget": {
242 "name": "model.prompt"
243 },
244 "link": 29
245 },
246 {
247 "name": "model.images.image_1",
248 "shape": 7,
249 "type": "IMAGE",
250 "link": null
251 },
252 {
253 "name": "model.videos.video_1",
254 "shape": 7,
255 "type": "VIDEO",
256 "link": 31
257 },
258 {
259 "name": "model.videos.video_2",
260 "shape": 7,
261 "type": "VIDEO",
262 "link": null
263 }
264 ],
265 "outputs": [
266 {
267 "name": "VIDEO",
268 "type": "VIDEO",
269 "links": [
270 30
271 ]
272 },
273 {
274 "name": "STRING",
275 "type": "STRING",
276 "links": [
277 32
278 ]
279 }
280 ],
281 "properties": {
282 "Node name for S&R": "GeminiVideoOmniV2"
283 },
284 "widgets_values": [
285 "Omni Flash",
286 "",
287 "16:9",
288 "auto",
289 1,
290 0.95,
291 42,
292 "randomize",
293 "randomize"
294 ],
295 "widgets_values_named": {
296 "model": "Omni Flash",
297 "model.prompt": "",
298 "model.aspect_ratio": "16:9",
299 "model.task_type": "auto",
300 "model.temperature": 1,
301 "model.top_p": 0.95,
302 "model.seed": 42,
303 "control_after_generate": "randomize"
304 },
305 "color": "#432",
306 "bgcolor": "#653"
307 }
308 ],
309 "links": [
310 [
311 29,
312 17,
313 0,
314 18,
315 0,
316 "STRING"
317 ],
318 [
319 30,
320 18,
321 0,
322 2,
323 0,
324 "VIDEO"
325 ],
326 [
327 31,
328 8,
329 0,
330 18,
331 2,
332 "VIDEO"
333 ],
334 [
335 32,
336 18,
337 1,
338 3,
339 0,
340 "STRING"
341 ]
342 ],
343 "groups": [],
344 "definitions": {
345 "subgraphs": [
346 {
347 "id": "331103d2-d660-4a88-abf0-1117dc46b2df",
348 "version": 1,
349 "state": {
350 "lastGroupId": 0,
351 "lastNodeId": 18,
352 "lastLinkId": 32,
353 "lastRerouteId": 0
354 },
355 "revision": 0,
356 "config": [],
357 "name": "Prompt Constructor",
358 "inputNode": {
359 "id": -10,
360 "bounding": [
361 -598,
362 1298,
363 128,
364 108
365 ]
366 },
367 "outputNode": {
368 "id": -20,
369 "bounding": [
370 990,
371 1288,
372 128,
373 68
374 ]
375 },
376 "inputs": [
377 {
378 "id": "0ec4f3ba-e84d-4c2a-a3b8-539300814e88",
379 "name": "value",
380 "type": "STRING",
381 "linkIds": [
382 25
383 ],
384 "label": "prompt",
385 "pos": [
386 -494,
387 1322
388 ]
389 },
390 {
391 "id": "bcf0aec9-9f80-4d88-90b7-29cea450de68",
392 "name": "choice",
393 "type": "COMBO",
394 "linkIds": [
395 26
396 ],
397 "label": "aspect_ratio:",
398 "pos": [
399 -494,
400 1342
401 ]
402 },
403 {
404 "id": "7296344d-6193-44bf-a059-9b18b61aa528",
405 "name": "choice_1",
406 "type": "COMBO",
407 "linkIds": [
408 27
409 ],
410 "label": "duration",
411 "pos": [
412 -494,
413 1362
414 ]
415 }
416 ],
417 "outputs": [
418 {
419 "id": "f5ae177f-4339-4791-a762-e77fe647f25e",
420 "name": "STRING",
421 "type": "STRING",
422 "linkIds": [
423 19
424 ],
425 "localized_name": "STRING",
426 "label": "prompt",
427 "pos": [
428 1014,
429 1312
430 ]
431 }
432 ],
433 "widgets": [],
434 "nodes": [
435 {
436 "id": 9,
437 "type": "CustomCombo",
438 "pos": [
439 -400,
440 1040
441 ],
442 "size": [
443 270,
444 240
445 ],
446 "flags": [],
447 "order": 0,
448 "mode": 0,
449 "inputs": [
450 {
451 "localized_name": "choice",
452 "name": "choice",
453 "type": "COMBO",
454 "widget": {
455 "name": "choice"
456 },
457 "link": 26
458 }
459 ],
460 "outputs": [
461 {
462 "localized_name": "STRING",
463 "name": "STRING",
464 "type": "STRING",
465 "links": [
466 11
467 ]
468 },
469 {
470 "localized_name": "INDEX",
471 "name": "INDEX",
472 "type": "INT",
473 "links": null
474 }
475 ],
476 "properties": {
477 "Node name for S&R": "CustomCombo",
478 "cnr_id": "comfy-core",
479 "ver": "0.27.0"
480 },
481 "widgets_values": [
482 "9:16",
483 1,
484 "16:9",
485 "9:16",
486 ""
487 ],
488 "widgets_values_named": {
489 "choice": "9:16",
490 "index": 1,
491 "option1": "16:9",
492 "option2": "9:16",
493 "option3": ""
494 }
495 },
496 {
497 "id": 10,
498 "type": "CustomCombo",
499 "pos": [
500 -410,
501 1380
502 ],
503 "size": [
504 270,
505 460
506 ],
507 "flags": [],
508 "order": 1,
509 "mode": 0,
510 "inputs": [
511 {
512 "localized_name": "choice",
513 "name": "choice",
514 "type": "COMBO",
515 "widget": {
516 "name": "choice"
517 },
518 "link": 27
519 }
520 ],
521 "outputs": [
522 {
523 "localized_name": "STRING",
524 "name": "STRING",
525 "type": "STRING",
526 "links": [
527 12
528 ]
529 },
530 {
531 "localized_name": "INDEX",
532 "name": "INDEX",
533 "type": "INT",
534 "links": null
535 }
536 ],
537 "properties": {
538 "Node name for S&R": "CustomCombo",
539 "cnr_id": "comfy-core",
540 "ver": "0.27.0"
541 },
542 "widgets_values": [
543 "3s ",
544 0,
545 "3s ",
546 "4s ",
547 "5s ",
548 "6s ",
549 "7s ",
550 "8s ",
551 "9s ",
552 "10s ",
553 ""
554 ],
555 "widgets_values_named": {
556 "choice": "3s ",
557 "index": 0,
558 "option1": "3s ",
559 "option2": "4s ",
560 "option3": "5s ",
561 "option4": "6s ",
562 "option5": "7s ",
563 "option6": "8s ",
564 "option7": "9s ",
565 "option8": "10s ",
566 "option9": ""
567 }
568 },
569 {
570 "id": 11,
571 "type": "StringConcatenate",
572 "pos": [
573 -90,
574 1050
575 ],
576 "size": [
577 400,
578 250
579 ],
580 "flags": [],
581 "order": 2,
582 "mode": 0,
583 "inputs": [
584 {
585 "localized_name": "string_b",
586 "name": "string_b",
587 "type": "STRING",
588 "widget": {
589 "name": "string_b"
590 },
591 "link": 11
592 }
593 ],
594 "outputs": [
595 {
596 "localized_name": "STRING",
597 "name": "STRING",
598 "type": "STRING",
599 "links": [
600 15
601 ]
602 }
603 ],
604 "properties": {
605 "Node name for S&R": "StringConcatenate",
606 "cnr_id": "comfy-core",
607 "ver": "0.27.0"
608 },
609 "widgets_values": [
610 "Aspect Ratio: ",
611 "9:16",
612 ""
613 ],
614 "widgets_values_named": {
615 "string_a": "Aspect Ratio: ",
616 "string_b": "9:16",
617 "delimiter": ""
618 }
619 },
620 {
621 "id": 12,
622 "type": "StringConcatenate",
623 "pos": [
624 -90,
625 1360
626 ],
627 "size": [
628 400,
629 250
630 ],
631 "flags": [],
632 "order": 3,
633 "mode": 0,
634 "inputs": [
635 {
636 "localized_name": "string_b",
637 "name": "string_b",
638 "type": "STRING",
639 "widget": {
640 "name": "string_b"
641 },
642 "link": 12
643 }
644 ],
645 "outputs": [
646 {
647 "localized_name": "STRING",
648 "name": "STRING",
649 "type": "STRING",
650 "links": [
651 16
652 ]
653 }
654 ],
655 "properties": {
656 "Node name for S&R": "StringConcatenate",
657 "cnr_id": "comfy-core",
658 "ver": "0.27.0"
659 },
660 "widgets_values": [
661 "Duration: ",
662 "3s ",
663 ""
664 ],
665 "widgets_values_named": {
666 "string_a": "Duration: ",
667 "string_b": "3s ",
668 "delimiter": ""
669 }
670 },
671 {
672 "id": 13,
673 "type": "StringConcatenate",
674 "pos": [
675 -90,
676 1670
677 ],
678 "size": [
679 400,
680 250
681 ],
682 "flags": [],
683 "order": 4,
684 "mode": 0,
685 "inputs": [
686 {
687 "localized_name": "string_a",
688 "name": "string_a",
689 "type": "STRING",
690 "widget": {
691 "name": "string_a"
692 },
693 "link": 15
694 },
695 {
696 "localized_name": "string_b",
697 "name": "string_b",
698 "type": "STRING",
699 "widget": {
700 "name": "string_b"
701 },
702 "link": 16
703 }
704 ],
705 "outputs": [
706 {
707 "localized_name": "STRING",
708 "name": "STRING",
709 "type": "STRING",
710 "links": [
711 17
712 ]
713 }
714 ],
715 "properties": {
716 "Node name for S&R": "StringConcatenate",
717 "cnr_id": "comfy-core",
718 "ver": "0.27.0"
719 },
720 "widgets_values": [
721 "",
722 "",
723 ";"
724 ],
725 "widgets_values_named": {
726 "string_a": "",
727 "string_b": "",
728 "delimiter": ";"
729 }
730 },
731 {
732 "id": 15,
733 "type": "PrimitiveStringMultiline",
734 "pos": [
735 -90,
736 770
737 ],
738 "size": [
739 400,
740 200
741 ],
742 "flags": [],
743 "order": 5,
744 "mode": 0,
745 "inputs": [
746 {
747 "localized_name": "value",
748 "name": "value",
749 "type": "STRING",
750 "widget": {
751 "name": "value"
752 },
753 "link": 25
754 }
755 ],
756 "outputs": [
757 {
758 "localized_name": "STRING",
759 "name": "STRING",
760 "type": "STRING",
761 "links": [
762 18
763 ]
764 }
765 ],
766 "title": "Input Text (User Prompt)",
767 "properties": {
768 "Node name for S&R": "PrimitiveStringMultiline",
769 "cnr_id": "comfy-core",
770 "ver": "0.27.0"
771 },
772 "widgets_values": [
773 "Keep astronaut space galloping composition, replace white horse with chubby giant flying sheep, fluffy white fur, tiny short wings, clumsy floating, funny cartoon animation style, cosmic soft light, 8K"
774 ],
775 "widgets_values_named": {
776 "value": "Keep astronaut space galloping composition, replace white horse with chubby giant flying sheep, fluffy white fur, tiny short wings, clumsy floating, funny cartoon animation style, cosmic soft light, 8K"
777 }
778 },
779 {
780 "id": 16,
781 "type": "StringConcatenate",
782 "pos": [
783 530,
784 1020
785 ],
786 "size": [
787 400,
788 250
789 ],
790 "flags": [],
791 "order": 6,
792 "mode": 0,
793 "inputs": [
794 {
795 "localized_name": "string_a",
796 "name": "string_a",
797 "type": "STRING",
798 "widget": {
799 "name": "string_a"
800 },
801 "link": 18
802 },
803 {
804 "localized_name": "string_b",
805 "name": "string_b",
806 "type": "STRING",
807 "widget": {
808 "name": "string_b"
809 },
810 "link": 17
811 }
812 ],
813 "outputs": [
814 {
815 "localized_name": "STRING",
816 "name": "STRING",
817 "type": "STRING",
818 "links": [
819 19
820 ]
821 }
822 ],
823 "properties": {
824 "Node name for S&R": "StringConcatenate",
825 "cnr_id": "comfy-core",
826 "ver": "0.27.0"
827 },
828 "widgets_values": [
829 "",
830 "",
831 ""
832 ],
833 "widgets_values_named": {
834 "string_a": "",
835 "string_b": "",
836 "delimiter": ""
837 }
838 }
839 ],
840 "groups": [],
841 "links": [
842 {
843 "id": 11,
844 "origin_id": 9,
845 "origin_slot": 0,
846 "target_id": 11,
847 "target_slot": 0,
848 "type": "STRING"
849 },
850 {
851 "id": 12,
852 "origin_id": 10,
853 "origin_slot": 0,
854 "target_id": 12,
855 "target_slot": 0,
856 "type": "STRING"
857 },
858 {
859 "id": 15,
860 "origin_id": 11,
861 "origin_slot": 0,
862 "target_id": 13,
863 "target_slot": 0,
864 "type": "STRING"
865 },
866 {
867 "id": 16,
868 "origin_id": 12,
869 "origin_slot": 0,
870 "target_id": 13,
871 "target_slot": 1,
872 "type": "STRING"
873 },
874 {
875 "id": 18,
876 "origin_id": 15,
877 "origin_slot": 0,
878 "target_id": 16,
879 "target_slot": 0,
880 "type": "STRING"
881 },
882 {
883 "id": 17,
884 "origin_id": 13,
885 "origin_slot": 0,
886 "target_id": 16,
887 "target_slot": 1,
888 "type": "STRING"
889 },
890 {
891 "id": 19,
892 "origin_id": 16,
893 "origin_slot": 0,
894 "target_id": -20,
895 "target_slot": 0,
896 "type": "STRING"
897 },
898 {
899 "id": 25,
900 "origin_id": -10,
901 "origin_slot": 0,
902 "target_id": 15,
903 "target_slot": 0,
904 "type": "STRING"
905 },
906 {
907 "id": 26,
908 "origin_id": -10,
909 "origin_slot": 1,
910 "target_id": 9,
911 "target_slot": 0,
912 "type": "COMBO"
913 },
914 {
915 "id": 27,
916 "origin_id": -10,
917 "origin_slot": 2,
918 "target_id": 10,
919 "target_slot": 0,
920 "type": "COMBO"
921 }
922 ],
923 "extra": []
924 }
925 ]
926 },
927 "config": [],
928 "extra": {
929 "ds": {
930 "scale": 0.6666690994541713,
931 "offset": [
932 977.5536213619538,
933 463.11900653093016
934 ]
935 },
936 "frontendVersion": "1.52.7",
937 "VHS_latentpreview": false,
938 "VHS_latentpreviewrate": 0,
939 "VHS_MetadataImage": true,
940 "VHS_KeepIntermediate": true
941 },
942 "version": 0.4
943}