ComfyUI > Nodes > cspnodes > Get MP4 Prompt

ComfyUI Node: Get MP4 Prompt

Class Name

GetMP4Prompt

Category
metadata
Author
cerspense (Account age: 3005days)
Extension
cspnodes
Latest Updated
2024-12-17
Github Stars
0.03K

How to Install cspnodes

Install this extension via the ComfyUI Manager by searching for cspnodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter cspnodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Get MP4 Prompt Description

Extract prompts from MP4 video files for AI artists to use in creative projects.

Get MP4 Prompt:

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.

Get MP4 Prompt Input Parameters:

file_path

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.

search_title

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.

Get MP4 Prompt Output Parameters:

result

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.

Get MP4 Prompt Usage Tips:

  • Ensure that the MP4 file you are using contains metadata in the expected format, with JSON-encoded prompts in the comment field of the General track, to maximize the effectiveness of the GetMP4Prompt node.
  • Double-check the 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.

Get MP4 Prompt Common Errors and Solutions:

File not found: <file_path>

  • Explanation: This error occurs when the specified file path does not point to an existing file.
  • Solution: Verify that the file path is correct and that the file exists at the specified location.

File must be an MP4

  • Explanation: This error indicates that the file specified is not an MP4 file, which is required for the node to function.
  • Solution: Ensure that the file you are trying to process is in MP4 format.

Error parsing JSON metadata: <error_message>

  • Explanation: This error occurs when the node encounters an issue while parsing the JSON metadata in the MP4 file.
  • Solution: Check the metadata in the MP4 file to ensure it is correctly formatted as JSON. If necessary, correct any formatting issues in the metadata.

Get MP4 Prompt Related Nodes

Go back to the extension to check out more related nodes.
cspnodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.