1.4 KiB
1.4 KiB
MediaDescribe
Describe images or video clips with Google's Gemini API, combining MediaSelection inputs, optional overrides, and caching so downstream prompt builders get structured data.
Inputs
media_source/media_type/ path & upload fields – choose whether to pull a random asset, a fixed path, or an uploaded file.media_info,resize_width,resize_height,max_duration,fps– keep Gemini's request aligned with the workflow resolution/duration.gemini_optionsfromGeminiUtilOptionsplus optionaloverridesand prompt prefix fields to steer the narration.seed,prompt_style,fallback_modecontrols for deterministic captions across batch/exploration runs.
Outputs
all_media_describe_data– master JSON blob with every paragraph and metadata point.raw_llm_json– untouched Gemini response (for auditing/debugging).positive_prompt_json&positive_prompt– structured and flattened prompt text ready for Control Panel or generation.prompt_request– the exact instructions sent to Gemini, plus inferredheight/width.
Usage Tips
- Connect
MediaSelection(or VHS loaders) to feed frames plus metadata. - Chain
GeminiUtilOptionsand optionalMediaDescribeOverridesinto their respective ports. - Send the outputs to downstream nodes such as
ShowText,ControlPanel*, or filename/build nodes.