Wait, this works for the sampling, not the encoding stage. The encoding took like 25 seconds, that is not really the problem or the bottleneck. The problem is the sampling and the preloaded attention that comfyui keeps during the entire sampling stage in the VRAM and it scales with resolution and length of the video. This node makes that part smaller, so those temporary files that normally, without the node, would be bigger than my entire VRAM would fit snuggly in there.
Wait, this works for the sampling, not the encoding stage. The encoding took like 25 seconds, that is not really the problem or the bottleneck. The problem is the sampling and the preloaded attention that comfyui keeps during the entire sampling stage in the VRAM and it scales with resolution and length of the video. This node makes that part smaller, so those temporary files that normally, without the node, would be bigger than my entire VRAM would fit snuggly in there.