Nodes/comfyui-AGSoft/🎬AGSoft LastFrameExtractor
ComfyUI Node

🎬AGSoft LastFrameExtractor

Extracts a single frame from the end of a video file. Allows you to choose a specific position from the end (e.g., last frame, second-to-last, third-to-last, etc.). Returns the extracted frame as an image along with video metadata. Извлекает один кадр из конца видеофайла. Позволяет выбрать конкретную позицию от конца (например, последний кадр, предпоследний, третий с конца и т.д.). Возвращает извлеченный кадр как изображение вместе с метаданными видео.

By Art-xmaster·Created 11 months ago·Updated 22 days ago· 20
🎬AGSoft LastFrameExtractor
  • video
  • video_frames
  • frame
  • width
  • height
  • total_frames
  • video_metadata_json
custom_path
frame_offset_from_end1
CategoryAGSoft/Video

Inputs (4)

NameTypeDefaultDescription
custom_pathSTRINGAbsolute or relative path to the video file. Has the lowest priority when video or video_frames are connected. Абсолютный или относительный путь к видеофайлу. Имеет наименьший приоритет, если подключены video или video_frames.
frame_offset_from_endINT11–10000 Position from the end of the video (1-based). frame_offset_from_end=1 - extracts the very last frame. frame_offset_from_end=2 - extracts the second-to-last frame. frame_offset_from_end=3 - extracts the third-to-last frame, etc. Позиция от конца видео (нумерация с 1). frame_offset_from_end=1 - извлекает самый последний кадр. frame_offset_from_end=2 - извлекает предпоследний кадр. frame_offset_from_end=3 - извлекает третий с конца кадр и т.д.
videooptVIDEO Video object from Video Helper Suite (VHS) Load Video node or standard ComfyUI Load Video. Has the highest priority. If connected, video_frames and custom_path are ignored. Видеообъект от ноды Load Video из Video Helper Suite (VHS) или стандартного ComfyUI. Имеет наивысший приоритет. При подключении video_frames и custom_path игнорируются.
video_framesoptIMAGE Pre-loaded video frames as tensor (e.g., from VHS or LoadVideo node). Has medium priority. Used only if 'video' is not connected. Предварительно загруженные кадры видео в виде тензора (например, из VHS или LoadVideo). Имеет средний приоритет. Используется только если 'video' не подключен.

Outputs (5)

NameTypeDescription
frameIMAGE
widthINT
heightINT
total_framesINT
video_metadata_jsonSTRING