ComfyPilotComfyPilot
工作流 / 视频工具 / 宽高比重构图:MiniMax H3 Max
宽高比重构图:MiniMax H3 Max

宽高比重构图:MiniMax H3 Max

Aspect Ratio Reframe: MiniMax H3 Max

使用 MiniMax H3 Max 将片段重新构图到新的宽高比:来源保持其位置、时序和音频,模型会生成周围画面,而不是裁剪主体。可选择 16:9、9:16、1:1、4:3、3:4、21:9 或 9:21,分辨率从 480P 到 1080P,并用提示词引导新区域。非常适合将竖直社交片段转为水平剪辑,或从方形来源填充宽幅画面。

视频工具 4 个节点 1 个输入 ComfyUI ≥ 0.44.0 ComfyUI 7 KB

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

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

节点构成

LoadVideo × 1
MinimaxHailuo03MaxReframeVideoNode × 1
SaveVideo × 1
MarkdownNote × 1

官方标注的模型

MiniMax H3

工作流 JSON

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

1{
2 "id": "4d731e6a-9d47-4b9f-a051-b46616944804",
3 "revision": 0,
4 "last_node_id": 4,
5 "last_link_id": 2,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "LoadVideo",
10 "pos": [
11 100,
12 130
13 ],
14 "size": [
15 290,
16 90
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "VIDEO",
25 "type": "VIDEO",
26 "links": [
27 1
28 ]
29 }
30 ],
31 "properties": {
32 "Node name for S&R": "LoadVideo"
33 },
34 "widgets_values": [
35 "futurist_pilot.mp4",
36 "image"
37 ],
38 "widgets_values_named": {
39 "file": "futurist_pilot.mp4",
40 "upload": "image"
41 }
42 },
43 {
44 "id": 2,
45 "type": "MinimaxHailuo03MaxReframeVideoNode",
46 "pos": [
47 438,
48 130
49 ],
50 "size": [
51 410,
52 300
53 ],
54 "flags": [],
55 "order": 2,
56 "mode": 0,
57 "inputs": [
58 {
59 "name": "model.video",
60 "type": "VIDEO",
61 "link": 1
62 }
63 ],
64 "outputs": [
65 {
66 "name": "VIDEO",
67 "type": "VIDEO",
68 "links": [
69 2
70 ]
71 }
72 ],
73 "properties": {
74 "Node name for S&R": "MinimaxHailuo03MaxReframeVideoNode"
75 },
76 "widgets_values": [
77 "MiniMax H3 Max",
78 "16:9",
79 "768P",
80 "Continue what is already behind the subject on both sides: the pale gradient backdrop in the opening shot and the hangar corridor with its ceiling light strips in the closing shot, no new props, keep the pilot centred.",
81 42,
82 "randomize",
83 "randomize"
84 ],
85 "widgets_values_named": {
86 "model": "MiniMax H3 Max",
87 "model.aspect_ratio": "16:9",
88 "model.resolution": "768P",
89 "model.prompt": "Continue what is already behind the subject on both sides: the pale gradient backdrop in the opening shot and the hangar corridor with its ceiling light strips in the closing shot, no new props, keep the pilot centred.",
90 "model.seed": 42,
91 "control_after_generate#1": "randomize",
92 "control_after_generate": "randomize"
93 },
94 "color": "#432",
95 "bgcolor": "#653"
96 },
97 {
98 "id": 3,
99 "type": "SaveVideo",
100 "pos": [
101 896,
102 130
103 ],
104 "size": [
105 430,
106 390
107 ],
108 "flags": [],
109 "order": 3,
110 "mode": 0,
111 "inputs": [
112 {
113 "name": "video",
114 "type": "VIDEO",
115 "link": 2
116 }
117 ],
118 "outputs": [
119 {
120 "name": "video",
121 "type": "VIDEO",
122 "links": null
123 }
124 ],
125 "properties": [],
126 "widgets_values": [
127 "api_minimax_h3_max_reframe",
128 "auto",
129 "auto",
130 "auto"
131 ],
132 "widgets_values_named": {
133 "filename_prefix": "api_minimax_h3_max_reframe",
134 "format": "auto",
135 "format.codec": "auto",
136 "codec": "auto"
137 }
138 },
139 {
140 "id": 4,
141 "type": "MarkdownNote",
142 "pos": [
143 -490,
144 120
145 ],
146 "size": [
147 560,
148 650
149 ],
150 "flags": [],
151 "order": 1,
152 "mode": 0,
153 "inputs": [],
154 "outputs": [],
155 "properties": [],
156 "widgets_values": [
157 "## Aspect Ratio Reframe: MiniMax H3 Max\n\nReframes a clip to a different aspect ratio without cropping. The source sits in place on the new canvas at its original proportions and H3 Max generates the area around it, so length, motion and audio stay untouched.\n\n**Graph**\n\n1. **Load Video**: the source clip, 0.5 to 300 seconds.\n2. **MiniMax H3 Max Reframe Video**: fits the clip on the `aspect_ratio` canvas and generates the surroundings.\n3. **Save Video**: writes the MP4.\n\n**Input Assets:** [futurist_pilot.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/futurist_pilot.mp4) — a 5.17 second vertical (576 x 736) two-shot demo.\n\n### Controls\n\n| Control | What it does |\n|---|---|\n| `aspect_ratio` | Target canvas: `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9` or `9:21` |\n| `resolution` | `480P`, `768P` or `1080P` |\n| `prompt` | Optional: what should continue outside the original frame |\n| `seed` | The same prompt and seed give similar, not identical, results |\n\n### Prompting\n\nDescribe what continues outside the frame, not what is inside it, and cover every shot if the clip has more than one. The demo prompt was: \"Continue what is already behind the subject on both sides: the pale gradient backdrop in the opening shot and the hangar corridor with its ceiling light strips in the closing shot, no new props, keep the pilot centred.\" Leaving `prompt` empty lets the model infer the surroundings from each frame.\n"
158 ],
159 "widgets_values_named": {
160 "text": "## Aspect Ratio Reframe: MiniMax H3 Max\n\nReframes a clip to a different aspect ratio without cropping. The source sits in place on the new canvas at its original proportions and H3 Max generates the area around it, so length, motion and audio stay untouched.\n\n**Graph**\n\n1. **Load Video**: the source clip, 0.5 to 300 seconds.\n2. **MiniMax H3 Max Reframe Video**: fits the clip on the `aspect_ratio` canvas and generates the surroundings.\n3. **Save Video**: writes the MP4.\n\n**Input Assets:** [futurist_pilot.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/futurist_pilot.mp4) — a 5.17 second vertical (576 x 736) two-shot demo.\n\n### Controls\n\n| Control | What it does |\n|---|---|\n| `aspect_ratio` | Target canvas: `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9` or `9:21` |\n| `resolution` | `480P`, `768P` or `1080P` |\n| `prompt` | Optional: what should continue outside the original frame |\n| `seed` | The same prompt and seed give similar, not identical, results |\n\n### Prompting\n\nDescribe what continues outside the frame, not what is inside it, and cover every shot if the clip has more than one. The demo prompt was: \"Continue what is already behind the subject on both sides: the pale gradient backdrop in the opening shot and the hangar corridor with its ceiling light strips in the closing shot, no new props, keep the pilot centred.\" Leaving `prompt` empty lets the model infer the surroundings from each frame.\n"
161 },
162 "color": "#222",
163 "bgcolor": "#000"
164 }
165 ],
166 "links": [
167 [
168 1,
169 1,
170 0,
171 2,
172 0,
173 "VIDEO"
174 ],
175 [
176 2,
177 2,
178 0,
179 3,
180 0,
181 "VIDEO"
182 ]
183 ],
184 "groups": [],
185 "config": [],
186 "extra": {
187 "ds": {
188 "scale": 0.5593941635377722,
189 "offset": [
190 1012.0446604857359,
191 435.08759167091154
192 ]
193 },
194 "frontendVersion": "1.58.5"
195 },
196 "version": 0.4
197}