Nodes/ComfyUI-QwenVL-Utils/Load Video Advanced
ComfyUI Node

Load Video Advanced

Videos from your input folder, with the path attached

By AkihaTatsu·Created 7 months ago·Updated 6 months ago· 0
Load Video Advanced
    • video
    • path
    file

    The video twin of Load Image Advanced: pick a video from ComfyUI's input folder and this node hands you back a real video object and the file path. "Load Video Advanced" (class QwenVLUtils_VideoLoader) is the input-dir version of the pack's video loading pair - its sibling, Load Video Advanced (Path), does the same thing but from a raw path string instead of the input folder.

    Inputs and outputs

    One input: file, a dropdown populated from your ComfyUI/input directory, with an upload button (drag a video onto the node or click to browse). Two outputs:

    • video - the video itself.
    • path - the absolute file path string.

    The one thing to understand about the video output

    Here's where it gets slightly subtle, and it's worth getting straight before you wire anything up. This node returns ComfyUI's native VIDEO type - the source calls InputImpl.VideoFromFile(path) to build it - not a batch of frame tensors. That's great if you're feeding ComfyUI-native video consumers that understand a VIDEO object.

    But the QwenVL nodes' video input expects an IMAGE - i.e. a batch of frames, from which they uniformly sample frame_count of them. So you can't just plug this node's video straight into QwenVL; you'd need to go through a frame-conversion step (frames from a video) to feed it, or use the path output where a path is consumed. In the current release the QwenVL backends consume the image/video tensors, and the source_path input they accept isn't wired into generation yet - so think of this loader as the input-dir video source for path-oriented and native-video graphs, with QwenVL's own video input still fed the old-fashioned way (frame batches).

    When to use it

    If the video lives inside your ComfyUI input folder - which it will if you dragged it into the UI - this is the node for the job. It also handles the IS_CHANGED check via file modification time, so ComfyUI re-runs it when the file changes. Keep this node for files you manage through ComfyUI, and use the Path variant for videos anywhere else on disk.

    Install

    It's part of the QwenVL-Utils pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/AkihaTatsu/ComfyUI-QwenVL-Utils.git
    cd ComfyUI-QwenVL-Utils
    pip install -r requirements.txt
    

    Or ComfyUI Manager → search "QwenVL Utils" → install → restart.

    Troubleshooting

    The standard failure is "Invalid video file: name.mp4" when the file isn't in ComfyUI/input - move it there and refresh the dropdown. No frame extraction happens in this node, so there's no video-codec dependency lurking here; the pack's OpenCV dependency is used by the path-probing node instead.

    CategoryQwenVL-Utils/Input

    Inputs (1)

    NameTypeDefaultDescription
    fileCOMBO0 options:

    Outputs (2)

    NameTypeDescription
    videoVIDEO
    pathPATH