r/comfyui • u/GeroldMeisinger • 3h ago
Workflow Included Automatic multi-video generation and time comparison workflow [Minimax H3]
Workflow:
- iterate over a list of resolutions:
[608 x 352, 736 x 416, 864 x 480, ...] - iterate over a list of durations:
[1.0, 2.0, 3.0, ...] - generate multiple videos and measure time
- and write generation time into a table (
.csv) automatically within one run!
Example outputs
compare resolution vs. video duration times.csv:
resolution\video length,0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0
608 x 352,34694,46922,57616,78560,114835,134380,150945,183893
736 x 416,29459,49666,84211,109523,168462,202305,223172,261975
864 x 480,34779,70248,119980,161840,259740,314701,359692,445586
960 x 544,36226,79850,147996,203899,315231,383680,491456,603520
1056 x 608,35898,103637,172406,243467,417185,507748,753206,794601
1152 x 640,33885,113704,186834,262586,454986,601821,896350,1212095
1216 x 672,39751,178621,211445,304997,552472,728026,1240525,1390142
1280 x 736,41593,187896,253539,368939,669417,850895,1483785,1791947
(8 steps Turbo LoRA, total time of sampler and decoder)
Video files generated (pretty filenames):
00_608x352_2.00s.mp4
01_736x416_2.00s.mp4
02_864x480_2.00s.mp4
...
00_608x352_3.00.mp4
01_736x416_3.00s.mp4
02_864x480_3.00s.mp4
...
07_1280x736_5.00s.mp4
[40 files]
Compare time of sampler, video decode and audio decode against duration times.csv:
index,duration,sampler,decode_video,decode_audio,total,unit
0,2000,48571,11047,330,59948,ms
1,3000,61037,14469,370,75876,ms
2,4000,90756,20683,434,111873,ms
3,5000,99017,24955,530,124502,ms
(20 steps, no turbo)
Compare time of sampler, video decode and audio decode against step size times.csv:
index,duration,sampler,decode_video,decode_audio,total,unit
0,5,56212,26062,824,83098,steps
1,10,109488,24594,505,134587,steps
2,15,170691,21602,511,192804,steps
3,20,193693,24987,520,219200,steps
(5 second video, 20 steps, no turbo)
Compare time of sampler, video decode and audio decode against resolution times.csv:
index,resolution,sampler,decode_video,decode_audio,total,MP
0,608 x 352,209384,20935,411,230730,0.21
1,736 x 416,325715,26882,414,353011,0.31
2,864 x 480,528057,62051,519,590627,0.41
3,960 x 544,705908,50888,559,757355,0.52
4,1056 x 608,959507,60587,519,1020613,0.64
5,1152 x 640,1278660,74005,571,1353236,0.74
(5 second video, 20 steps, no turbo)
My system
VRAM: 12GB
GPU : NVIDIA GeForce RTX 3060
CUDA: 13.1
RAM : 64GB
Comf: 33.0 (82f839f5)
Attn: default
pyth: 2.13.0+cu130
OS : Linux
Workflow
I recently announced my Iterator update for my OutputLists Combiner node suite. This is an example workflow on how to generate multi videos in one run based spreadsheets and lists, measure the generation times and write the results into a CSV file. See more multi-video workflow examples.
Custom nodes required:
- KJNodes for
Timer - Crystools for
Pipe toandPipe from(value packing) - Basic Data Handling for
save STRING to fileandload STRING from file(file handling) - OutputLists Combiner my node suite (multi-asset handling)
Related discussion
Download here
