ComfyUI-BCVideoNodes
Video nodes for ComfyUI: load, prepare, generate, check and save videos of any length, from small nodes that work in any video pipeline. Every node is built to be fast and light on RAM and VRAM.
ComfyUI-BCVideoNodes
Video nodes for ComfyUI: load, prepare, generate, check and save videos of any length. The preprocess is built from small nodes that work in any video pipeline, and the samplers chain fixed-size chunks into a video of the frame count you set. Every node is built to be fast and light on RAM and VRAM. What each node does is in the docs listed below.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/0xBeycan/ComfyUI-BCVideoNodes
pip install -r ComfyUI-BCVideoNodes/requirements.txt
Run pip with the Python ComfyUI runs on, then restart ComfyUI. Needs ComfyUI 0.44.0 or later: the
samplers run core's WanAnimateToVideo, WanAnimate2ToVideo and WanSCAILToVideo, and the SAM
nodes core's SAM 3.1 Multiplex tracker.
The preprocess nodes and Kandinsky Video Upscale download their models on first use. The samplers' models (the diffusion model, the VAE, the text encoder, the CLIP vision model and the LoRAs) you load yourself with core's loader nodes, from beycanai/video-models. Models lists every file, where it comes from, where it goes and which node needs it. ComfyUI-BCNodes' full clear also drops the models this pack keeps loaded between runs.
The only runtime dependency beyond ComfyUI is opencv-python, used by the preprocess and guard
nodes; torch, numpy, scipy, safetensors, tqdm, Pillow, aiohttp and PyAV (av, the video nodes'
decoder and encoder) come with ComfyUI. Kandinsky Video Upscale's attention sage also needs
sageattention (optional; its default comfyui does not). The previews are plain JavaScript in
web/js/, which ComfyUI serves; nothing to build.
The tests and the offline conversion and upload scripts also need these (Development):
pip install pytest onnx huggingface_hub "transformers>=5.16"
Documentation
- Video nodes: loading a video at the model's size, the video info, the reference image, conforming, saving and comparing, and the player in the node.
- Video upscale: Kandinsky 6.0 VSR 2.0 upscaling a video of any length by 2x, 2.25x or 4x, its settings, its passes and its memory.
- Pose and Face Crop: wholebody pose with ViTPose-H or Sapiens2, its settings, and the face crops.
- SAM 3.1 Multiplex: the person mask on every frame, its modes and its settings.
- Guards: the pose and mask checks before sampling, their fails, warnings and metrics, and the reference check.
- WanAnimate Preprocess: the Wan Animate preprocess and its guard, one node each.
- SCAIL-2 Preprocess: the SCAIL-2 colored masks, the preprocess in one node, and its guard.
- Long video samplers: the three samplers, their wiring and defaults, frames_per_chunk by VRAM, the length math, tail padding and the color anchor.
- Models: what is downloaded, from where, into which folder and by which node, and the models you load yourself.
- Unused outputs: which outputs come out empty when nothing is connected to them.
- Development: the tests, the import-time gate and the offline scripts.
Roadmap
- SCAIL-2 pose-driven mode: not planned. The pack runs SCAIL-2's end-to-end mode: the raw driving video is the pose input. The pose-driven mode drives the model with a rendered 3D skeleton instead. zai-org/SCAIL-Pose marks end-to-end "(Recommended)", "More accurate and easier than pose-driven for most cases", and keeps pose-driven for extremely challenging inputs. It would be added only if a need for it appears.
- Multi-person (all nodes): multi-person pose and mask are on the roadmap, to be implemented and tested later. Today everything is optimised for one person; future multi-person changes will take effect in multi-person mode only.
Licences
The code is MIT (LICENSE). The files vendored from kandinskylab's Kandinsky
6.0 video-sr are MIT too, under kandinskylab's copyright, which they keep as
their first line (models/kandinsky6_vsr/LICENSE): models/kandinsky6_vsr/
geometry.py, piflow.py, nabla.py, kvae/*.py and latent_upscaler/*.py.
Code ported from that repo's ComfyUI node is Apache-2.0
(models/kandinsky6_vsr/LICENSE-APACHE), marked by a header comment in each
file that holds it: models/kandinsky6_vsr/dit.py, keys.py, loader.py,
piflow.py, nabla.py, geometry.py and pipelines/kandinsky_vsr.py.
The files vendored from the Alibaba Wan team's WanAnimate preprocess are
Apache-2.0 and keep their copyright header (libs/pose_utils/LICENSE):
libs/pose_utils/pose2d_utils.pylibs/pose_utils/human_visualization.pypipelines/face.pymodels/common/wrapper.pymodels/vitpose/wrapper.pymodels/yolo/wrapper.pymodels/vitpose/decode.py
The model weights keep their own licences:
| Model | File | Licence |
|-------|------|---------|
| ViTPose-H wholebody | vitpose_h_wholebody_fp16.safetensors | Apache-2.0 |
| YOLOv10x | yolov10x_fp32.safetensors | AGPL-3.0 |
| SAM 3.1 | sam3.1_multiplex_fp16.safetensors | Meta's SAM License |
| Sapiens2 pose | sapiens2_pose_*.safetensors | Sapiens2 License (Meta) |
| Kandinsky 6.0 VSR 2.0 | kandinsky6_vsr_*.safetensors | MIT (kandinskylab) |
The person detector's weights (YOLOv10x) are AGPL-3.0. Running them locally
is unaffected; offering a service over a network that runs them (a hosted
workflow, a SaaS) brings AGPL-3.0's network clause into play, which requires
making the corresponding source available to that service's users. The
detector runs in Pose Detection without bboxes (with every pose_model), in
WanAnimate Preprocess (always: it has no bboxes input), and in SCAIL-2
Preprocess in box_keypoint and prompt_pose mode and, in every mode, with
face_crop on. Pose Detection with bboxes connected, and SCAIL-2 Preprocess
in prompt mode with face_crop off, neither download, load nor run it.
SAM 3.1 (Comfy-Org/sam3.1's file, unchanged) is fetched from
beycanai/utility-models under Meta's SAM License, which that repository
carries in licenses/sam3.1_LICENSE.
The Sapiens2 pose weights are Meta's, under the Sapiens2 License; the
converted files are fetched from beycanai/sapiens2-convrot, whose
LICENSE.md carries it.