Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract prompts from MP4 video files for AI artists to use in creative projects.
The GetMP4Prompt
node is designed to extract embedded prompts from MP4 video files. This node is particularly useful for AI artists who work with video content that includes metadata in the form of prompts, which can guide the creative process or provide context for the video. The primary function of this node is to parse the metadata of an MP4 file, specifically looking for JSON-encoded prompts within the comment field of the General track. By doing so, it allows you to retrieve and utilize these prompts for further processing or creative endeavors. This capability is essential for workflows that involve video content with embedded instructions or descriptions, enabling a seamless integration of video metadata into your artistic projects.
The file_path
parameter specifies the location of the MP4 file from which the prompt is to be extracted. It is crucial for the node's operation as it directs the node to the correct file to process. The file path must point to an existing MP4 file; otherwise, the node will not function correctly. This parameter does not have a default value and must be provided by you. Ensure that the file path is accurate and that the file is accessible to avoid errors during execution.
The search_title
parameter is used to identify the specific node within the JSON-encoded prompt that contains the desired information. This parameter is essential when the prompt includes multiple nodes, and you need to extract data from a particular one. The search_title
should match the title of the node you are interested in, as specified in the _meta
field of the JSON structure. This allows for precise extraction of the relevant prompt data, ensuring that you retrieve the correct information for your needs.
The result
parameter is the output of the GetMP4Prompt
node, containing the extracted prompt text from the specified MP4 file. If the node successfully finds and parses the prompt, this parameter will hold the text associated with the text2
input of the identified node. If no prompt is found or if an error occurs during parsing, the result will default to "No prompt found." This output is crucial for integrating the extracted prompt into your workflow, allowing you to leverage the embedded metadata for creative or analytical purposes.
GetMP4Prompt
node.search_title
parameter to ensure it matches the title of the node you wish to extract from the prompt. This will help you avoid retrieving incorrect or irrelevant data.<file_path>
<error_message>
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.