Here are several ComfyUI nodes that traverse specific folders to sequentially deliver images, prompts, video files (split into image sequences), entire video files, and video files first split into keyframe sequences at specific intervals to subsequent nodes, which then upload them to the corresponding large models via an API (OpenAI format).
https://github.com/GHOSTLXH/ComfyUI-iterator-nodes
git clone https://github.com/GHOSTLXH/ComfyUI-iterator-nodes
comfy node install iterator-nodes