Nodes/comfyui-AGSoft/🎬AGSoft Get Video Components
ComfyUI Node

🎬AGSoft Get Video Components

Extracts components from a VIDEO object: images (IMAGE batch), audio (AUDIO or None), frame rate, bit depth, color space, plus frame width, height, total frame count and duration in seconds. Width/height come from the already-decoded frame tensor (after any crop/rotation applied by the source VIDEO). duration_seconds is total_frames / fps — same rule as AGSoft MiniMax Base. Supports both new (get_components) and legacy (get_pixels) VIDEO APIs. --- Извлекает компоненты из объекта VIDEO: images (батч IMAGE), audio (AUDIO или None), частоту кадров, битность, цветовое пространство, плюс ширину/высоту кадра, общее число кадров и длительность в секундах. Ширина/высота берутся из уже декодированного тензора кадров (с учётом crop/rotation, применённых источником VIDEO). duration_seconds = total_frames / fps — та же логика, что в AGSoft MiniMax Base. Поддерживает и новый (get_components), и старый (get_pixels) VIDEO API.

By Art-xmaster·Created about a year ago·Updated a day ago· 31
🎬AGSoft Get Video Components
  • video
  • images
  • audio
  • width
  • height
  • total_frames
  • duration_seconds
  • fps
  • bit_depth
  • color_space
CategoryAGSoft/Video

Inputs (1)

NameTypeDefaultDescription
videoVIDEOVIDEO object to extract components from. Accepts output of AGSoft Load Video, native Load Video or any object with get_components()/get_pixels(). --- Объект VIDEO для разбора. Принимает выход AGSoft Load Video, нативного Load Video или любого объекта с get_components()/get_pixels().

Outputs (9)

NameTypeDescription
imagesIMAGEAll video frames as a (N, H, W, 3) IMAGE batch, float32, range 0..1. --- Все кадры видео как батч IMAGE (N, H, W, 3), float32, диапазон 0..1.
audioAUDIOAudio track as an AUDIO object (waveform + sample_rate), or None if the video has no decodable audio stream. --- Звуковая дорожка как объект AUDIO (waveform + sample_rate), либо None, если в видео нет декодируемой аудиодорожки.
widthINTFrame width in pixels — taken from the decoded frame tensor (after any source-applied crop/rotation). 0 if the video is empty. --- Ширина кадра в пикселях — из декодированного тензора кадров (с учётом crop/rotation от источника). 0, если видео пустое.
heightINTFrame height in pixels — taken from the decoded frame tensor (after any source-applied crop/rotation). 0 if the video is empty. --- Высота кадра в пикселях — из декодированного тензора кадров (с учётом crop/rotation от источника). 0, если видео пустое.
total_framesINTTotal number of frames extracted. Equals images.shape[0]. 0 if the video is empty. --- Общее число извлечённых кадров. Равно images.shape[0]. 0, если видео пустое.
duration_secondsFLOATExact clip duration in seconds (total_frames / fps). 0.0 if the video is empty or fps is invalid. --- Точная длительность клипа в секундах (total_frames / fps). 0.0, если видео пустое или fps некорректен.
fpsFLOATFrame rate in frames per second (float). --- Частота кадров (float).
bit_depthINTBit depth per color component of the source video stream (int). Falls back to 8 when the stream metadata is missing. --- Битность на цветовую компоненту исходного видеопотока (int). Фоллбэк на 8, если метаданные потока отсутствуют.
color_spaceSTRINGColor space / transfer of the decoded frames: 'sRGB', 'HDR' or 'HDR PQ'. Falls back to 'sRGB' for unknown transfer. --- Цветовое пространство / transfer декодированных кадров: 'sRGB', 'HDR' или 'HDR PQ'. Фоллбэк на 'sRGB' для неизвестного transfer.