Nodes/comfyUI_LLM/☁️ 视频上传到云 (VIDEO)
ComfyUI Node

☁️ 视频上传到云 (VIDEO)

Take a local video file and put it on Qiniu, one URL back

By XieJunchen·Created about a year ago·Updated about a month ago· 2
☁️ 视频上传到云 (VIDEO)
    • url
    access_key
    secret_key
    bucket_name
    domain
    video_path
    foldervideo
    key_prefixcomfyui_
    extmp4

    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 chase FileNotFoundErrors.
    • access_key, secret_key, bucket_name, domain - the same Qiniu credentials as every cloud node in this pack (it reads cloud_config.json from the pack root for defaults; see the CloudImageUploadNode article for the full setup).
    • folder / key_prefix - where in the bucket it lands. Defaults video/ and comfyui_.
    • ext - mp4, mov, avi, or mkv. 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.isfile before 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 ext is cosmetic. It just names the key - the node does not check or convert the actual container. Upload a .mov labeled as .mkv and you'll hand people a mislabeled link. Keep them honest.
    • Same Qiniu-only reality as the rest of the pack. The cloud_type plumbing exists, but non-Qiniu providers raise NotImplementedError.

    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.

    Category云服务

    Inputs (8)

    NameTypeDefaultDescription
    access_keySTRING
    secret_keySTRING
    bucket_nameSTRING
    domainSTRING
    video_pathSTRING
    folderSTRINGvideo
    key_prefixSTRINGcomfyui_
    extCOMBOmp44 options: mp4, mov, avi, mkv

    Outputs (1)

    NameTypeDescription
    urlSTRING