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

Gemini Omni 1.2 Flash:视频编辑

Gemini Omni 1.2 Flash: Video Edit

编辑一段已经拍好的片子,而不是重新生成:镜头、时长和声音都保留,只改提示词点名的那部分。Gemini Omni Flash 重写目标区域并把画面与声音一起重渲,剪辑点还能对上。

视频工具 4 个节点 1 个输入 63 次使用 ComfyUI ≥ 0.44.1 ComfyUI 6 KB

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

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

节点构成

GeminiVideoOmniV2 × 1
SaveVideo × 1
MarkdownNote × 1
LoadVideo × 1

官方标注的模型

Gemini Omni 1.2 Flash

工作流 JSON

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

1{
2 "id": "a1503327-a26f-4f79-ad94-bfaa1ec6ca2a",
3 "revision": 0,
4 "last_node_id": 24,
5 "last_link_id": 18,
6 "nodes": [
7 {
8 "id": 3,
9 "type": "GeminiVideoOmniV2",
10 "pos": [
11 -96.01245623302265,
12 203.29664672023029
13 ],
14 "size": [
15 397.4765319824219,
16 296
17 ],
18 "flags": [],
19 "order": 2,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "model.images.image_1",
24 "shape": 7,
25 "type": "IMAGE",
26 "link": null
27 },
28 {
29 "name": "model.videos.video_1",
30 "shape": 7,
31 "type": "VIDEO",
32 "link": 18
33 },
34 {
35 "name": "model.videos.video_2",
36 "shape": 7,
37 "type": "VIDEO",
38 "link": null
39 }
40 ],
41 "outputs": [
42 {
43 "name": "VIDEO",
44 "type": "VIDEO",
45 "links": [
46 2
47 ]
48 },
49 {
50 "name": "STRING",
51 "type": "STRING",
52 "links": null
53 }
54 ],
55 "properties": {
56 "Node name for S&R": "GeminiVideoOmniV2"
57 },
58 "widgets_values": [
59 "Omni Flash 1.2",
60 "Only change the two tigers into fluffy orange domestic cats. Keep the exact snowy pine forest, snowfall, camera cuts, poses, and timing unchanged — do not redesign the background or season.",
61 "720p",
62 "9:16",
63 "edit",
64 1733845614,
65 "randomize",
66 "randomize"
67 ],
68 "widgets_values_named": {
69 "model": "Omni Flash 1.2",
70 "model.prompt": "Only change the two tigers into fluffy orange domestic cats. Keep the exact snowy pine forest, snowfall, camera cuts, poses, and timing unchanged — do not redesign the background or season.",
71 "model.resolution": "720p",
72 "model.aspect_ratio": "9:16",
73 "model.task_type": "edit",
74 "model.seed": 1733845614,
75 "control_after_generate#1": "randomize",
76 "control_after_generate": "randomize"
77 },
78 "color": "#432",
79 "bgcolor": "#653"
80 },
81 {
82 "id": 4,
83 "type": "SaveVideo",
84 "pos": [
85 349.4640757493992,
86 203.29664672023029
87 ],
88 "size": [
89 439.078125,
90 327.51953125
91 ],
92 "flags": [],
93 "order": 3,
94 "mode": 0,
95 "inputs": [
96 {
97 "name": "video",
98 "type": "VIDEO",
99 "link": 2
100 }
101 ],
102 "outputs": [
103 {
104 "name": "video",
105 "type": "VIDEO",
106 "links": null
107 }
108 ],
109 "properties": [],
110 "widgets_values": [
111 "video/Omni_Flash_1.2_edit",
112 "auto",
113 "auto",
114 "auto"
115 ],
116 "widgets_values_named": {
117 "filename_prefix": "video/Omni_Flash_1.2_edit",
118 "format": "auto",
119 "format.codec": "auto",
120 "codec": "auto"
121 }
122 },
123 {
124 "id": 12,
125 "type": "MarkdownNote",
126 "pos": [
127 -828.3193739936138,
128 203.29664672023029
129 ],
130 "size": [
131 321.66515853881845,
132 339.0049868774414
133 ],
134 "flags": [],
135 "order": 0,
136 "mode": 0,
137 "inputs": [],
138 "outputs": [],
139 "properties": [],
140 "widgets_values": [
141 "## Input Asset\n\n- [api_google_gemini_omni_flash_1_2_edit_input.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/api_google_gemini_omni_flash_1_2_edit_input.mp4) — required workflow input (`input/api_google_gemini_omni_flash_1_2_edit_input.mp4`)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
142 ],
143 "widgets_values_named": {
144 "text": "## Input Asset\n\n- [api_google_gemini_omni_flash_1_2_edit_input.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/api_google_gemini_omni_flash_1_2_edit_input.mp4) — required workflow input (`input/api_google_gemini_omni_flash_1_2_edit_input.mp4`)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
145 },
146 "color": "#222",
147 "bgcolor": "#000"
148 },
149 {
150 "id": 24,
151 "type": "LoadVideo",
152 "pos": [
153 -458.65421545479535,
154 203.29664672023029
155 ],
156 "size": [
157 314.6417592217727,
158 370.94911384963575
159 ],
160 "flags": [],
161 "order": 1,
162 "mode": 0,
163 "inputs": [],
164 "outputs": [
165 {
166 "name": "VIDEO",
167 "type": "VIDEO",
168 "links": [
169 18
170 ]
171 }
172 ],
173 "properties": {
174 "Node name for S&R": "LoadVideo"
175 },
176 "widgets_values": [
177 "api_google_gemini_omni_flash_1_2_edit_input.mp4",
178 "image"
179 ],
180 "widgets_values_named": {
181 "file": "api_google_gemini_omni_flash_1_2_edit_input.mp4",
182 "upload": "image"
183 }
184 }
185 ],
186 "links": [
187 [
188 2,
189 3,
190 0,
191 4,
192 0,
193 "VIDEO"
194 ],
195 [
196 18,
197 24,
198 0,
199 3,
200 1,
201 "VIDEO"
202 ]
203 ],
204 "groups": [],
205 "config": [],
206 "extra": {
207 "ds": {
208 "scale": 0.5447764179694711,
209 "offset": [
210 1724.9826226935859,
211 322.1784318739612
212 ]
213 },
214 "frontendVersion": "1.58.5"
215 },
216 "version": 0.4
217}