☁️ 视频上传到云 (VIDEO)
Take a local video file and put it on Qiniu, one URL back
- url
The sibling of the pack's image uploader: this one takes a video file path rather than a tensor, and puts the whole file up to Qiniu. "☁️ 视频上传到云 (VIDEO)" is the piece you'd use when your video already exists on disk - a completed generation, a clip you assembled elsewhere - and you need it behind a shareable URL.
How it works
Straightforward, and refreshingly un-magical: it reads the file at video_path as raw bytes, builds a Qiniu upload key from folder + key_prefix + a random uuid + your chosen ext, and uploads via Qiniu's put_data with a token minted from your keys. Output is a single url string. OUTPUT_NODE = True, so it's a terminal node - run the graph, get the link.
Because it operates on a file path instead of a tensor, it slots into a slightly different place in a workflow than the image uploader: you'd pair it with something that writes a file first (like ComfyUI's built-in video save, or this pack's SplitVideoByFrames output written to disk) and then push that file up.
Inputs that matter
video_path(STRING) - the local file to upload. This is a typed path, not a file picker, and it's resolved relative to where ComfyUI runs - give an absolute path or you'll chaseFileNotFoundErrors.access_key,secret_key,bucket_name,domain- the same Qiniu credentials as every cloud node in this pack (it readscloud_config.jsonfrom the pack root for defaults; see the CloudImageUploadNode article for the full setup).folder/key_prefix- where in the bucket it lands. Defaultsvideo/andcomfyui_.ext-mp4,mov,avi, ormkv. Pick what matches the file you're pushing; this only affects the extension in the URL.
Output: url (STRING), the public link.
Installing it
Standard pack install - ComfyUI Manager → search comfyUI_LLM, or:
cd ComfyUI/custom_nodes
git clone https://github.com/XieJunchen/comfyUI_LLM
pip install -r ComfyUI/custom_nodes/comfyUI_LLM/requirements.txt
# restart ComfyUI
The qiniu dependency comes with the pack's requirements. No video processing happens here, so there's no ffmpeg requirement on this node.
Where people get burned
- Wrong path, "视频文件不存在" (file does not exist). The node checks
os.path.isfilebefore uploading and raises if it can't find the file. Remember: relative to the ComfyUI working directory, and the path has to point at a real file on the same machine. - The
extis cosmetic. It just names the key - the node does not check or convert the actual container. Upload a.movlabeled as.mkvand you'll hand people a mislabeled link. Keep them honest. - Same Qiniu-only reality as the rest of the pack. The
cloud_typeplumbing exists, but non-Qiniu providers raiseNotImplementedError.
It's a small, single-purpose node: local file in, public URL out. If you're already on Qiniu and your workflow ends in "video on the internet," it does exactly that with no surprises - the only setup cost is the bucket.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| access_key | STRING | — | |
| secret_key | STRING | — | |
| bucket_name | STRING | — | |
| domain | STRING | — | |
| video_path | STRING | — | |
| folder | STRING | video | — |
| key_prefix | STRING | comfyui_ | — |
| ext | COMBO | mp4 | 4 options: mp4, mov, avi, mkv |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| url | STRING | — |