获取视频地址
A file picker for videos, so you stop hand-typing paths
- 视频地址
VideoPath (获取视频地址, "get video address") is the pack's answer to a stupid question that comes up constantly: where is my video file on disk? It's a dropdown that lists every video file in ComfyUI's input/ directory, and when you pick one it hands you its absolute path as a STRING. Nothing more, and nothing less.
Why it exists
The pack's video nodes - VideoFaceFusion, VideoExtractAudio, VideoAddAudio - all take video paths as plain strings. You can type a path by hand, but that's fragile (escaping, slashes, typos, and the file living somewhere you'll forget). VideoPath exists so you drop your clip into ComfyUI/input/, pick it from a list, and let the path handle itself.
The single input is video, a dropdown built by scanning the input directory and filtering for recognized video content types. It's marked with the video_upload option, which means there's an upload widget right on the node - drag a file in, and it lands in input/ and appears in the list without you touching a terminal. The single output is 视频地址, the absolute path.
Two small behaviors are worth knowing. First, the node checks modification time via IS_CHANGED, so re-uploading a new version of the same clip triggers the workflow to re-run - exactly what you want when you're iterating on footage. Second, it validates that the file actually exists and will tell you "Invalid video file" at load time instead of failing mid-run, which is a nicer failure than the silent one you get from typing a wrong path yourself.
The flow it unlocks
Wire VideoPath into VideoExtractAudio to pull a track, or into VideoFaceFusion as the templateVideoPath. The string output is deliberately designed to feed the rest of the pack, and because it's just a STRING it also plays nice with other packs' path-handling nodes. If you've got a video-centric workflow, this is the natural entry point.
Installing it
Part of the ComfyUI_Lam pack. Install via ComfyUI Manager (search "ComfyUI_Lam") or clone:
cd ComfyUI/custom_nodes
git clone https://github.com/yanlang0123/ComfyUI_Lam
Restart ComfyUI. No models, no downloads - it's pure folder-list utility, so it works even if the pack's heavier dependencies aren't installed.
Troubleshooting
The main gotcha is placement: the dropdown only scans the top level of ComfyUI/input/. If your file lives in a subfolder, it won't show up - either move it to the top level or use the upload widget. And if a file you expect is missing from the list, double-check the extension is a video format ComfyUI recognizes (mp4, webm, mov, and friends). Beyond that there's nothing to tune - pick a file, get a path, move on.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| video | COMBO | 0 options: |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| 视频地址 | STRING | — |